/* =========================================================
   BEATNOVA · Tema oscuro neón
   ========================================================= */

:root {
    --bg:            #07080f;
    --bg-alt:        #0b0d18;
    --surface:       rgba(255, 255, 255, .04);
    --surface-hover: rgba(255, 255, 255, .08);
    --border:        rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);

    --text:      #eef1f8;
    --text-mute: #98a0b8;

    --neon:        #5eead4;
    --neon-strong: #2dd4bf;
    --violet:      #8b5cf6;
    --exito:       #4ade80;

    --nav-h: 72px;
    --radius: 12px;
    --container: 1240px;
    --shadow-neon: 0 0 24px rgba(94, 234, 212, .25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    background-image:
        radial-gradient(900px 500px at 15% -10%, rgba(139, 92, 246, .18), transparent 60%),
        radial-gradient(800px 460px at 90% 0%,  rgba(94, 234, 212, .14), transparent 60%);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* El footer se pega abajo si el contenido es corto */
main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease,
                background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn--primary {
    background: linear-gradient(135deg, var(--neon), var(--neon-strong));
    color: #04201c;
    box-shadow: var(--shadow-neon);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(94, 234, 212, .45);
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.btn--peligro {
    background: transparent;
    border-color: rgba(248, 113, 113, .38);
    color: #f87171;
}

.btn--peligro:hover {
    transform: translateY(-2px);
    border-color: #f87171;
    background: rgba(248, 113, 113, .1);
}

.btn.is-active {
    border-color: var(--neon);
    color: var(--neon);
}

/* Enlace "Mi cuenta" (cuando hay sesión iniciada)
   Hereda de .btn el tamaño exacto para que nunca se vea más
   pequeño que el botón "Descargar". Aquí solo el color. */
.navbar__usuario {
    background: color-mix(in srgb, var(--neon) 10%, transparent);
    border-color: color-mix(in srgb, var(--neon) 40%, transparent);
    color: var(--neon);
}

.navbar__usuario:hover {
    transform: translateY(-2px);
    border-color: var(--neon);
    background: color-mix(in srgb, var(--neon) 18%, transparent);
}

.navbar__usuario::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 10px var(--neon);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 8, 15, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease, background-color .25s ease;
}

.navbar.is-scrolled {
    background: rgba(7, 8, 15, .92);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}

.navbar__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

/* --- Logo --- */
.navbar__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform .2s ease, filter .2s ease;
}

.navbar__brand:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 14px rgba(94, 234, 212, .45));
}

.navbar__logo {
    width: auto;
    height: 42px;
}

/* --- Links --- */
.navbar__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
}

.navbar__link {
    position: relative;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--text-mute);
    transition: color .2s ease, background-color .2s ease;
}

.navbar__link:hover {
    color: var(--text);
    background: var(--surface);
}

.navbar__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--neon), var(--violet));
    transform: translateX(-50%);
    transition: width .22s ease;
}

.navbar__link:hover::after,
.navbar__link.is-active::after { width: 26px; }

.navbar__link.is-active { color: var(--text); }

/* --- Acciones --- */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar__toggle {
    display: none;
    place-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.navbar__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3.5px auto;
    border-radius: 2px;
    background: var(--text);
    transition: transform .25s ease, opacity .2s ease;
}

.navbar__toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* El logo nunca debe empujar el resto de la barra */
.navbar__brand { min-width: 0; }

.navbar__logo {
    width: auto;
    max-width: 100%;
    height: 42px;
}

/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 20px 22px;
    border-top: 1px solid var(--border);
    background: rgba(7, 8, 15, .97);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu__link {
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--text-mute);
    transition: background-color .2s ease, color .2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.mobile-menu__download {
    margin-top: 8px;
}

/* =========================================================
   HERO · SLIDER
   ========================================================= */

.slider {
    position: relative;
    height: calc(100vh - var(--nav-h));
    min-height: 540px;
    max-height: 900px;
    overflow: hidden;
}

