/* ============================================================
   IRON HALL — Landing Page
   Design System v3 · Dark Athletic Editorial
   ============================================================ */

:root {
    --red: #C41E3A;
    --red-dark: #8B1020;
    --red-glow: rgba(196, 30, 58, 0.18);
    --black: #080808;
    --dark: #111111;
    --card: #161616;
    --border: #222222;
    --border-2: #2e2e2e;
    --light: #F4F0EA;
    --light-2: #E8E3DA;
    --white: #FFFFFF;
    --muted: #666666;
    --mid: #999999;

    --ff-display: "Bebas Neue", sans-serif;
    --ff-body: "Roboto", sans-serif;
    --ff-ui: "Montserrat", sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ff-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--red);
}

main {
    flex: 1;
}

/* ============================================================
   UTILITY
   ============================================================ */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-ui);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   NAV
   ============================================================ */
nav {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 64px;
    height: 84px;
}

.nav-logo {
    height: 72px;
    width: 72px;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 38px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.22s ease;
    position: relative;
    padding-bottom: 3px;
    display: inline-block;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.28s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--white);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.35s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav mobile */
@media (max-width: 850px) {
    nav {
        padding: 0 22px 0 20px;
    }

    .nav-logo {
        height: 56px;
        width: 56px;
    }

    .hamburger {
        display: flex;
    }

    nav.loaded .hamburger {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 68%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 0 0 0 44px;
        margin: 0;
        transition: right 0.42s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li a {
        font-size: 20px;
        letter-spacing: 3px;
        color: var(--white);
    }
}

/* ============================================================
   HERO — VIDEO
   ============================================================ */
.section-entrada {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 9vh;
}

.video-fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    z-index: 0;
}

/* Gradient vignette */
.section-entrada::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(8, 8, 8, 0.35) 88%, rgba(8, 8, 8, 1) 100%);
    z-index: 1;
}

/* Red accent — top-left decorative line */
.section-entrada::after {
    content: '';
    position: absolute;
    top: 0;
    left: 64px;
    width: 2px;
    height: 84px;
    background: var(--red);
    z-index: 3;
}

.entrada-contenido {
    position: relative;
    z-index: 3;
    padding: 0 64px;
    max-width: 860px;
    animation: heroIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 20px;
}

.hero-eyebrow-line {
    display: block;
    width: 38px;
    height: 1px;
    background: var(--red);
    flex-shrink: 0;
}

.linea1 {
    font-family: var(--ff-display);
    font-size: clamp(44px, 5.5vw, 72px);
    line-height: 1;
    letter-spacing: 3px;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
}

.linea2 {
    font-family: var(--ff-display);
    font-size: clamp(72px, 10vw, 128px);
    line-height: 0.88;
    letter-spacing: 3px;
    color: var(--red);
    margin: 0 0 38px;
    text-transform: uppercase;
}

