/* ============================================================
   BELLEZA CON FLOW 2026
   Paleta: Azul profundo + Coral/Naranja + Dorado suave
   Juvenil, moderna, apta para ambos géneros
   ============================================================ */

:root {
    /* FONDOS */
    --bg: #f4f6fb;
    --bg-2: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #0f1a2e;

    /* COLORES PRINCIPALES */
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --blue-light: #60a5fa;
    --coral: #ff6b4a;
    --coral-dark: #e64a2e;
    --coral-light: #ff8c6e;
    --gold: #f4b942;
    --gold-soft: #fcd34d;

    /* TEXTOS */
    --t1: #0f1a2e;
    --t2: #4a5570;
    --t3: #8a93a8;

    /* BORDES Y SOMBRAS */
    --line: rgba(15, 26, 46, 0.08);
    --line-strong: rgba(15, 26, 46, 0.15);
    --shadow-sm: 0 4px 12px rgba(15, 26, 46, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 26, 46, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 26, 46, 0.12);

    /* GRADIENTES */
    --grad: linear-gradient(135deg, var(--blue), var(--coral));
    --grad-warm: linear-gradient(135deg, var(--coral), var(--gold));
    --grad-cool: linear-gradient(135deg, var(--blue), var(--blue-light));

    /* TIPOGRAFÍA */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--t1);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--grad);
    border-radius: 10px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* ============================================================
   HEADER + NAV HORIZONTAL
   ============================================================ */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease, background .3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: .75rem 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.brand-logo {
    width: 46px; height: 46px;
    object-fit: contain;
    transition: transform .4s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.08); }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .04em;
    color: var(--t1);
}

.brand-tag {
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--coral);
    font-weight: 600;
    margin-top: 3px;
}

/* NAV HORIZONTAL */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-list {
    display: flex;
    align-items: center;
    gap: .2rem;
    list-style: none;
    padding: .3rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid var(--line);
    border-radius: 50px;
    white-space: nowrap;
}

.nav-link {
    display: block;
    padding: .55rem 1.1rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--t2);
    border-radius: 50px;
    transition: all .3s ease;
    white-space: nowrap;
}

.nav-link:hover { color: var(--blue); background: rgba(37, 99, 235, 0.08); }

.nav-link.active {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

/* User zone */
.user-zone { display: flex; gap: .5rem; flex-shrink: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .82rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(.5,0,0,1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-ghost {
    background: rgba(37, 99, 235, 0.06);
    color: var(--t1);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: rgba(37, 99, 235, 0.1); }

.btn-lg { padding: .95rem 1.9rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* User dropdown */
.user-dropdown { position: relative; }

.user-btn {
    display: flex; align-items: center; gap: .6rem;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: .35rem .9rem .35rem .35rem;
    cursor: pointer; color: var(--t1);
    transition: all .3s ease;
}
.user-btn:hover { border-color: var(--blue); }

.user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad);
    color: #fff; font-weight: 700; font-size: .9rem;
    display: flex; align-items: center; justify-content: center;
}

.user-info { display: none; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.user-name { font-size: .85rem; font-weight: 600; }
.user-role { font-size: .65rem; color: var(--coral); text-transform: uppercase; letter-spacing: .1em; }

.user-btn i { font-size: .7rem; color: var(--t3); }

.dropdown-menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    list-style: none; padding: .5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all .3s ease;
}
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu a {
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem 1rem; border-radius: 8px;
    font-size: .85rem; color: var(--t2);
    transition: all .2s;
}
.dropdown-menu a:hover { background: rgba(37, 99, 235, 0.08); color: var(--blue); }
.dropdown-menu a i { color: var(--blue); width: 18px; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 5% 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f6fb 0%, #e8eef9 100%);
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(circle at center, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, #000 25%, transparent 75%);
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    pointer-events: none;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--blue-light); top: -120px; left: -120px; animation: float1 12s ease-in-out infinite; }
.hero-blob-2 { width: 480px; height: 480px; background: var(--coral-light); bottom: -120px; right: -120px; animation: float2 14s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, -40px); } }

.hero-content { position: relative; z-index: 2; max-width: 950px; }

.hero-badge {
    display: inline-block;
    padding: .45rem 1.2rem;
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.35);
    color: var(--coral-dark);
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp .8s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 6.5vw, 5rem);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--t1);
    margin-bottom: 1.3rem;
    animation: fadeUp .9s ease .1s both;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    padding-right: .05em;
}

.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--t2);
    margin-bottom: 2.5rem;
    font-weight: 400;
    animation: fadeUp .9s ease .25s both;
}

.hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeUp .9s ease .4s both;
}

.scroll-cue {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 6px;
}
.scroll-cue span {
    width: 5px; height: 5px;
    background: var(--blue);
    border-radius: 50%;
    animation: dotBounce 1.6s infinite;
}
.scroll-cue span:nth-child(2) { animation-delay: .2s; }
.scroll-cue span:nth-child(3) { animation-delay: .4s; }

@keyframes dotBounce {
    0%,100% { opacity: .3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECCIONES BASE
   ============================================================ */
section { padding: 5rem 0; }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    text-align: center;
    color: var(--t1);
    letter-spacing: -.02em;
    margin-bottom: .6rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px; height: 3px;
    background: var(--grad);
    margin: 1rem auto 0;
    border-radius: 3px;
}

.section-sub {
    text-align: center;
    color: var(--t2);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
    background: var(--bg-dark);
    color: #fff;
    position: relative;
}

.countdown .section-title { color: #fff; }
.countdown .section-sub { color: rgba(255,255,255,0.7); }

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
    max-width: 720px;
    margin: 0 auto;
}

.cd-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.3rem .5rem;
    text-align: center;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
}

.cd-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 74, 0.5);
    background: rgba(255, 107, 74, 0.08);
}

.cd-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    line-height: 1;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cd-lab {
    display: block;
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: .5rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text p {
    color: var(--t2);
    margin-bottom: 1.1rem;
    font-size: .98rem;
}

.about-highlight {
    font-size: 1.1rem !important;
    color: var(--t1) !important;
    font-weight: 600;
    padding-left: 1.2rem;
    border-left: 3px solid var(--coral);
    margin-bottom: 1.8rem !important;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image img {
    width: 100%;
    transition: transform .6s ease;
}

.about-image:hover img { transform: scale(1.05); }

/* ============================================================
   FASES
   ============================================================ */
.fases { background: #fff; }

.fases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3rem;
    margin-top: 2.5rem;
}

.fase-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all .4s cubic-bezier(.5,0,0,1);
}

.fase-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.fase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.fase-card:hover::before { transform: scaleX(1); }

.fase-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1.1rem;
    border-radius: 16px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform .4s ease;
}

.fase-card:hover .fase-icon { transform: rotate(-6deg) scale(1.08); }

.fase-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: .6rem;
}

.fase-card p {
    color: var(--t2);
    font-size: .9rem;
    margin-bottom: 1.2rem;
}

.fase-date {
    display: inline-block;
    padding: .35rem 1rem;
    background: rgba(255, 107, 74, 0.1);
    color: var(--coral-dark);
    border: 1px solid rgba(255, 107, 74, 0.3);
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ============================================================
   CRONOGRAMA
   ============================================================ */
.timeline {
    position: relative;
    max-width: 780px;
    margin: 2.5rem auto 0;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--blue), var(--coral), var(--gold));
    border-radius: 3px;
}

.tl-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -2.5rem; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    z-index: 2;
}
.tl-item:nth-child(2) .tl-dot { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.15); }
.tl-item:nth-child(3) .tl-dot { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.18); }
.tl-item:nth-child(4) .tl-dot { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.tl-item:nth-child(5) .tl-dot { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.18); }

.tl-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    transition: all .35s ease;
    box-shadow: var(--shadow-sm);
}

.tl-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.tl-date {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--coral-dark);
    font-weight: 700;
    margin-bottom: .4rem;
}

.tl-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: .4rem;
}

.tl-card p {
    color: var(--t2);
    font-size: .9rem;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria { background: #fff; }

.galeria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.gal-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3/4;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gal-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.5,0,0,1);
}

.gal-item:hover img { transform: scale(1.08); }

.gal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.9) 0%, rgba(15, 26, 46, 0.3) 45%, transparent 75%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.3rem;
    opacity: 0;
    transition: opacity .4s ease;
}

.gal-item:hover .gal-overlay { opacity: 1; }

.gal-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .2rem;
    transform: translateY(15px);
    transition: transform .4s ease;
}

.gal-overlay p {
    color: var(--coral-light);
    font-size: .82rem;
    transform: translateY(15px);
    transition: transform .4s ease .05s;
    margin-bottom: .7rem;
}

.gal-overlay i {
    color: var(--gold);
    font-size: 1.2rem;
    align-self: flex-start;
    transform: translateY(15px);
    transition: transform .4s ease .1s;
}

