/* ============================================================
   FONDO EDITORIAL — css/main.css
   SIN CURSIVAS - TOPBAR CENTRADO - HERO CON IMÁGENES
   ============================================================ */

/* ── PALETA ────────────────────────────────────────────────── */
:root {
    --azul:      #1d5284;
    --rosa:      #906476;
    --fondo:     #f2f8f8;
    --azul-gris: #84a7ba;
    --naranja:   #e29154;
    --gris:      #b1b1b5;
    --celeste:   #b7d4e2;
    --teal:      #3c94a6;

    /* Modo claro */
    --bg:        #ffffff;
    --bg-alt:    #f2f8f8;
    --bg-card:   #eaf3f7;
    --texto:     #0e1f30;
    --texto-sub: #4a6e85;
    --borde:     #cde0ea;
    --nav-bg:    rgba(255,255,255,0.97);
    --footer-bg: #f2f8f8;

    --sombra:      0 4px 20px rgba(29,82,132,0.10);
    --sombra-md:   0 10px 36px rgba(29,82,132,0.16);
}

[data-theme="dark"] {
    --bg:        #0b1c2c;
    --bg-alt:    #112236;
    --bg-card:   #162d45;
    --texto:     #f2f8f8;
    --texto-sub: #84a7ba;
    --borde:     #1d5284;
    --nav-bg:    rgba(11,28,44,0.97);
    --footer-bg: #0e2038;

    --sombra:    0 4px 20px rgba(0,0,0,0.35);
    --sombra-md: 0 10px 36px rgba(0,0,0,0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: Helvetica, Arial, sans-serif; /* GLOBAL */
    background: var(--bg);
    color: var(--texto);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    transition: background 0.3s, color 0.3s;
}

/* ── SIN CURSIVAS (REFUERZO TOTAL) ────────────────────────── */
* {
    font-style: normal;
    font-synthesis: none; /* Evita que el navegador sintetice cursivas */
}

/* ── TOPBAR (CENTRADO) ─────────────────────────────────────── */
.topbar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .topbar {
    background: var(--bg-alt);
    border-color: var(--borde);
}
.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex; 
    align-items: center;
    justify-content: center; /* CENTRADO */
    min-height: 48px; 
    padding: 6px 2rem;
}
@media (max-width: 767px) {
    .topbar-inner {
        padding: 6px 1rem;
        text-align: center;
    }
}
.topbar-inner img { display: block; max-width: 100%; height: auto; }
.topbar-text {
    font-size: 9px; 
    font-weight: 700;
    letter-spacing: 0.22em; 
    text-transform: uppercase;
    color: var(--azul);
    text-align: center;
}
[data-theme="dark"] .topbar-text { color: var(--celeste); }

/* ── LOGO BOX ──────────────────────────────────────────────── */
/* Logo en estado inicial (hero visible) — 50% más grande */
/* Logo en el NAV — tamaño base grande, relación de aspecto 65:100 */
.nav .logo-box {
    width: 97px;  /* 150 × 0.65 */
    height: 150px;
    overflow: hidden; 
    flex-shrink: 0;
    background: var(--azul);
    /* sin transition — el JS lo anima frame a frame con scroll */
}
/* Logo en el FOOTER — siempre pequeño, sin transición */
.footer .logo-box {
    width: 65px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--azul);
}
.logo-box img {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
}

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
    position: sticky; 
    top: 0; 
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--borde);
    transition: background 0.3s, border-color 0.3s;
}
.nav-inner {
    display: flex; 
    align-items: center;
    justify-content: space-between;
    height: 80px; 
    padding: 0 2rem; 
    gap: 2rem;
    max-width: 1440px; 
    margin: 0 auto;
    transition: height 0.4s ease;
}
.nav.scrolled .nav-inner {
    height: 80px; /* mantener altura del nav — solo el logo encoge */
}
.nav-right {
    display: flex; 
    align-items: center; 
    gap: 1.5rem;
}
.nav-mobile-btn {
    display: none; 
    background: none; 
    border: none;
    font-size: 1.3rem; 
    cursor: pointer;
    color: var(--azul); 
    padding: 4px;
}
@media (max-width: 767px) {
    .nav-right { display: none; }
    .nav-mobile-btn { display: block; }
}