.slider__track {
    position: absolute;
    inset: 0;
}

.slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}

.slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.slider__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s linear;
}

.slider__slide.is-active .slider__img {
    transform: scale(1);
}

/* Degradado para que el texto se lea */
.slider__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(7, 8, 15, .92) 0%, rgba(7, 8, 15, .72) 42%, rgba(7, 8, 15, .25) 100%),
        linear-gradient(to top,   rgba(7, 8, 15, .95) 0%, transparent 55%),
        linear-gradient(to bottom, rgba(7, 8, 15, .75) 0%, transparent 35%);
}

.slider__content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
}

.slider__content > * { pointer-events: auto; }

.slider__title {
    max-width: 16ch;
    font-size: clamp(2.1rem, 5.6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.02em;
    text-wrap: balance;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

.slider__resaltado {
    display: block;
    background: linear-gradient(90deg, var(--neon), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slider__text {
    max-width: 46ch;
    margin: 20px 0 32px;
    color: #c3cadd;
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    line-height: 1.65;
}

.slider__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* --- Entrada del texto (una sola vez al cargar) --- */
.slider__content > * {
    animation: slideUp .8s cubic-bezier(.22, .9, .3, 1) both;
}

.slider__content > *:nth-child(1) { animation-delay: .15s; }
.slider__content > *:nth-child(2) { animation-delay: .28s; }
.slider__content > *:nth-child(3) { animation-delay: .40s; }

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

/* --- Flechas --- */
.slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(7, 8, 15, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.slider__arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.slider__arrow:hover {
    background: var(--neon);
    border-color: var(--neon);
    color: #04201c;
}

.slider__arrow--prev { left: 26px; }
.slider__arrow--next { right: 26px; }

/* --- Puntos --- */
.slider__dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 11px;
    transform: translateX(-50%);
}

.slider__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease, border-color .3s ease;
}

.slider__dot:hover {
    background: rgba(255, 255, 255, .45);
}

.slider__dot.is-active {
    width: 34px;
    border-radius: 999px;
    border-color: var(--neon);
    background: var(--neon);
    box-shadow: 0 0 14px rgba(94, 234, 212, .6);
}

/* =========================================================
   RESPONSIVE · HERO
   ========================================================= */

@media (max-width: 900px) {
    .slider { height: calc(100svh - var(--nav-h)); min-height: 480px; }

    .slider__overlay {
        background:
            linear-gradient(to top, rgba(7, 8, 15, .96) 0%, rgba(7, 8, 15, .68) 55%, rgba(7, 8, 15, .4) 100%);
    }

    .slider__content {
        justify-content: flex-end;
        padding-bottom: 84px;
    }

    .slider__title { max-width: 100%; }

    .slider__text { margin: 14px 0 24px; }

    .slider__arrow { display: none; }

    .slider__dots { bottom: 24px; }
}

@media (max-width: 520px) {
    .slider__actions .btn { flex: 1 1 100%; }
}

.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--neon);
}

.hero__title {
    font-size: clamp(2.3rem, 6.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

.hero__text {
    max-width: 620px;
    margin: 0 auto 32px;
    color: var(--text-mute);
    font-size: 1.03rem;
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* =========================================================
   GALERÍA · 3 arriba + 3 abajo
   ========================================================= */

.galeria {
    padding: 96px 0 110px;
}

.galeria__head {
    text-align: left;
    margin-bottom: 46px;
}

.galeria__title {
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.galeria__title span {
    background: linear-gradient(90deg, var(--neon), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Rejilla 3 x 2 --- */
.galeria__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.galeria__item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
}

.galeria__btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.galeria__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, .9, .3, 1), filter .4s ease;
}

.galeria__btn:hover .galeria__img,
.galeria__btn:focus-visible .galeria__img {
    transform: scale(1.07);
    filter: brightness(.82);
}
/* Icono de lupa */
.galeria__lupa {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(7, 8, 15, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}

.galeria__lupa svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--neon);
    stroke-width: 2;
    stroke-linecap: round;
}

.galeria__btn:hover .galeria__lupa,
.galeria__btn:focus-visible .galeria__lupa {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    background: rgba(4, 5, 10, .93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn .25s ease both;
}

.lightbox[hidden] { display: none; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox__box {
    max-width: min(1100px, 100%);
    max-height: 100%;
    text-align: center;
}

.lightbox__box img {
    max-width: 100%;
    max-height: 78vh;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}

.lightbox__box figcaption {
    margin-top: 16px;
    color: var(--text-mute);
    font-size: .9rem;
}

.lightbox__close,
.lightbox__arrow {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
}

.lightbox__close svg,
.lightbox__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox__close:hover,
.lightbox__arrow:hover {
    background: var(--neon);
    border-color: var(--neon);
    color: #04201c;
}

/* =========================================================
   REDES SOCIALES
   ========================================================= */

.redes {
    position: relative;
    padding: 30px 0 130px;
    overflow: hidden;
}

/* Malla decorativa de fondo */
.redes__malla {
    position: absolute;
    inset: -20% -10% auto;
    height: 130%;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 78%);
            mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 78%);
}

.redes > .container {
    position: relative;
}

.redes__head {
    text-align: left;
    margin-bottom: 52px;
}

.redes__titulo {
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.08;
}

.redes__titulo span {
    background: linear-gradient(90deg, var(--neon), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.redes__texto {
    margin-top: 16px;
    max-width: 52ch;
    color: var(--text-mute);
    font-size: .97rem;
    line-height: 1.6;
}

/* --- Tarjetas --- */
.redes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.red {
    --color: var(--neon);
    --mx: 50%;
    --my: 50%;

    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;

    /* Borde con degradado de la marca */
    background:
        linear-gradient(160deg, rgba(16, 18, 32, .96), rgba(9, 10, 20, .96)) padding-box,
        linear-gradient(150deg,
            color-mix(in srgb, var(--color) 65%, transparent),
            rgba(255, 255, 255, .06) 45%,
            rgba(255, 255, 255, .04)) border-box;
    border: 1px solid transparent;

    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
    transition: transform .3s cubic-bezier(.22, .9, .3, 1), box-shadow .3s ease;
}

.red:hover {
    transform: translateY(-6px);
    box-shadow:
        0 28px 60px -22px rgba(0, 0, 0, .95),
        0 0 44px -14px color-mix(in srgb, var(--color) 55%, transparent);
}

/* Brillo que sigue al mouse */
.red__foco {
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: radial-gradient(320px circle at var(--mx) var(--my),
                color-mix(in srgb, var(--color) 26%, transparent), transparent 62%);
    opacity: 0;
    transition: opacity .35s ease;
}

.red:hover .red__foco { opacity: 1; }

/* Franja inferior que se llena al pasar el mouse */
.red__linea {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22, .9, .3, 1);
}

.red:hover .red__linea { transform: scaleX(1); }

/* --- Icono --- */
.red__icono {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(145deg,
                color-mix(in srgb, var(--color) 90%, #fff 10%),
                color-mix(in srgb, var(--color) 75%, #000 25%));
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        0 10px 24px -10px color-mix(in srgb, var(--color) 75%, transparent);
    transition: transform .35s cubic-bezier(.22, .9, .3, 1);
}

.red__icono::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .45), transparent 55%);
    opacity: .9;
}

.red__icono svg {
    position: relative;
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.red:hover .red__icono {
    transform: scale(1.1) rotate(-7deg);
}

/* --- Datos --- */
.red__datos {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.red__nombre {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.red__usuario {
    color: var(--text-mute);
    font-size: .86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s ease;
}

.red:hover .red__usuario { color: var(--color); }

.red__extra {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border: 1px solid color-mix(in srgb, var(--color) 40%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color) 12%, transparent);
    color: var(--color);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    width: fit-content;
}

/* --- Flecha --- */
.red__flecha {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-mute);
    opacity: .45;
    transform: translateX(-6px) scale(.9);
    transition: opacity .3s ease, transform .3s ease,
                background-color .3s ease, color .3s ease, border-color .3s ease;
}

.red__flecha svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.red:hover .red__flecha {
    opacity: 1;
    transform: translateX(0) scale(1);
    background: var(--color);
    border-color: var(--color);
    color: #fff;
}

/* =========================================================
   RESPONSIVE · REDES
   ========================================================= */

@media (max-width: 980px) {
    .redes__grid { grid-template-columns: 1fr; }

    .red { padding: 22px; }
}

@media (max-width: 520px) {
    .redes { padding-bottom: 90px; }

    .red { padding: 18px; gap: 16px; }

    .red__icono { width: 50px; height: 50px; }

    .red__icono svg { width: 25px; height: 25px; }

    .red__flecha { display: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    position: relative;
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(11, 13, 24, .6), rgba(5, 6, 12, .95));
}

.footer::before {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon), var(--violet), transparent);
    opacity: .55;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr;
    gap: 48px;
    padding: 62px 0 44px;
}

/* --- Marca --- */
.footer__logo {
    height: 40px;
    width: auto;
    margin-bottom: 18px;
}

.footer__desc {
    max-width: 40ch;
    color: var(--text-mute);
    font-size: .9rem;
    line-height: 1.65;
}

.footer__redes {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.footer__red {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text-mute);
    transition: transform .22s ease, color .22s ease,
                border-color .22s ease, background-color .22s ease,
                box-shadow .22s ease;
}

.footer__red svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.footer__red:hover {
    transform: translateY(-3px);
    color: var(--color);
    border-color: color-mix(in srgb, var(--color) 60%, transparent);
    background: color-mix(in srgb, var(--color) 12%, transparent);
    box-shadow: 0 0 22px -6px color-mix(in srgb, var(--color) 65%, transparent);
}

/* --- Columnas --- */
.footer__titulo {
    margin-bottom: 18px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text);
}

.footer__lista {
    display: flex;
    flex-direction: column;
    gap: 11px;
    list-style: none;
}

.footer__link {
    color: var(--text-mute);
    font-size: .9rem;
    transition: color .2s ease, padding-left .2s ease;
}

.footer__link:hover {
    color: var(--neon);
    padding-left: 5px;
}

/* --- Lista de características --- */
.footer__lista--puntos {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer__punto {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: var(--text-mute);
}

.footer__punto-icono {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid color-mix(in srgb, var(--neon) 26%, transparent);
    border-radius: 7px;
    background: color-mix(in srgb, var(--neon) 8%, transparent);
    color: var(--neon);
}

.footer__punto-icono svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer__punto-texto {
    line-height: 1.45;
}

/* --- Barra inferior --- */
.footer__bottom {
    padding: 22px 0 30px;
    border-top: 1px solid var(--border);
    color: var(--text-mute);
    font-size: .82rem;
}

/* =========================================================
   RESPONSIVE · FOOTER
   ========================================================= */

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 560px) {
    .footer__grid {
        gap: 34px;
        padding: 46px 0 34px;
    }
}

/* =========================================================
   AUTENTICACIÓN · Registro / Login
   ========================================================= */

.auth {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    width: calc(100% - 40px);
    max-width: 1080px;
    margin: 64px auto 90px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(10, 12, 22, .6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9);
    overflow: hidden;
}

/* --- Panel izquierdo --- */
.auth__lado--marca {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 46px;
    background:
        radial-gradient(600px 320px at 20% 0%, rgba(94, 234, 212, .16), transparent 65%),
        radial-gradient(520px 320px at 90% 100%, rgba(139, 92, 246, .18), transparent 65%),
        linear-gradient(160deg, #0e1226, #08090f);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

/* Malla del panel */
.auth__lado--marca::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
            mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.auth__lado--marca > * { position: relative; }

.auth__logo {
    align-self: flex-start;   /* evita que el flex lo estire */
    width: auto;
    height: 38px;
    margin-bottom: 30px;
}

.auth__titulo {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.auth__titulo span {
    background: linear-gradient(90deg, var(--neon), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth__texto {
    margin-top: 16px;
    color: var(--text-mute);
    font-size: .93rem;
    line-height: 1.65;
}

.auth__lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    list-style: none;
}

.auth__lista li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .89rem;
    color: #c8cde0;
}

.auth__check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--neon);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Panel derecho --- */
.auth__lado--form {
    padding: 54px 46px;
}

.auth__cabecera {
    margin-bottom: 30px;
}

.auth__badge {
    display: inline-block;
    margin-bottom: 13px;
    padding: 5px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--neon);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth__encabezado {
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.auth__sub {
    margin-top: 8px;
    color: var(--text-mute);
    font-size: .9rem;
}

/* --- Alertas --- */
.alerta {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 11px;
    font-size: .87rem;
    line-height: 1.5;
}

.alerta__icono {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: currentColor;
}

/* El SVG de la alerta hereda el color del mensaje */
.alerta__icono svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alerta--error {
    border-color: rgba(248, 113, 113, .35);
    background: rgba(248, 113, 113, .08);
    color: #fca5a5;
}

.alerta--exito {
    border-color: color-mix(in srgb, var(--exito) 42%, transparent);
    background: color-mix(in srgb, var(--exito) 11%, transparent);
    color: var(--exito);
}

/* --- Formulario --- */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campo__label {
    display: block;
    margin-bottom: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.campo__control {
    position: relative;
    display: flex;
    align-items: center;
}

.campo__input {
    width: 100%;
    padding: 13px 15px 13px 46px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font-family: inherit;
    font-size: .94rem;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.campo__input::placeholder {
    color: #5f6780;
}

.campo__input:focus {
    border-color: var(--neon);
    background: rgba(94, 234, 212, .05);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .12);
}

.campo__icono {
    position: absolute;
    left: 15px;
    display: grid;
    place-items: center;
    color: var(--text-mute);
    pointer-events: none;
    transition: color .2s ease;
}

.campo__icono svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campo:focus-within .campo__icono { color: var(--neon); }

/* Deja espacio para el botón de ver contraseña */
.campo__input--con-boton {
    padding-right: 54px;
}

/* Botón ver contraseña */
.campo__ver {
    position: absolute;
    right: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text-mute);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.campo__ver:hover {
    color: var(--neon);
    background: var(--surface);
}

.campo__ver svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.campo__ayuda {
    margin-top: 8px;
    color: #6d748c;
    font-size: .78rem;
}

.campo__error {
    margin-top: 8px;
    color: #fca5a5;
    font-size: .8rem;
}

.campo.es-error .campo__input {
    border-color: rgba(248, 113, 113, .6);
    background: rgba(248, 113, 113, .06);
}

.campo.es-error .campo__label { color: #fca5a5; }

/* --- Medidor de contraseña --- */
.fuerza {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 11px;
}

.fuerza__barras {
    display: flex;
    gap: 5px;
    flex: 1;
}

.fuerza__barras i {
    height: 4px;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    transition: background-color .3s ease;
}

.fuerza__texto {
    min-width: 96px;
    color: var(--text-mute);
    font-size: .76rem;
    font-weight: 600;
    text-align: right;
    transition: color .3s ease;
}

.fuerza[data-nivel="1"] .fuerza__barras i:nth-child(-n+1) { background: #ef4444; }
.fuerza[data-nivel="2"] .fuerza__barras i:nth-child(-n+2) { background: #f59e0b; }
.fuerza[data-nivel="3"] .fuerza__barras i:nth-child(-n+3) { background: #38bdf8; }
.fuerza[data-nivel="4"] .fuerza__barras i { background: var(--neon); }

.fuerza[data-nivel="1"] .fuerza__texto { color: #ef4444; }
.fuerza[data-nivel="2"] .fuerza__texto { color: #f59e0b; }
.fuerza[data-nivel="3"] .fuerza__texto { color: #38bdf8; }
.fuerza[data-nivel="4"] .fuerza__texto { color: var(--neon); }

/* --- Género (opciones tipo tarjeta) --- */
.campo--genero {
    padding: 0;
    border: 0;
    margin: 0;
}

.campo--genero .campo__label { margin-bottom: 10px; }

.genero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.genero__opcion {
    display: block;
    cursor: pointer;
}

.genero__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.genero__caja {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .03);
    font-size: .92rem;
    font-weight: 500;
    transition: border-color .2s ease, background-color .2s ease,
                color .2s ease, transform .2s ease;
}

.genero__caja:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.genero__punto {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    transition: border-color .2s ease;
}

.genero__punto::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--neon);
    transform: scale(0);
    transition: transform .2s cubic-bezier(.22, .9, .3, 1);
}

.genero__input:checked + .genero__caja {
    border-color: var(--neon);
    background: rgba(94, 234, 212, .07);
    color: var(--neon);
    transform: translateY(-1px);
}

.genero__input:checked + .genero__caja .genero__punto {
    border-color: var(--neon);
}

.genero__input:checked + .genero__caja .genero__punto::after {
    transform: scale(1);
}

.genero__input:focus-visible + .genero__caja {
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .18);
}

.campo--genero.es-error .genero__caja {
    border-color: rgba(248, 113, 113, .5);
}

/* --- Términos y condiciones --- */
.terminos {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    cursor: pointer;
}

.terminos__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.terminos__caja {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
    transition: border-color .2s ease, background-color .2s ease;
}

.terminos__check {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #04201c;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .18s ease, transform .18s cubic-bezier(.22, .9, .3, 1);
}

.terminos__input:checked + .terminos__caja {
    border-color: var(--neon);
    background: var(--neon);
}

.terminos__input:checked + .terminos__caja .terminos__check {
    opacity: 1;
    transform: scale(1);
}

.terminos__input:focus-visible + .terminos__caja {
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .2);
}

.terminos__texto {
    color: var(--text-mute);
    font-size: .86rem;
    line-height: 1.55;
}

.terminos__texto a {
    color: var(--neon);
    font-weight: 600;
}

.terminos__texto a:hover { text-decoration: underline; }

.campo.es-error .terminos__caja {
    border-color: rgba(248, 113, 113, .6);
}

/* --- Botón y pie --- */
.btn--bloque {
    width: 100%;
    padding: 14px 20px;
    margin-top: 4px;
    font-size: .88rem;
}

/* Aviso cuando el formulario está oculto por límite de IP */
.auth__nota {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-mute);
    font-size: .92rem;
    text-align: center;
}

.auth__enlace {
    color: var(--neon);
    font-weight: 600;
}

.form__pie {
    margin-top: 26px;
    color: var(--text-mute);
    font-size: .9rem;
    text-align: center;
}

.form__pie a {
    color: var(--neon);
    font-weight: 600;
    text-decoration: none;
}

.form__pie a:hover {
    text-decoration: underline;
}

.btn--bloque[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   RESPONSIVE · AUTENTICACIÓN
   ========================================================= */

@media (max-width: 900px) {
    .auth {
        grid-template-columns: 1fr;
        width: calc(100% - 40px);
        margin: 40px auto 64px;
    }

    .auth__lado--marca {
        padding: 40px 32px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .auth__lado--form { padding: 40px 32px; }

    .auth__lista { display: none; }
}

@media (max-width: 520px) {
    .auth {
        width: calc(100% - 24px);
        margin: 24px auto 48px;
        border-radius: 16px;
    }

    .auth__lado--marca { padding: 30px 22px; }

    .auth__lado--form { padding: 30px 22px 34px; }

    .auth__logo { height: 32px; }

    .fuerza__texto { min-width: 78px; font-size: .72rem; }

    .genero { grid-template-columns: 1fr; gap: 10px; }

    .genero__caja { padding: 12px 14px; }
}

/* =========================================================
   MI CUENTA
   ========================================================= */

.cuenta {
    padding: 70px 0 100px;
}

.cuenta__contenedor {
    max-width: 900px;
}

.cuenta__cabecera {
    margin-bottom: 42px;
}

.cuenta__badge {
    display: inline-block;
    margin-bottom: 13px;
    padding: 5px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--neon);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.cuenta__saludo {
    font-size: clamp(1.8rem, 4.2vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.cuenta__saludo span {
    background: linear-gradient(90deg, var(--neon), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cuenta__texto {
    margin-top: 12px;
    color: var(--text-mute);
    font-size: .95rem;
}

.cuenta__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* --- Tarjeta de dato --- */
.dato {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.dato:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.dato__icono {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid color-mix(in srgb, var(--tono, var(--neon)) 32%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--tono, var(--neon)) 10%, transparent);
    color: var(--tono, var(--neon));
}

.dato__icono svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dato__cuerpo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dato__clave {
    color: var(--text-mute);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dato__valor {
    font-size: 1.02rem;
    font-weight: 600;
    word-break: break-word;
}

.cuenta__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

/* =========================================================
   TARJETA DE PERFIL
   ========================================================= */

.perfil {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    margin-bottom: 26px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}

/* Resplandor con el color asignado al usuario */
.perfil__halo {
    position: absolute;
    top: -60%;
    left: -10%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: var(--tono, var(--neon));
    filter: blur(90px);
    opacity: .16;
    pointer-events: none;
}

.perfil__avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 2px solid var(--tono, var(--neon));
    border-radius: 26px;
    background: color-mix(in srgb, var(--tono, var(--neon)) 16%, transparent);
    color: var(--tono, var(--neon));
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 0 34px color-mix(in srgb, var(--tono, var(--neon)) 28%, transparent);
}

.perfil__info {
    position: relative;
    min-width: 0;
}

.perfil__nombre {
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    word-break: break-word;
}

.perfil__miembro {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: var(--text-mute);
    font-size: .88rem;
}

.perfil__estrella {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--tono, var(--neon));
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Etiquetas --- */
.perfil__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-mute);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .05em;
    white-space: nowrap;
}

.chip--ok {
    border-color: color-mix(in srgb, var(--exito) 38%, transparent);
    background: color-mix(in srgb, var(--exito) 12%, transparent);
    color: var(--exito);
}

/* --- Último acceso --- */
.perfil__acceso {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-self: stretch;
    padding-left: 28px;
    border-left: 1px solid var(--border);
    text-align: right;
}

.perfil__acceso-clave {
    color: var(--text-mute);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.perfil__acceso-valor {
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .perfil {
        grid-template-columns: auto 1fr;
        gap: 20px;
        padding: 26px;
    }

    .perfil__acceso {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid var(--border);
        text-align: left;
    }
}

@media (max-width: 560px) {
    .perfil__avatar {
        width: 68px;
        height: 68px;
        border-radius: 20px;
        font-size: 1.5rem;
    }

    .perfil__acceso-valor { white-space: normal; }
}

@media (max-width: 720px) {
    .cuenta {
        padding: 44px 0 70px;
    }

    .cuenta__grid { grid-template-columns: 1fr; }

    .cuenta__acciones .btn { flex: 1 1 100%; }
}

/* --- Fila de opciones (recuérdame / olvidé contraseña) --- */
.form__fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.form__olvide {
    color: var(--text-mute);
    font-size: .86rem;
    text-decoration: none;
    transition: color .2s ease;
}

.form__olvide:hover {
    color: var(--neon);
}

/* =========================================================
   PRÓXIMAMENTE · Recuperar contraseña
   ========================================================= */

.proximamente {
    padding: 80px 0 60px;
}

.proximamente__contenedor {
    max-width: 760px;
}

.proximamente__caja {
    padding: 52px 48px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    text-align: center;
}

.proximamente__icono {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border: 1px solid color-mix(in srgb, var(--neon) 34%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--neon) 10%, transparent);
    color: var(--neon);
}

.proximamente__icono svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.proximamente__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-hover);
    color: var(--neon);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.proximamente__titulo {
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.proximamente__texto {
    margin-top: 14px;
    color: var(--text-mute);
    font-size: .96rem;
    line-height: 1.7;
}

.proximamente__nota {
    margin-top: 18px;
    color: var(--text-mute);
    font-size: .89rem;
    line-height: 1.65;
}

.proximamente__nota a {
    color: var(--neon);
    font-weight: 600;
    text-decoration: none;
}

.proximamente__nota a:hover {
    text-decoration: underline;
}

.proximamente__acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

@media (max-width: 620px) {
    .proximamente { padding: 46px 0; }
    .proximamente__caja { padding: 32px 22px; }
    .proximamente__acciones .btn { flex: 1 1 100%; }
}

/* =========================================================
   PÁGINA LEGAL · Términos y condiciones
   ========================================================= */

.legal {
    padding: 70px 0 40px;
}

.legal__contenedor {
    max-width: 820px;
}

.legal__cabecera {
    margin-bottom: 48px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
}

.legal__badge {
    display: inline-block;
    margin-bottom: 13px;
    padding: 5px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--neon);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.legal__titulo {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.legal__titulo span {
    background: linear-gradient(90deg, var(--neon), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal__fecha {
    margin-top: 14px;
    color: var(--text-mute);
    font-size: .85rem;
}

.legal__bloque {
    margin-bottom: 34px;
}

.legal__bloque h2 {
    margin-bottom: 13px;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--neon);
}

.legal__bloque p {
    margin-bottom: 12px;
    color: #c2c8dc;
    font-size: .95rem;
    line-height: 1.75;
}

.legal__bloque p:last-child { margin-bottom: 0; }

.legal__bloque ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 4px;
    list-style: none;
}

.legal__bloque li {
    position: relative;
    padding-left: 26px;
    color: #c2c8dc;
    font-size: .95rem;
    line-height: 1.7;
}

.legal__bloque li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 8px rgba(94, 234, 212, .7);
}

.legal__pie {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* =========================================================
   RESPONSIVE · GALERÍA
   ========================================================= */

@media (max-width: 980px) {
    .galeria__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .galeria { padding: 64px 0 76px; }

    .galeria__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lightbox { padding: 20px 12px; }

    .lightbox__arrow { display: none; }

    .lightbox__close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
}


/* =========================================================
   RESPONSIVE · NAVBAR
   ========================================================= */

@media (max-width: 900px) {
    /* Los links y los botones se van al menú desplegable */
    .navbar__menu,
    .navbar__login,
    .navbar__usuario:not(.mobile-menu__download),
    .navbar__download { display: none; }

    .navbar__toggle { display: grid; }

    .navbar__inner {
        justify-content: space-between;
        gap: 16px;
    }

    .navbar__logo { height: 36px; }
}

@media (max-width: 520px) {
    :root { --nav-h: 64px; }

    .navbar__inner { padding-inline: 16px; }
    .navbar__logo { height: 32px; }

    .mobile-menu { padding-inline: 16px; }

    /* El botón se queda solo con el icono */
    .navbar__download { padding: 11px 13px; }

    .hero { padding: 56px 0; }
}

/* Bloquea el scroll del fondo mientras el menú está abierto */
body.menu-abierto { overflow: hidden; }
