/* ==================== STYLE.CSS — GLOBAL ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500&display=swap');

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
    padding-top: 72px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.header-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.header-logo-img {
    height: 48px;
    width: auto;
    max-width: 120px;
    display: block;
    object-fit: contain;
}

/* NAV */
.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.nav-link.admin-link {
    color: #555;
}

.nav-link.admin-link.active {
    color: #1a1a1a;
}

/* ICONS AREA */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #777;
    text-decoration: none;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border: 1px solid #e0e0e0;
    transition: all 0.15s;
}

.icon-btn:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* USER DROPDOWN */
.user-dropdown-container {
    position: relative;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    min-width: 180px;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.user-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 0.8rem 1rem;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbb;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s;
}

.dropdown-item:hover {
    background: #f8f8f8;
    color: #1a1a1a;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
}

.dropdown-logout {
    color: #a32d2d;
}

.dropdown-logout:hover {
    background: #fff5f5;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-hamburguesa {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.menu-hamburguesa span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #1a1a1a;
    transition: all 0.3s;
}

.menu-hamburguesa.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-hamburguesa.active span:nth-child(2) {
    opacity: 0;
}

.menu-hamburguesa.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* OVERLAY */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
}

.menu-overlay.active {
    display: block;
}

/* MENÚ MÓVIL */
.menu-mobile {
    display: none;
    position: fixed;
    top: 64px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 64px);
    background: #1a1a1a;
    z-index: 160;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
}

.menu-mobile.active {
    right: 0;
}

.menu-mobile nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-mobile nav a {
    display: block;
    padding: 1rem 0;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.15s;
}

.menu-mobile nav a:hover {
    color: #fff;
}

/* ===== MAIN ===== */
#contenido-principal {
    min-height: calc(100vh - 64px - 120px);
}

/* ===== BOTONES GLOBALES ===== */
.btn-primary {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.75rem 1.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 0;
}

.btn-primary:hover {
    background: #333;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 0.75rem 1.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 0;
}

.btn-outline:hover {
    background: #f5f4f0;
}

/* ===== MENSAJES FLASH ===== */
.flash-ok {
    background: #f0f5e8;
    border-left: 3px solid #4a7a1a;
    padding: 0.8rem 1rem;
    font-size: 13px;
    color: #3b6d11;
    margin-bottom: 1rem;
}

.flash-error {
    background: #fff5f5;
    border-left: 3px solid #e24b4a;
    padding: 0.8rem 1rem;
    font-size: 13px;
    color: #a32d2d;
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.footer-main {
    background: #1a1a1a;
    padding: 2.5rem 2rem 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    display: block;
    filter: invert(1);
    /* negro → blanco para el fondo oscuro del footer */
}

.footer-logo-sub {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #666;
    margin-top: 4px;
}

.footer-info p {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.footer-bottom {
    padding-top: 1.2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: #555;
    letter-spacing: 0.5px;
}

.footer-legal {
    margin-top: 0.5rem;
}

.footer-legal a {
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.footer-legal a:hover {
    color: #fff;
    border-bottom-color: #888;
}

/* ===== SECCIÓN: etiqueta superior ===== */
.section-tag {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.section-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #aaa;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: #1a1a1a;
}

.section-title em {
    font-style: italic;
    color: #666;
}

/* ===== PUNTITO ROJO ADMIN ===== */
.admin-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #e24b4a;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}