/* =====================================================
   ESTILOS-INICIO.CSS — Landing pública Gimnasio 2001
   Basado en la referencia HTML entregada por el cliente
===================================================== */

/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#090909;
    color:#f5f5f5;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    display:block;
    max-width:100%;
}


/* =====================================================
   VARIABLES
===================================================== */

:root{
    --lime:#f6c732;
    --dark:#090909;
    --dark2:#101010;
    --dark3:#151515;
    --border:#242424;
    --muted:#858585;
}


/* =====================================================
   CONTAINER
===================================================== */

.container{
    width:88%;
    max-width:1380px;
    margin:auto;
}


/* =====================================================
   NAVBAR
===================================================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:100;
    padding:18px 0;
    background:linear-gradient(180deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.82) 100%);
    border-bottom:1px solid rgba(255,255,255,.07);
    backdrop-filter:blur(8px);
}

nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:88%;
    max-width:1380px;
    margin:auto;
}

.nav-logo img{
    height:60px;
    width:auto;
    transform:scaleX(.82);
    transform-origin:left center;
    filter:drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:28px;
    list-style:none;
}

.nav-menu a{
    font-size:12px;
    font-weight:600;
    color:#e5e5e5;
    text-shadow:0 1px 4px rgba(0,0,0,.6);
    transition:.3s;
}

.nav-menu a:hover{
    color:var(--lime);
}

.btn-register{
    display:flex;
    align-items:center;
    gap:6px;
    background:#fff !important;
    color:#090909 !important;
    padding:9px 16px;
    border-radius:6px;
    font-size:11px;
    font-weight:800;
    transition:.3s;
}

.btn-register:hover{
    background:var(--lime) !important;
    transform:translateY(-2px);
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:22px;
    cursor:pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(
            90deg,
            rgba(5,5,5,.98) 0%,
            rgba(5,5,5,.92) 35%,
            rgba(5,5,5,.40) 75%,
            rgba(5,5,5,.25) 100%
        ),
        url("https://images.unsplash.com/photo-1517838277536-f5f99be501cd?q=80&w=1170&auto=format&fit=crop")
        center/cover;
}

.hero:after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(0deg,#090909 0%,transparent 22%);
    pointer-events:none;
}

.hero-content{
    position:relative;
    z-index:5;
    width:88%;
    max-width:760px;
    margin:auto;
    padding-top:80px;
}

.hero h1{
    font-size:clamp(38px,6vw,66px);
    line-height:1.05;
    letter-spacing:-2px;
    font-weight:900;
}

.hero h1 span{
    color:var(--lime);
    white-space:nowrap;
}

.hero-content p{
    max-width:560px;
    color:#aaa;
    line-height:1.75;
    font-size:13px;
    margin-top:24px;
}

.hero-buttons{
    display:flex;
    gap:10px;
    margin-top:28px;
    flex-wrap:wrap;
}

.btn-hero-primary,
.btn-hero-secondary{
    padding:12px 18px;
    border-radius:6px;
    font-size:11px;
    font-weight:800;
    transition:.3s;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.btn-hero-primary{
    background:var(--lime);
    color:#090909;
}

.btn-hero-primary:hover{
    transform:translateY(-3px);
}

.btn-hero-secondary{
    border:1px solid rgba(255,255,255,.25);
    background:rgba(255,255,255,.04);
    color:#fff;
}

.btn-hero-secondary:hover{
    background:#25D366;
    border-color:#25D366;
    transform:translateY(-3px);
}


/* =====================================================
   HISTORIA
===================================================== */

.history-section{
    padding:70px 0;
    background:#0c0c0c;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
}

.history-inner{
    width:88%;
    max-width:820px;
    margin:auto;
    text-align:center;
}

.history-badge{
    display:inline-block;
    color:var(--lime);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:2px;
    margin-bottom:14px;
}

.history-section h2{
    font-size:clamp(26px,3vw,38px);
    letter-spacing:-1px;
    margin-bottom:18px;
}

.history-section p{
    color:#999;
    font-size:13px;
    line-height:1.85;
}

@media(max-width:850px){

    .history-section{
        padding:55px 0;
    }

    .history-section p{
        text-align:left;
    }
}


/* =====================================================
   PLANES
===================================================== */

.planes-section{
    padding:90px 0 80px;
    background:#090909;
    text-align:center;
}

.planes-section h2{
    font-size:clamp(30px,3.4vw,46px);
    letter-spacing:-2px;
}

.planes-section .subtitle{
    color:#777;
    font-size:12px;
    max-width:520px;
    margin:12px auto 40px;
    line-height:1.7;
}

/* =====================================================
   CARRUSEL COVERFLOW DE PLANES
===================================================== */

.planes-coverflow{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    width:94%;
    max-width:1200px;
    margin:0 auto 18px;
}