.gal-item:hover .gal-overlay h3,
.gal-item:hover .gal-overlay p,
.gal-item:hover .gal-overlay i { transform: translateY(0); }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem 1.3rem;
    text-align: center;
    transition: all .4s ease;
    box-shadow: var(--shadow-sm);
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.cat-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    border: 1.5px solid var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--blue);
    transition: all .4s ease;
}

.cat-card:hover .cat-icon {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    transform: rotate(-8deg) scale(1.08);
}

.cat-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: .5rem;
}

.cat-card p {
    color: var(--t2);
    font-size: .88rem;
}

/* ============================================================
   LEGADO
   ============================================================ */
.legado {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #0b2547 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.legado::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.35), transparent 70%);
    filter: blur(60px);
}

.legado .section-title { color: #fff; position: relative; }
.legado .section-title::after { background: var(--grad-warm); }

.legado-p {
    max-width: 800px;
    margin: 0 auto 1.3rem;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 1.02rem;
    line-height: 1.8;
    position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo {
    width: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.5));
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: .04em;
}

.footer-tag {
    font-size: .75rem;
    color: var(--coral-light);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-top: .3rem;
}

.footer h4 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: .05em;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.footer-list a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,0.7);
    font-size: .88rem;
    transition: color .25s;
}

.footer-list a:hover { color: var(--coral-light); }
.footer-list i { color: var(--blue-light); width: 18px; }

.footer-social {
    display: flex;
    gap: .7rem;
}

.footer-social a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    transition: all .3s ease;
}

.footer-social a:hover {
    background: var(--grad);
    border-color: transparent;
    transform: translateY(-3px) rotate(5deg);
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 5%;
    text-align: center;
    font-size: .78rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.footer-legal i { color: var(--coral); }

/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
.back-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all .35s ease;
    z-index: 998;
}

.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px) scale(1.05); }

/* ============================================================
   MODALES
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 26, 46, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; visibility: hidden;
    transition: all .3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    border-radius: 22px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: scale(.92);
    transition: transform .3s ease;
}

.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(15, 26, 46, 0.06);
    border: none;
    cursor: pointer;
    color: var(--t1);
    font-size: 1rem;
    transition: all .25s;
}

.modal-close:hover { background: var(--coral); color: #fff; transform: rotate(90deg); }

.modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: .3rem;
}

.modal-sub {
    font-size: .88rem;
    color: var(--t2);
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group i {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--t3);
    font-size: .9rem;
}

.form-group input {
    width: 100%;
    padding: .9rem 1rem .9rem 2.7rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--t1);
    transition: all .25s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modal-iframe {
    max-width: 92%;
    width: 900px;
    height: 88vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-iframe .modal-title {
    padding: 1.2rem 1.5rem;
    margin: 0;
    background: var(--grad);
    color: #fff;
    font-size: 1.1rem;
}

.modal-iframe .modal-close {
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

#registerFrame {
    flex: 1;
    width: 100%;
    border: none;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (min-width: 640px) {
    .user-info { display: flex; }

    .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .fases-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .galeria-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
}

/* ============================================================
   RESPONSIVE — DESKTOP
   ============================================================ */
@media (min-width: 1024px) {
    .fases-grid { grid-template-columns: repeat(3, 1fr); }
    .galeria-grid { grid-template-columns: repeat(4, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .timeline { padding-left: 3rem; }
}

/* ============================================================
   MÓVIL — NAV HORIZONTAL DESLIZABLE (NUNCA VERTICAL)
   ============================================================ */
@media (max-width: 900px) {
    .header-inner {
        padding: .6rem 3%;
        gap: .5rem;
    }

    .brand-text { display: none; }

    .main-nav {
        justify-content: flex-start;
        margin: 0 .3rem;
    }

    .nav-list {
        padding: .25rem;
        gap: .1rem;
    }

    .nav-link {
        padding: .45rem .8rem;
        font-size: .78rem;
    }

    .user-zone .btn span { display: none; }
    .user-zone .btn { padding: .55rem .8rem; }
}

@media (max-width: 480px) {
    .nav-link { padding: .4rem .65rem; font-size: .72rem; }
    .user-zone .btn { padding: .5rem .7rem; font-size: .75rem; }

    .countdown-grid { grid-template-columns: repeat(4, 1fr); gap: .4rem; }
    .cd-box { padding: 1rem .3rem; border-radius: 12px; }
    .cd-num { font-size: 1.5rem; }
    .cd-lab { font-size: .58rem; letter-spacing: .15em; }

    .back-top { width: 42px; height: 42px; bottom: 1rem; right: 1rem; }
}