.btn-contacto {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 38px;
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-contacto:hover {
    background: transparent;
    color: var(--white);
}

@media (max-width: 768px) {
    .section-entrada {
        padding-bottom: 7vh;
    }

    .section-entrada::after {
        left: 20px;
    }

    .entrada-contenido {
        padding: 0 22px;
    }

    .linea1 {
        font-size: 38px;
    }

    .linea2 {
        font-size: 64px;
    }
}

@media (max-width: 480px) {
    .linea1 {
        font-size: 32px;
    }

    .linea2 {
        font-size: 52px;
    }

    .btn-contacto {
        padding: 13px 28px;
        font-size: 10px;
    }
}

/* ============================================================
   DECORACION ENTRE HERO Y SOBRE
   ============================================================ */
.decoracion-entrada {
    background: var(--light);
    display: flex;
    align-items: center;
    padding: 0;
    height: 56px;
    gap: 0;
    margin: 0;
    text-align: center;
}

.hr-entrada1 {
    flex: 1;
    height: 1px;
    border: none;
    background: var(--light-2);
    margin: 0 16px;
}

.hr-entrada2 {
    width: 50px;
    height: 1px;
    border: none;
    background: var(--light-2);
    margin: 0 16px;
}

.decoracion-entrada a {
    text-decoration: none;
}

.flecha-doble {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    animation: flotar 2.8s ease-in-out infinite alternate;
    line-height: 1;
    gap: -4px;
}

.flecha-doble span {
    font-size: 14px;
    color: #aaa;
    transform: rotate(-90deg);
    line-height: 1;
    transition: color 0.25s ease;
    display: block;
}

.flecha-doble:hover span {
    color: var(--red);
}

@keyframes flotar {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .flecha-doble span {
        font-size: 12px;
    }
}

/* ============================================================
   SOBRE EL GIMNASIO
   ============================================================ */
.sobre-section {
    position: relative;
    background: var(--light);
    padding: 110px 0 120px;
    overflow: hidden;
}

/* Watermark background */
.sobre-watermark {
    position: absolute;
    top: 50%;
    left: -3%;
    transform: translateY(-50%);
    font-family: var(--ff-display);
    font-size: clamp(160px, 20vw, 300px);
    letter-spacing: -8px;
    color: rgba(0, 0, 0, 0.045);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.sobre-contenido {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

.sobre-contenido>.section-eyebrow {
    margin-bottom: 10px;
}

.sobre-title {
    font-family: var(--ff-display);
    font-size: clamp(44px, 6vw, 78px);
    letter-spacing: 7px;
    color: #0a0a0a;
    margin: 0 0 64px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
}

/* Eyebrow centered above title */
.sobre-contenido>.section-eyebrow {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

/* Texto con borde rojo izquierdo */
.sobre-texto {
    padding-left: 28px;
    border-left: 3px solid var(--red);
}

.sobre-texto h3 {
    font-family: var(--ff-display);
    font-size: clamp(30px, 3.5vw, 46px);
    letter-spacing: 2px;
    color: #0a0a0a;
    margin: 0 0 26px;
    text-transform: uppercase;
    line-height: 1.05;
}

.sobre-texto p {
    font-family: var(--ff-body);
    font-size: 15.5px;
    font-weight: 300;
    color: #3a3a3a;
    line-height: 1.9;
    margin-bottom: 20px;
}

/* Imagen con borde decorativo */
.sobre-img-box {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.sobre-img-box::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 55%;
    height: 55%;
    border: 2px solid var(--red);
    pointer-events: none;
    z-index: 0;
}

.sobre-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transform: scale(1.04);
    transition: transform 0.65s ease, filter 0.65s ease;
    filter: saturate(0.8);
}

.sobre-img-box:hover .sobre-img {
    transform: scale(1.09);
    filter: saturate(1);
}

@media (max-width: 960px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .sobre-contenido {
        padding: 0 28px;
    }

    .sobre-img-box {
        height: 320px;
    }

    .sobre-img-box::after {
        display: none;
    }

    .sobre-watermark {
        font-size: 130px;
    }
}

@media (max-width: 600px) {
    .sobre-section {
        padding: 80px 0 90px;
    }

    .sobre-title {
        font-size: 42px;
        margin-bottom: 44px;
    }

    .sobre-texto {
        padding-left: 18px;
    }
}

/* ============================================================
   ENTRENADORES
   ============================================================ */
.entrenadores-section {
    position: relative;
    background: var(--dark);
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
}

/* Línea decorativa superior */
.entrenadores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 5%, var(--border-2) 30%, var(--red) 50%, var(--border-2) 70%, transparent 95%);
}

/* Logo flotante de fondo */
.entrenadores-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    position: absolute;
    top: 68px;
    right: 56px;
    opacity: 0.07;
    filter: invert(1);
    animation: flotar2 5s ease-in-out infinite;
    pointer-events: none;
}

.entrenadores-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 56px;
}

.entrenadores-eyebrow {
    justify-content: center;
}

.entrenadores-eyebrow::before {
    display: none;
}

.entrenadores-title {
    font-family: var(--ff-display);
    font-size: clamp(46px, 6.5vw, 84px);
    letter-spacing: 10px;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.entrenadores-hr {
    width: 36px;
    height: 2px;
    background: var(--red);
    border: none;
    margin: 14px auto 0;
}

/* Carrusel */
.carrusel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 20px 0 40px;
    contain: layout;
}

.carrusel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 100%;
    will-change: transform;
    cursor: grab;
    user-select: none;
}
.carrusel-track:active { cursor: grabbing; }

/* Card */
.card {
    flex: 0 0 320px;
    height: 460px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--card);
    z-index: 5;
    cursor: pointer;
    transition: transform 0.38s ease;
    border: 1px solid var(--border);
    will-change: transform;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.06);
    /* solo animamos transform (GPU-acelerado), no filter */
    transition: transform 0.55s ease;
    filter: saturate(0.65) brightness(0.88);
    will-change: transform;
}

.card:hover img {
    transform: scale(1.11);
    filter: saturate(0.85) brightness(0.75);
}