.cf-card{
    position:relative;
    flex:none;
    aspect-ratio:1024/1536;
    height:660px;
    border-radius:16px;
    overflow:hidden;
    cursor:pointer;
    border:1px solid var(--border);
    box-shadow:0 20px 50px rgba(0,0,0,.45);
    transform:scale(.636);
    transform-origin:center center;
    will-change:transform;
    transition:transform 0.7s cubic-bezier(.65,0,.35,1), filter .7s ease;
    filter:brightness(.55) saturate(.85);
    background:#0c0c0c;
}

.cf-card.active{
    transform:scale(1);
    filter:brightness(1) saturate(1);
}

.cf-card img{
    position:relative;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:2;
}

.cf-card:not(.active):hover{
    filter:brightness(.75) saturate(1);
}

.cf-dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-bottom:40px;
}

.cf-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.3);
    cursor:pointer;
    transition:.3s;
    padding:0;
}

.cf-dot.active{
    background:var(--lime);
    width:24px;
    border-radius:5px;
}


.planes-subgroup{
    width:88%;
    max-width:1380px;
    margin:0 auto 55px;
}

/* Bloque de imágenes apiladas, solo visible en mobile (ver media query 850px) */
.planes-stack-mobile{
    display:none;
}

.planes-subgroup:last-of-type{
    margin-bottom:0;
}

.planes-subtitle{
    font-size:14px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:2px;
    color:var(--lime);
    text-align:left;
    margin-bottom:22px;
    padding-bottom:12px;
    border-bottom:1px solid var(--border);
}

.planes-grid{
    display:grid;
    gap:18px;
    text-align:left;
}

.planes-grid-2{
    grid-template-columns:repeat(2,1fr);
}

.planes-grid-3{
    grid-template-columns:repeat(3,1fr);
}


/* Tarjetas de plan promocional: un periodo, dos precios en filas separadas */

.plan-period-card{
    padding:24px;
    background:#101010;
    border:1px solid var(--border);
    border-radius:10px;
    position:relative;
    transition:.3s;
}

.plan-period-card:hover{
    transform:translateY(-5px);
    border-color:#444;
}

.plan-period-card.highlight{
    border-color:var(--lime);
}

.plan-period-label{
    display:inline-block;
    background:#1c1c1c;
    color:#fff;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:1px;
    padding:7px 14px;
    border-radius:6px;
    margin-bottom:16px;
}

.plan-period-card.highlight .plan-period-label{
    background:var(--lime);
    color:#090909;
}