/* ── MENÚ MÓVIL ACTIVO ─────────────────────────────────────── */
@media (max-width: 767px) {
    .nav-right.active {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--borde);
        box-shadow: var(--sombra-md);
        z-index: 99;
        gap: 2rem;
    }
    
    .nav-right.active .dropdown {
        width: 100%;
    }
    
    .nav-right.active .dropdown-menu {
        position: static;
        display: block;
        margin-top: 1rem;
        box-shadow: none;
        border: 1px solid var(--borde);
        background: var(--bg-card);
    }
    
    .nav-right.active .search-wrap {
        width: 100%;
    }
    
    .nav-right.active .search-input {
        width: 100%;
    }
    
    .nav-right.active .search-input:focus {
        width: 100%;
    }
}

/* ── THEME TOGGLE ──────────────────────────────────────────── */
.theme-toggle {
    background: none; 
    border: 1px solid var(--borde);
    width: 36px; 
    height: 36px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    color: var(--azul); 
    font-size: 14px;
    transition: background 0.2s, color 0.2s, border-color 0.3s;
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-card); color: var(--teal); }
[data-theme="dark"] .theme-toggle { color: #ffffff; }
[data-theme="dark"] .theme-toggle:hover { color: var(--celeste); }

/* ── DROPDOWN ──────────────────────────────────────────────── */
.dropdown { 
    position: relative; 
}

/* Enlace simple en el nav (ej: Libros) */
.nav-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--azul);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--teal); }
[data-theme="dark"] .nav-link { color: var(--celeste); }
[data-theme="dark"] .nav-link:hover { color: var(--azul-gris); }

/* Enlace en mobile menu */
.mobile-link {
    display: block;
    padding: 9px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texto-sub);
    text-decoration: none;
    border-bottom: 1px solid var(--borde);
    transition: color 0.15s;
}
.mobile-link:hover { color: var(--teal); }

.dropdown-trigger {
    font-size: 11px; 
    font-weight: 700;
    letter-spacing: 0.16em; 
    text-transform: uppercase;
    color: var(--azul); 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    gap: 6px;
    white-space: nowrap; 
    transition: color 0.2s;
}
.dropdown-trigger:hover { color: var(--teal); }
[data-theme="dark"] .dropdown-trigger { color: var(--celeste); }
[data-theme="dark"] .dropdown-trigger:hover { color: var(--naranja); }

.dropdown-menu {
    display: none; 
    position: absolute; 
    top: calc(100% + 12px); 
    left: 0;
    min-width: 220px;
    background: var(--nav-bg);
    border: 1px solid var(--borde);
    box-shadow: var(--sombra-md);
    z-index: 500;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block; 
    padding: 10px 20px;
    font-size: 10px; 
    font-weight: 700;
    letter-spacing: 0.14em; 
    text-transform: uppercase;
    color: var(--texto-sub); 
    text-decoration: none;
    border-bottom: 1px solid var(--borde);
    transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
    background: var(--bg-card);
    color: var(--teal);
}
[data-theme="dark"] .dropdown-menu a:hover { color: var(--naranja); }
.dropdown-menu a:last-child { border-bottom: none; }

/* ── SEARCH ────────────────────────────────────────────────── */
.search-wrap { 
    position: relative; 
    display: flex; 
    align-items: center; 
}
.search-input {
    background: var(--bg-alt); 
    border: 1px solid var(--borde);
    padding: 8px 36px 8px 14px;
    /* font-family eliminado (hereda de body) */
    font-size: 11px; 
    font-weight: 600;
    letter-spacing: 0.06em; 
    text-transform: uppercase;
    width: 200px; 
    transition: all 0.3s; 
    outline: none;
    color: var(--texto);
}
.search-input:focus {
    background: var(--bg); 
    border-color: var(--teal);
    width: 260px;
    box-shadow: 0 0 0 3px rgba(60,148,166,0.15);
}
.search-input::placeholder { 
    color: var(--azul-gris); 
    opacity: 0.7; 
}
/* Lupa como span posicionado dentro del wrap */
.search-icon {
    position: absolute;
    right: 10px;
    color: var(--azul-gris);
    font-size: 12px;
    pointer-events: none;
    line-height: 1;
}
.search-button {
    position: absolute; 
    right: 8px;
    background: none; 
    border: none;
    cursor: pointer; 
    color: var(--azul-gris); 
    font-size: 12px;
    padding: 4px; 
    display: flex;
}