/* Overlay — gradiente siempre visible desde abajo */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(8, 8, 8, 0.96) 0%,
            rgba(8, 8, 8, 0.45) 38%,
            rgba(8, 8, 8, 0.08) 65%,
            transparent 100%);
    z-index: 2;
    /* eliminamos transition de background (no es GPU-acelerado) */
}

/* En hover usamos un pseudo-element para la transición del overlay */
.card-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(8, 8, 8, 0.98) 0%,
            rgba(8, 8, 8, 0.82) 48%,
            rgba(8, 8, 8, 0.3) 75%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.38s ease;
}

.card:hover .card-overlay::after {
    opacity: 1;
}

/* Label — nombre siempre visible abajo */
.card-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    font-family: var(--ff-display);
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
    z-index: 4;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

/* Info oculta — aparece en hover (desktop) o tap .active (móvil) */
.card-hidden {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    color: var(--white);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
    z-index: 5;
}

.card:hover .card-hidden,
.card.active .card-hidden {
    opacity: 1;
    transform: translateY(0);
}

.card:hover .card-label,
.card.active .card-label {
    opacity: 0;
    transform: translateY(8px);
}

.card.active .card-overlay::after {
    opacity: 1;
}

.card.active img {
    transform: scale(1.08);
}

.card-hidden h3 {
    font-family: var(--ff-display);
    font-size: 26px;
    letter-spacing: 2px;
    margin: 0 0 0;
    text-transform: uppercase;
}

.card-hidden h3::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--red);
    margin: 8px 0 12px;
}

.trainer-role {
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}

.trainer-info {
    max-width: 100%;
}

.trainer-main {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.trainer-achievement {
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #C9A84C;
    margin-bottom: 10px;
}

.trainer-desc {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

/* Card enfocada */
.card.focus {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--border-2);
    z-index: 10;
}

/* Botones carrusel */
.carrusel button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid var(--border-2);
    cursor: pointer;
    width: 46px;
    height: 46px;
    font-size: 15px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.carrusel button:hover {
    background: var(--red);
    border-color: var(--red);
}

.btn-left {
    left: 14px;
}

.btn-right {
    right: 14px;
}

/* Instagram link */
.trainer-ig {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: rgba(255,255,255,0.6);
    font-family: var(--ff-ui);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.trainer-ig:hover { color: #fff; }
.trainer-ig .fab {
    font-size: 14px;
    line-height: 1;
}

/* Hint tooltip */
.card-hint {
    position: absolute;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10,10,10,0.82);
    color: rgba(255,255,255,0.88);
    padding: 6px 14px;
    font-family: var(--ff-ui);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.14);
}
.card.show-hint .card-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Ocultar hint cuando el card está activo/hover */
.card:hover .card-hint,
.card.active .card-hint {
    opacity: 0 !important;
    transition: none;
}

/* Card CV */
.card-cv {
    background: #0d0d0d;
    border-color: rgba(196,30,58,0.35);
}

.card-cv-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px;
    color: var(--white);
    text-align: center;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.card-cv-plus {
    display: block;
    font-family: var(--ff-display);
    font-size: 60px;
    color: var(--red);
    line-height: 1;
    margin-bottom: 12px;
}

.card-cv-content h3 {
    font-family: var(--ff-display);
    font-size: 34px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--white);
}

.card-cv-content p {
    font-family: var(--ff-body);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.card-cv-tag {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 1px solid rgba(196,30,58,0.45);
    padding: 7px 18px;
    color: rgba(255,255,255,0.45);
    transition: all 0.25s ease;
}

.card-cv:hover .card-cv-content,
.card-cv.active .card-cv-content { opacity: 0; }

/* Botón CTA dentro del card-hidden del CV */
.card-cv-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 20px;
    background: transparent;
    border: 1px solid var(--red);
    color: var(--white);
    font-family: var(--ff-ui);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.22s ease;
    cursor: pointer;
}
.card-cv-btn:hover { background: var(--red); }

@keyframes flotar2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 75%;
        height: 400px;
    }

    .entrenadores-logo {
        display: none;
    }

    .entrenadores-section {
        padding: 80px 0 100px;
    }
}

@media (max-width: 650px) {
    .entrenadores-title {
        font-size: 44px;
        letter-spacing: 6px;
    }
}

/* ── Dispositivos táctiles: sin filter costoso ── */
@media (hover: none) and (pointer: coarse) {
    /* Eliminamos filter en móvil (operación costosa en GPU móvil) */
    .card img {
        filter: none;
        transition: transform 0.3s ease;
    }
}