.plan-price-row{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.price-block{
    background:#161616;
    border:1px solid var(--border);
    border-radius:8px;
    padding:12px 16px;
    display:flex;
    align-items:baseline;
    justify-content:space-between;
}

.price-block strong{
    font-size:21px;
    font-weight:900;
    letter-spacing:-.5px;
}

.price-block span{
    font-size:10px;
    color:#888;
}

.plan-period-card .plan-note{
    margin-top:16px;
}

.plan-card{
    padding:28px;
    background:#101010;
    border:1px solid var(--border);
    border-radius:10px;
    position:relative;
    transition:.3s;
    display:flex;
    flex-direction:column;
}

.plan-card:hover{
    transform:translateY(-5px);
    border-color:#444;
}

.plan-card.highlight{
    border-color:var(--lime);
}

.plan-badge{
    position:absolute;
    top:0;
    right:25px;
    transform:translateY(-50%);
    background:var(--lime);
    color:#090909;
    padding:7px 12px;
    border-radius:4px;
    font-size:9px;
    font-weight:900;
    text-transform:uppercase;
}

.plan-card .plan-name{
    font-size:12px;
    color:#aaa;
    text-transform:uppercase;
    letter-spacing:2px;
}

.plan-card .plan-price{
    font-size:34px;
    font-weight:900;
    letter-spacing:-1px;
    margin-top:18px;
    line-height:1.3;
}

.plan-card .plan-price span{
    font-size:11px;
    color:#666;
    font-weight:500;
}

.plan-line{
    width:100%;
    height:1px;
    background:#222;
    margin:22px 0;
}

.plan-card ul{
    list-style:none;
    color:#888;
    font-size:12px;
    line-height:2.3;
    flex-grow:1;
}

.plan-card li:before{
    content:"✓";
    color:var(--lime);
    font-weight:bold;
    margin-right:10px;
}

.plan-note{
    margin-top:20px;
    padding-top:16px;
    border-top:1px solid #222;
    color:#999;
    font-size:11px;
    line-height:1.6;
}

.dia-suelto{
    width:max-content;
    max-width:100%;
    margin:35px auto 0;
    background:#101010;
    border:1px solid var(--border);
    border-radius:10px;
    padding:16px 26px;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    text-align:center;
    justify-content:center;
}

.dia-suelto strong{
    color:var(--lime);
    font-size:18px;
}

.dia-suelto p{
    color:#999;
    font-size:13px;
    margin:0;
}


/* =====================================================
   UBICACIÓN
===================================================== */

.location-section{
    padding:80px 0;
    background:#0c0c0c;
}

.location-inner{
    width:88%;
    max-width:1380px;
    margin:auto;
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    gap:32px;
    align-items:stretch;
}

.location-info{
    background:#101010;
    border:1px solid var(--border);
    border-radius:10px;
    padding:32px;
}

.location-info h2{
    font-size:30px;
    letter-spacing:-1px;
    margin-top:8px;
}

.location-info > p{
    color:#888;
    font-size:12px;
    line-height:1.7;
    margin:14px 0 22px;
}

.location-map{
    min-height:340px;
    border-radius:10px;
    overflow:hidden;
    border:1px solid var(--border);
}

.location-map iframe{
    width:100%;
    height:100%;
    min-height:340px;
    border:0;
}


/* =====================================================
   FOOTER
===================================================== */

footer{
    background:#080808;
    border-top:1px solid #1c1c1c;
    padding:55px 0 0;
}

.footer-content{
    width:88%;
    max-width:1380px;
    margin:auto;
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    gap:40px;
    padding-bottom:32px;
}

.footer-section h4{
    color:var(--lime);
    font-size:14px;
    margin-bottom:16px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.footer-section p{
    color:#888;
    font-size:13px;
    line-height:1.8;
}

.footer-section ul{
    list-style:none;
}

.footer-section ul li{
    margin-bottom:10px;
}

.footer-section ul a{
    color:#888;
    font-size:13px;
    transition:.3s;
}

.footer-section ul a:hover{
    color:var(--lime);
}

.footer-contact-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:18px;
    font-size:13px;
    color:#888;
}

.footer-contact-item i{
    margin-top:3px;
    color:var(--lime);
}

.footer-bottom{
    border-top:1px solid #1c1c1c;
    padding:22px 0;
    text-align:center;
    color:#555;
    font-size:10px;
}


/* =====================================================
   WHATSAPP FLOTANTE
===================================================== */

.whatsapp-float{
    position:fixed;
    z-index:200;
    right:22px;
    bottom:22px;
    width:52px;
    height:52px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 35px rgba(0,0,0,.4);
    transition:.3s;
    font-size:22px;
    color:#fff;
}

.whatsapp-float:hover{
    transform:scale(1.08);
}

.whatsapp-float .wa-badge{
    position:absolute;
    top:1px;
    right:1px;
    width:13px;
    height:13px;
    background:#ff3b30;
    border-radius:50%;
    border:2px solid #090909;
    animation:waPulse 1.8s infinite;
}

@keyframes waPulse{
    0%{
        box-shadow:0 0 0 0 rgba(255,59,48,.65);
    }
    70%{
        box-shadow:0 0 0 9px rgba(255,59,48,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(255,59,48,0);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:1100px){

    .planes-grid-3{
        grid-template-columns:1fr 1fr;
    }

    .cf-card{
        height:520px;
        transform:scale(.654);
    }

    .cf-card.active{
        transform:scale(1);
    }
}

@media(max-width:850px){

    header{
        padding:18px 0;
    }

    .nav-menu{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#0c0c0c;
        flex-direction:column;
        gap:0;
        border-top:1px solid #222;
    }

    .nav-menu.active{
        display:flex;
    }

    .nav-menu li{
        width:100%;
        text-align:center;
    }

    .nav-menu a{
        display:block;
        padding:16px;
        font-size:13px;
    }

    .nav-menu .btn-register{
        margin:14px auto;
        width:max-content;
    }

    .menu-toggle{
        display:block;
    }

    .hero{
        min-height:820px;
        background-position:65% center;
    }

    .hero-content{
        padding-top:110px;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary{
        justify-content:center;
        text-align:center;
    }

    .planes-section{
        padding:80px 0 70px;
    }

    .planes-section .subtitle{
        padding:0 6%;
        max-width:100%;
    }

    .planes-coverflow,
    .cf-dots{
        display:none;
    }

    .planes-stack-mobile{
        display:flex;
        flex-direction:column;
        gap:14px;
        width:88%;
        margin:0 auto 18px;
    }

    .planes-stack-mobile img{
        width:100%;
        aspect-ratio:1024/1536;
        object-fit:cover;
        border-radius:12px;
        border:1px solid var(--border);
        box-shadow:0 20px 50px rgba(0,0,0,.45);
        background:#0c0c0c;
    }

    .planes-grid-2,
    .planes-grid-3{
        grid-template-columns:1fr;
    }

    .price-block{
        flex-direction:column;
        align-items:flex-start;
        gap:2px;
    }

    .dia-suelto{
        flex-direction:column;
        text-align:center;
    }

    .footer-content{
        grid-template-columns:1fr;
        gap:35px;
    }

    .location-section{
        padding:70px 0;
    }

    .location-inner{
        grid-template-columns:1fr;
    }

    .location-map,
    .location-map iframe{
        min-height:300px;
    }
}