/* ── HERO (CON IMÁGENES VISIBLES) ──────────────────────────── */
#hero {
    position: relative;
    width: 100%; 
    min-height: 100vh;
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    overflow: hidden;
    background: var(--azul);
}

#hero-slides {
    position: absolute; 
    inset: 0;
    display: grid; 
    grid-template-columns: repeat(5, 1fr);
    gap: 0; 
    opacity: 0.25; /* AUMENTADA LA OPACIDAD */
    pointer-events: none;
    transition: opacity 0.6s;
}
#hero-slides.hovered { opacity: 0.35; }

.hero-slide-img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1) brightness(0.9); /* MENOS BLUR, MÁS SATURACIÓN */
    transition: transform 6s ease;
}

#hero::before {
    content: '';
    position: absolute; 
    inset: 0; 
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(29,82,132,0.85) 0%,
        rgba(60,148,166,0.65) 50%,
        rgba(29,82,132,0.85) 100%
    );
}

#hero::after {
    content: '';
    position: absolute; 
    z-index: 2;
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--naranja), transparent);
}

.hero-contenido {
    position: relative; 
    z-index: 3;
    text-align: center; 
    padding: 2rem;
    max-width: 860px;
    animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
    display: inline-block;
    font-size: 9px; 
    font-weight: 700;
    letter-spacing: 0.4em; 
    text-transform: uppercase;
    color: var(--celeste);
    border: 1px solid rgba(183,212,226,0.35);
    padding: 6px 18px; 
    margin-bottom: 1.8rem;
    animation: fadeUp 1s 0.2s ease both;
}

.hero-titulo {
    /* font-family eliminado (hereda de body) */
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800; 
    line-height: 0.95;
    color: #fff; 
    letter-spacing: -0.03em;
    text-transform: uppercase; 
    margin-bottom: 0.6rem;
    animation: fadeUp 1s 0.35s ease both;
}
.hero-titulo span { 
    color: var(--naranja); 
    display: block; 
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 500; /* AUMENTADO DE 400 A 500 */
    color: rgba(255,255,255,0.9); /* MÁS BRILLANTE */
    letter-spacing: 0.06em; 
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    animation: fadeUp 1s 0.5s ease both;
}

.hero-parrafo {
    font-size: 15px; 
    font-weight: 500; /* AUMENTADO DE 400 A 500 */
    color: rgba(255,255,255,0.8); /* MÁS BRILLANTE */
    max-width: 500px; 
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeUp 1s 0.65s ease both;
}

.hero-cta {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    background: var(--naranja); 
    color: #fff;
    padding: 14px 36px;
    font-size: 11px; 
    font-weight: 700;
    letter-spacing: 0.2em; 
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 8px 28px rgba(226,145,84,0.4);
    animation: fadeUp 1s 0.8s ease both;
}
.hero-cta:hover { 
    background: #c97c3f; 
    transform: translateY(-2px); 
}

.hero-cols-nav {
    position: absolute; 
    bottom: 2.5rem;
    left: 50%; 
    transform: translateX(-50%);
    z-index: 4; 
    display: flex; 
    gap: 8px;
    animation: fadeUp 1s 1s ease both;
}
.hero-col-dot {
    width: 28px; 
    height: 3px;
    background: rgba(255,255,255,0.4); /* MÁS BRILLANTE */
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.hero-col-dot.active {
    background: var(--naranja); 
    width: 48px;
}

/* ── MAIN ──────────────────────────────────────────────────── */
.main-wrap {
    max-width: 1440px; 
    margin: 0 auto;
    padding: 5rem 2rem;
    display: flex; 
    flex-direction: column; 
    gap: 6rem;
}

/* ── SECCIONES ─────────────────────────────────────────────── */

/* Espacio generoso encima del título de cada colección */
#sections-colecciones section,
#section-sueltos {
    padding-top: 3rem;
}