@media (max-width: 480px) {
    .card {
        flex: 0 0 80%;
        height: 380px;
    }

    .carrusel button {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .trainer-main,
    .trainer-achievement,
    .trainer-desc {
        font-size: 12px;
    }
}

/* ============================================================
   PLANES / MEMBRESÍAS
   ============================================================ */
.planes-section {
    background: var(--black);
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Grid de fondo sutil */
.planes-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

/* Borde superior */
.planes-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 5%, var(--border-2) 30%, var(--red) 50%, var(--border-2) 70%, transparent 95%);
    pointer-events: none;
}

.planes-header {
    position: relative;
    z-index: 1;
    margin-bottom: 54px;
}

.planes-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-ui);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.planes-eyebrow::before,
.planes-eyebrow::after {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--red);
}

.planes-title {
    font-family: var(--ff-display);
    font-size: clamp(50px, 8vw, 96px);
    color: var(--white);
    letter-spacing: 10px;
    margin: 0 0 12px;
    line-height: 1;
    text-transform: uppercase;
}

.planes-subtitulo {
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Carrusel */
.carrusel-planes {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 44px 0 64px;
}

.carrusel-track-planes {
    display: flex;
    gap: 26px;
    transition: transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 100%;
    cursor: grab;
    user-select: none;
}
.carrusel-track-planes:active { cursor: grabbing; }

/* Card plan */
.card-plan {
    flex: 0 0 340px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 42px 34px 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    transition: border-color 0.38s ease, transform 0.38s ease, box-shadow 0.38s ease;
}

.card-plan.focus-plan {
    transform: translateY(-16px) scale(1.03);
    border-color: var(--red);
    box-shadow: 0 28px 70px var(--red-glow);
    z-index: 10;
}

.card-plan.destacado {
    background: #130708;
    border-color: rgba(196, 30, 58, 0.35);
}

.card-plan.destacado.focus-plan {
    box-shadow: 0 32px 80px rgba(196, 30, 58, 0.32);
}

/* Badge */
.plan-badge {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--red);
    border: 1px solid rgba(196, 30, 58, 0.35);
    padding: 4px 14px;
    margin-bottom: 22px;
}

.card-plan-top {
    width: 100%;
}

.plan-nombre {
    font-family: var(--ff-display);
    font-size: 24px;
    letter-spacing: 3.5px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 18px;
    text-transform: uppercase;
}

.plan-precio-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.plan-monto {
    font-family: var(--ff-display);
    font-size: 60px;
    color: var(--white);
    line-height: 1;
    letter-spacing: 1px;
}

.card-plan.destacado .plan-monto {
    color: var(--red);
}

.card-plan.focus-plan .plan-monto {
    color: var(--white);
}

.card-plan.destacado.focus-plan .plan-monto {
    color: var(--red);
}

.plan-periodo {
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.plan-divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    margin: 26px 0;
}

.card-plan.destacado .plan-divider {
    border-color: rgba(196, 30, 58, 0.18);
}

/* Lista */
.plan-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 34px;
    width: 100%;
    flex: 1;
}

.plan-lista li {
    padding: 10px 0 10px 20px;
    position: relative;
    font-family: var(--ff-body);
    font-size: 13.5px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.55;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card-plan.destacado .plan-lista li {
    border-bottom-color: rgba(196, 30, 58, 0.1);
}

.plan-lista li:last-child {
    border-bottom: none;
}

.plan-lista li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
}

/* Botón */
.plan-btn {
    width: 100%;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-2);
    padding: 14px 0;
    border-radius: 0;
    font-family: var(--ff-ui);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: auto;
}

.plan-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.plan-btn-destacado {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.plan-btn-destacado:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

/* Botones del carrusel */
.btn-carrusel-planes {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--border-2);
    cursor: pointer;
    width: 46px;
    height: 46px;
    font-size: 15px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.btn-carrusel-planes:hover {
    background: var(--red);
    border-color: var(--red);
}

.btn-left-planes {
    left: 14px;
}

.btn-right-planes {
    right: 14px;
}

@media (max-width: 480px) {
    .planes-section {
        padding: 80px 0 100px;
    }

    .planes-title {
        font-size: 52px;
        letter-spacing: 6px;
    }

    .card-plan {
        flex: 0 0 82vw;
        padding: 34px 26px 30px;
    }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
    background: var(--dark);
    position: relative;
    margin-top: 0;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 5%, var(--border-2) 30%, var(--red) 50%, var(--border-2) 70%, transparent 95%);
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 620px;
}

/* Columna visual izquierda */
.contacto-visual {
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

/* Glow rojo inferior */
.contacto-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 110%, rgba(196, 30, 58, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Línea roja vertical decorativa */
.contacto-visual::after {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--red), transparent);
}

.contacto-logo-deco {
    width: clamp(200px, 22vw, 300px);
    height: auto;
    object-fit: contain;
    opacity: 0.12;
    transform: rotate(-20deg);
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
    user-select: none;
    pointer-events: none;
}

/* Columna del formulario */
.contacto-form-box {
    padding: 80px 72px;
    display: flex;
    align-items: center;
}

.contacto-form {
    width: 100%;
    max-width: 420px;
}

.contacto-form h2 {
    font-family: var(--ff-display);
    font-size: clamp(44px, 5vw, 62px);
    letter-spacing: 6px;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
}

.contacto-form h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--red);
    margin-top: 14px;
    margin-bottom: 44px;
}

/* Floating label inputs */
.form-group.floating {
    position: relative;
    margin-bottom: 34px;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-2);
    color: var(--white);
    font-family: var(--ff-body);
    font-size: 15px;
    font-weight: 300;
    padding: 12px 0 9px;
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
    caret-color: var(--red);
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    border-bottom-color: var(--red);
}

.form-group.floating label {
    position: absolute;
    top: 12px;
    left: 0;
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    transition: all 0.25s ease;
    pointer-events: none;
}

.form-group.floating input:focus~label,
.form-group.floating input:not(:placeholder-shown)~label,
.form-group.floating textarea:focus~label,
.form-group.floating textarea:not(:placeholder-shown)~label {
    top: -14px;
    font-size: 9.5px;
    color: var(--red);
    letter-spacing: 2.5px;
}

.btn-enviar {
    width: 100%;
    padding: 16px;
    background: var(--red);
    color: var(--white);
    border: none;
    font-family: var(--ff-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 6px;
    border-radius: 0;
}

.btn-enviar:hover {
    background: var(--red-dark);
}

@media (max-width: 900px) {
    .contacto-container {
        grid-template-columns: 1fr;
    }

    .contacto-visual {
        min-height: 220px;
        padding: 44px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .contacto-visual img {
        width: 100px;
        height: 100px;
    }

    .contacto-form-box {
        padding: 56px 32px;
    }

    .contacto-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contacto-form-box {
        padding: 44px 22px;
    }

    .contacto-form h2 {
        font-size: 40px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 72px 64px 44px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.footer-bottom {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border);
}

.footer-title {
    font-family: var(--ff-display);
    font-size: 44px;
    letter-spacing: 7px;
    color: var(--white);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.footer-bottom .footer-text {
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    max-width: 280px;
    line-height: 1.75;
    margin: 0;
    display: block;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px;
    max-width: 100%;
}

.footer-subtitle {
    font-family: var(--ff-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 20px;
}

.footer-text,
.footer-contact {
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-family: var(--ff-body);
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    text-decoration: none;
    display: inline;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-ico {
    width: 15px;
    height: 15px;
    margin-right: 10px;
    flex-shrink: 0;
    filter: brightness(0) invert(0.45);
    transition: filter 0.22s ease;
    vertical-align: middle;
}

.footer-ico:hover {
    filter: brightness(0) invert(0.85);
}

.footer-map iframe {
    width: 100%;
    border-radius: 0;
    filter: grayscale(1) invert(0.88) contrast(0.85);
}

.hr-footer {
    margin: 0 0 32px;
    border: none;
    border-top: 1px solid var(--border);
    width: 100%;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 60px 32px 40px;
    }
}

@media (max-width: 680px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 56px 22px 36px;
    }

    .footer-map iframe {
        height: 180px;
    }
}

/* ============================================================
   POPUP — TOAST
   ============================================================ */
.popup {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--card);
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--red);
    color: var(--white);
    padding: 16px 22px;
    font-family: var(--ff-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    min-width: 240px;
    border-radius: 0;
}

.popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.popup-loader {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

/* Eliminar estilos de .popup-loader hidden state */
.popup-loader[style*="display: none"] {
    display: none !important;
}

/* ============================================================
   UTILIDADES GLOBALES
   ============================================================ */
.carrusel-btn {
    display: none;
}

.footer-redes {
    margin-top: 12px;
}