.seccion-header {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
    border-bottom: 2px solid var(--azul);
    padding-bottom: 1rem; 
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}
[data-theme="dark"] .seccion-header { border-color: var(--teal); }

.seccion-titulo {
    /* font-family eliminado (hereda de body) */
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 800; 
    color: var(--azul);
    text-transform: uppercase;
}
[data-theme="dark"] .seccion-titulo { color: var(--celeste); }

.nav-btns { 
    display: flex; 
    gap: 1rem; 
}
.nav-btn {
    font-size: 10px; 
    font-weight: 700;
    letter-spacing: 0.18em; 
    text-transform: uppercase;
    color: var(--gris); 
    background: none; 
    border: none;
    cursor: pointer; 
    transition: color 0.2s; 
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-btn:hover { color: var(--teal); }
[data-theme="dark"] .nav-btn:hover { color: var(--naranja); }

@media (max-width: 640px) {
    .nav-btn-txt { display: none; }
    .nav-btn {
        font-size: 14px;
        padding: 6px 4px;
        gap: 0;
    }
}

/* ── BOOK CARD ─────────────────────────────────────────────── */
.book-container {
    height: 260px;
    display: flex; 
    align-items: flex-end; 
    justify-content: center;
    background: var(--bg-card); 
    padding: 12px;
    border: 1px solid var(--borde); 
    overflow: hidden;
    transition: border-color 0.2s, background 0.3s;
}
.swiper-slide:hover .book-container { border-color: var(--teal); }
[data-theme="dark"] .swiper-slide:hover .book-container { border-color: var(--naranja); }

.book-img {
    max-height: 100%; 
    max-width: 100%;
    width: auto; 
    height: auto; 
    object-fit: contain;
    box-shadow: 4px 8px 20px rgba(29,82,132,0.18);
    transition: transform 0.4s cubic-bezier(0.165,0.84,0.44,1);
}
.swiper-slide:hover .book-img { transform: translateY(-7px); }

.book-titulo {
    font-size: 11px; 
    font-weight: 700;
    letter-spacing: 0.04em; 
    text-transform: uppercase;
    color: var(--texto); 
    margin-top: 10px; 
    margin-bottom: 3px;
    line-height: 1.3; 
    transition: color 0.2s;
}
.book-autor {
    font-size: 9px; 
    font-weight: 600; /* AUMENTADO DE 500 A 600 */
    letter-spacing: 0.12em; 
    text-transform: uppercase;
    color: var(--azul-gris);
}
.swiper-slide:hover .book-titulo { color: var(--teal); }
[data-theme="dark"] .swiper-slide:hover .book-titulo { color: var(--naranja); }

/* ── BANNER REVISTA (CON IMAGEN MÁS VISIBLE) ───────────────── */
.banner-revista {
    position: relative; 
    min-height: 200px;
    background: var(--azul);
    display: flex; 
    align-items: center;
    box-shadow: var(--sombra-md); 
    overflow: hidden;
}
.banner-bg {
    position: absolute; 
    inset: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    opacity: 0.5; /* AUMENTADO DE 0.25 A 0.5 */
}
.banner-overlay {
    position: absolute; 
    inset: 0;
    background: linear-gradient(90deg,
        rgba(29,82,132,0.85) 35%, /* MENOS OPACO */
        rgba(60,148,166,0.4) 100%);
}
.banner-contenido {
    position: relative; 
    z-index: 2;
    padding: 2.5rem 3rem;
    display: flex; 
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    flex-wrap: wrap; 
    gap: 1.5rem;
    max-width: 1440px; 
    margin: 0 auto;
}
.banner-tag {
    font-size: 9px; 
    font-weight: 700;
    letter-spacing: 0.35em; 
    text-transform: uppercase;
    color: var(--naranja); 
    margin-bottom: 8px; 
    display: block;
}
.banner-titulo {
    /* font-family eliminado (hereda de body) */
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    font-weight: 800; 
    color: #fff;
    text-transform: uppercase; 
    line-height: 1.05;
}
.banner-tagline {
    font-size: 13px; 
    color: rgba(255,255,255,0.9); /* MÁS BRILLANTE */
    margin-top: 6px; 
    font-weight: 500; /* AUMENTADO DE 400 A 500 */
}
.banner-cta {
    background: var(--naranja); 
    color: #fff;
    padding: 14px 30px;
    font-size: 10px; 
    font-weight: 700;
    letter-spacing: 0.2em; 
    text-transform: uppercase;
    text-decoration: none; 
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(226,145,84,0.4);
    display: inline-block;
}
.banner-cta:hover { 
    background: #c97c3f; 
    transform: translateY(-2px); 
}

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; 
    inset: 0; 
    z-index: 300;
    background: rgba(11,28,44,0.93);
    display: none; 
    align-items: center; 
    justify-content: center;
    padding: 1rem; 
    backdrop-filter: blur(10px);
}
.modal-overlay.open { display: flex; }

.modal-inner {
    background: var(--bg); 
    width: 100%; 
    max-width: 900px;
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    max-height: 90vh;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
@media (min-width: 640px) { .modal-inner { flex-direction: row; } }

.modal-portada {
    width: 100%; 
    background: var(--bg-alt);
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 2.5rem;
}
@media (min-width: 640px) { .modal-portada { width: 42%; } }
.modal-portada img {
    max-height: 340px; 
    max-width: 100%;
    object-fit: contain;
    box-shadow: 6px 8px 30px rgba(29,82,132,0.2);
}

.modal-info {
    padding: 2rem 2.5rem; 
    display: flex;
    flex-direction: column; 
    position: relative;
    overflow-y: auto; 
    border-left: 1px solid var(--borde);
}
@media (min-width: 640px) { .modal-info { width: 58%; } }

.modal-close {
    position: absolute; 
    top: 1rem; 
    right: 1rem;
    background: none; 
    border: none; 
    cursor: pointer;
    font-size: 1rem; 
    color: var(--azul-gris); 
    transition: color 0.2s; 
    padding: 4px;
}
.modal-close:hover { color: var(--rosa); }

.modal-cat {
    font-size: 9px; 
    font-weight: 700;
    letter-spacing: 0.3em; 
    text-transform: uppercase;
    color: var(--teal); 
    margin-bottom: 10px; 
    display: block;
}
.modal-titulo {
    /* font-family eliminado (hereda de body) */
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800; 
    color: var(--azul);
    line-height: 1.05; 
    margin-bottom: 6px;
    text-transform: uppercase;
}
[data-theme="dark"] .modal-titulo { color: var(--celeste); }

.modal-autor {
    font-size: 10px; 
    font-weight: 600;
    letter-spacing: 0.12em; 
    text-transform: uppercase;
    color: var(--rosa); 
    margin-bottom: 1.5rem;
}
.modal-desc { 
    font-size: 13px; 
    line-height: 1.7; 
    color: var(--texto-sub); 
    flex: 1;
    font-weight: 500; /* AUMENTADO DE 400 A 500 */
}
.modal-btns { 
    margin-top: 2rem; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.btn-pdf {
    background: var(--azul); 
    color: #fff; 
    padding: 13px;
    border: none; 
    /* font-family eliminado (hereda de body) */
    font-size: 10px; 
    font-weight: 700;
    letter-spacing: 0.18em; 
    text-transform: uppercase;
    cursor: pointer; 
    transition: background 0.2s; 
    width: 100%;
}
.btn-pdf:hover { background: var(--teal); }

.btn-impreso {
    border: 1px solid var(--borde); 
    color: var(--texto-sub);
    padding: 13px; 
    background: none;
    /* font-family eliminado (hereda de body) */
    font-size: 10px; 
    font-weight: 700;
    letter-spacing: 0.18em; 
    text-transform: uppercase;
    cursor: pointer; 
    transition: all 0.2s; 
    width: 100%;
}
.btn-impreso:hover { 
    background: var(--bg-alt); 
    color: var(--azul); 
    border-color: var(--azul); 
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer { 
    background: var(--footer-bg); 
    border-top: 1px solid var(--borde); 
    transition: background 0.3s; 
}
.footer-grid {
    max-width: 1440px; 
    margin: 0 auto;
    display: grid; 
    grid-template-columns: 1fr;
    gap: 2.5rem; 
    padding: 4rem 2rem 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-marca { 
    display: flex; 
    align-items: flex-start; 
    gap: 1.2rem; 
}
.footer-nombre {
    /* font-family eliminado (hereda de body) */
    font-size: 0.95rem; 
    font-weight: 800;
    color: var(--azul); 
    text-transform: uppercase;
    letter-spacing: 0.04em; 
    margin-bottom: 4px;
}
[data-theme="dark"] .footer-nombre { color: var(--celeste); }
.footer-mision { 
    font-size: 12px; 
    color: var(--texto-sub); 
    line-height: 1.6; 
    max-width: 280px;
    font-weight: 500; /* AUMENTADO */
}

.footer-h {
    font-size: 9px; 
    font-weight: 700;
    letter-spacing: 0.25em; 
    text-transform: uppercase;
    color: var(--teal); 
    margin-bottom: 1.2rem;
}
.footer-lista { 
    list-style: none; 
}
.footer-lista li {
    font-size: 11px; 
    font-weight: 500;
    color: var(--texto-sub); 
    margin-bottom: 10px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.footer-lista i,
.footer-lista span[class*="fa-"] { 
    color: var(--teal); 
    width: 14px; 
    flex-shrink: 0;
}
[data-theme="dark"] .footer-lista i,
[data-theme="dark"] .footer-lista span[class*="fa-"] { color: var(--naranja); }

.redes { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}

/* Centrar Contacto y Redes en mobile */
@media (max-width: 767px) {
    .footer-grid > div:not(.footer-marca) {
        text-align: center;
    }
    .footer-grid > div:not(.footer-marca) .footer-lista li {
        justify-content: center;
    }
    .footer-grid > div:not(.footer-marca) .redes {
        justify-content: center;
    }
}
.red-btn {
    width: 36px; 
    height: 36px;
    background: var(--borde);
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 14px; 
    color: var(--azul);
    cursor: pointer; 
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.red-btn:hover { 
    background: var(--teal); 
    color: #fff; 
}
[data-theme="dark"] .red-btn { 
    background: var(--bg-card); 
    color: var(--celeste); 
}
[data-theme="dark"] .red-btn:hover { 
    background: var(--naranja); 
    color: #fff; 
}

.footer-copy { 
    border-top: 1px solid var(--borde); 
}
.footer-copy-inner {
    max-width: 1440px; 
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex; 
    flex-direction: column; 
    gap: 4px;
    text-align: center;
    font-size: 9px; 
    font-weight: 600;
    letter-spacing: 0.28em; 
    text-transform: uppercase;
    color: var(--azul-gris);
}
@media (min-width: 768px) {
    .footer-copy-inner { 
        flex-direction: row; 
        justify-content: space-between; 
        text-align: left; 
    }
}

/* ── ACCESIBILIDAD ─────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--azul);
    color: white;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--naranja);
    outline-offset: 2px;
}
/* ═══════════════════════════════════════════════════════════
   HERO — Swiper fullscreen
═══════════════════════════════════════════════════════════ */

/* Eliminar cualquier #hero previo */
#hero {
    position: relative;
    width: 100%;
    /* dvh evita que el menú mobile empuje el hero — usa el viewport real */
    height: 100dvh;
    height: 100vh; /* fallback para navegadores sin dvh */
    min-height: 580px;
    /* El hero NO forma parte del flujo normal: no se ve afectado por el menú */
    overflow: hidden;
}

/* ── Swiper del hero ─────────────────────────────────────── */
.hero-swiper {
    width: 100%;
    height: 100%;
}

/* ── Slide base ──────────────────────────────────────────── */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Imagen de fondo ─────────────────────────────────────── */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.swiper-slide-active .hero-bg {
    transform: scale(1);
}

/* ── Overlays ────────────────────────────────────────────── */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(13, 31, 65, 0.82) 0%,
        rgba(29, 82, 132, 0.65) 60%,
        rgba(13, 31, 65, 0.80) 100%
    );
    z-index: 1;
}
.hero-overlay-teal {
    background: linear-gradient(
        160deg,
        rgba(8, 40, 55, 0.82) 0%,
        rgba(60, 148, 166, 0.55) 60%,
        rgba(8, 40, 55, 0.80) 100%
    );
}
.hero-overlay-dark {
    background: linear-gradient(
        160deg,
        rgba(5, 20, 40, 0.88) 0%,
        rgba(29, 82, 132, 0.60) 60%,
        rgba(5, 20, 40, 0.85) 100%
    );
}

/* ── Contenido centrado ──────────────────────────────────── */
.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Animación de entrada — solo el slide activo */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0s, transform 0s;
}
.swiper-slide-active .hero-slide-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s 0.3s ease, transform 0.8s 0.3s ease;
}

/* ── Logo en slide 1 ─────────────────────────────────────── */
.hero-logo-wrap {
    display: none;
}

/* ── Textos ──────────────────────────────────────────────── */
.hero-kicker {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--celeste);
    border: 1px solid rgba(183, 212, 226, 0.3);
    padding: 5px 18px;
    margin-bottom: 1.6rem;
    display: inline-block;
}

.hero-titulo {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.6rem, 6.5vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Línea naranja bajo el título */
.hero-titulo::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--naranja);
    margin: 0.9rem auto 0;
}

.hero-tagline {
    font-size: clamp(0.7rem, 1.4vw, 0.9rem);
    font-weight: 500;
    color: rgba(183, 212, 226, 0.75);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-parrafo {
    font-size: 15px;
    font-weight: 400;
    color: rgba(242, 248, 248, 0.5);
    max-width: 460px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* ── CTAs ────────────────────────────────────────────────── */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--azul);
    color: #fff;
    padding: 13px 36px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 8px 28px rgba(29, 82, 132, 0.45);
}
.hero-cta:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

.hero-cta-alt {
    background: var(--teal);
    box-shadow: 0 8px 28px rgba(60, 148, 166, 0.4);
}
.hero-cta-alt:hover { background: var(--azul); }

.hero-cta-naranja {
    background: var(--naranja);
    box-shadow: 0 8px 28px rgba(226, 145, 84, 0.4);
}
.hero-cta-naranja:hover { background: #c97c3f; }

/* ── Dots ────────────────────────────────────────────────── */
.hero-dots-wrap {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    /* forzar fila horizontal */
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-pagination {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0;
    position: static !important; /* anular el absolute de Swiper */
    width: auto !important;
    bottom: auto !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 5px;
    display: inline-block;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    cursor: pointer;
}
.hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(2); /* 100% más grande */
}
.hero-pagination .swiper-pagination-bullet-active {
    background: var(--naranja);
    border-color: var(--naranja);
    transform: scale(1.3);
}
.hero-pagination .swiper-pagination-bullet-active:hover {
    transform: scale(2);
}

/* ── Flechas de navegación ───────────────────────────────── */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.35);
    font-size: 18px;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.2s;
    user-select: none;
}
.hero-prev { left: 1.2rem; }
.hero-next { right: 1.2rem; }
.hero-prev:hover,
.hero-next:hover { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 640px) {
    .hero-prev, .hero-next { display: none; }
}

/* ── Nav mobile group ────────────────────────────────────── */
.nav-mobile-group {
    display: none;
    align-items: center;
    gap: 8px;
}
@media (max-width: 767px) {
    .nav-mobile-group { display: flex; }
    /* ocultar toggle de desktop en mobile */
    .nav-right .theme-toggle { display: none; }
}

/* ── Mobile menu ─────────────────────────────────────────── */
/* ── Mobile menu — posición absoluta para no empujar el hero ── */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%; /* justo debajo del nav */
    left: 0;
    right: 0;
    z-index: 90;
    border-top: 1px solid var(--borde);
    background: var(--nav-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1440px;
    margin: 0 auto;
}
.mobile-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.mobile-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal);
    padding-top: 0.5rem;
    border-top: 1px solid var(--borde);
}
#mobile-dropdown-list a {
    display: block;
    padding: 9px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texto-sub);
    text-decoration: none;
    border-bottom: 1px solid var(--borde);
    transition: color 0.15s;
}
#mobile-dropdown-list a:hover { color: var(--teal); }
#mobile-dropdown-list a:last-child { border-bottom: none; }



/* ── SCROLL OFFSET para anchors con navbar sticky ─────────── */
html {
    scroll-padding-top: 40px;
}
section[id^="col-"],
#section-sueltos,
#section-revista,
#colecciones {
    scroll-margin-top: 40px;
}
