/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:
    "Segoe UI",
    sans-serif;

    background:
    radial-gradient(
        circle at top left,
        #3a2a52 0%,
        #16111f 40%,
        #0d0a12 100%
    );

    color:#f5f5f5;

    overflow-x:hidden;

    min-height:100vh;
}

/* ==========================
   VARIABLES
========================== */

:root{

    --background:#0d0a12;
    --surface:#181220;

    --purple:#bba8e8;
    --purple-dark:#3a2a52;

    --yellow:#f5d77a;

    --text:#f5f5f5;
    --text-secondary:#b9b6c5;

    --border:
    rgba(255,255,255,.08);

}

/* ==========================
   NAVBAR
========================== */

nav{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:22px 8%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    z-index:1000;

    transition:.5s;
}

nav.scrolled{

    background:
    rgba(13,10,18,.7);

    backdrop-filter:
    blur(20px);

    border-bottom:
    1px solid var(--border);
}

.logo{

    font-size:1.2rem;

    font-weight:600;

    letter-spacing:2px;
}

nav ul{

    list-style:none;

    display:flex;

    gap:35px;
}

nav a{

    text-decoration:none;

    color:var(--text-secondary);

    transition:.4s;
}

nav a:hover{

    color:var(--yellow);
}

/* ==========================
   HERO
========================== */

.hero{

    position:relative;

    min-height:100vh;

    width:100vw;

    max-width:100vw;

    margin:0;

    padding:0;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;
}

.hero-image{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background-image:url("images/bg_inicio.jpg");

    background-size:cover;

    background-position:center;

    z-index:0;

    opacity:.35;
}


.hero-content{

    position:relative;

    z-index:2;

    max-width:1000px;

}

.tag{

    color:var(--yellow);

    letter-spacing:5px;

    text-transform:uppercase;

    margin-bottom:25px;

    font-size:.9rem;
}

.quote-tag{
    margin-top:30px;
}

.hero h1{

    font-size:
    clamp(4rem,4.5vw,8rem);

    line-height:.95;

    font-weight:200;

    letter-spacing:-2px;

    margin-top:15px;

    margin-bottom:30px;
}

.hero p{

    max-width:700px;

    margin:auto;

    color:var(--text-secondary);

    font-size:1.2rem;

    line-height:1.9;
}

/* ==========================
   BUTTONS
========================== */

.btn{

    display:inline-block;

    margin-top:40px;

    padding:
    16px 34px;

    border-radius:999px;

    text-decoration:none;

    color:#111;

    background:
    var(--yellow);

    font-weight:600;

    transition:.5s;
}

.btn:hover{

    transform:
    translateY(-5px);

    box-shadow:
    0 10px 35px
    rgba(245,215,122,.2);
}

/* ==========================
   SECTIONS
========================== */

section{

    max-width:1200px;

    margin:auto;

    padding:
    40px 20px;
}


section h2{

    font-size:3rem;

    font-weight:300;

    margin-bottom:10px;
}

section p{

    color:
    var(--text-secondary);

    line-height:1.2;

    font-size:1.7rem;

    margin-bottom: 30px;
}

/* ==========================
   CARDS
========================== */

.cards{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fit,
        minmax(280px,1fr)
    );

    gap:30px;

    margin-top:25px;
}

.glass-box{

    background:
    rgba(255,255,255,.04);

    backdrop-filter:
    blur(20px);

    -webkit-backdrop-filter:
    blur(20px);

    border:
    1px solid rgba(255,255,255,.08);

    border-radius:35px;

    padding:60px;

    box-shadow:
    0 20px 60px rgba(0,0,0,.25);

    transition:.6s;
}

.card{

    padding:35px;

    border-radius:28px;

    background:
    rgba(255,255,255,.03);

    backdrop-filter:
    blur(20px);

    border:
    1px solid
    rgba(255,255,255,.06);

    transition:.7s
    cubic-bezier(
        .22,
        1,
        .36,
        1
    );
}

.card:hover{

    transform:
    translateY(-10px);

    border-color:
    rgba(245,215,122,.25);

    box-shadow:
    0 20px 60px
    rgba(0,0,0,.3);
}

.card h3{

    margin-bottom:15px;

    color:
    var(--yellow);
}

.card p{

    color:
    var(--text-secondary);
}

/* ==========================
   QUOTE SECTION
========================== */

.quote{

    text-align:center;
}

.quote h2{

    font-size:
    clamp(2.5rem,6vw,5rem);

    font-weight:200;

    line-height:1.1;
}

.quote span{

    color:
    var(--yellow);
}

/* ==========================
   STATISTICS
========================== */

.stats{

    display:grid;

    grid-template-columns:
    repeat(
        auto-fit,
        minmax(250px,1fr)
    );

    gap:40px;

    text-align:center;
}

.stat-number{

    font-size:5rem;

    font-weight:200;

    color:
    var(--yellow);
}

.stat-text{

    color:
    var(--text-secondary);
}

/* ==========================
   FOOTER
========================== */

footer{

    padding:
    100px 30px;

    text-align:center;

    color:
    var(--text-secondary);

    border-top:
    1px solid
    rgba(255,255,255,.05);
}

/* ==========================
   ANIMATIONS
========================== */

.fade{

    opacity:0;

    transform:
    translateY(50px);

    transition:
    all .9s
    cubic-bezier(
        .22,
        1,
        .36,
        1
    );
}

.fade.show{

    opacity:1;

    transform:
    translateY(0);
}

/* ==========================
   BACKGROUND LIGHTS
========================== */

.glow{

    position:fixed;

    border-radius:50%;

    filter:blur(180px);

    z-index:-1;
}

.glow-purple{

    width:600px;
    height:600px;

    background:#6d4bb3;

    top:-200px;
    left:-200px;

    opacity:.18;
}

.glow-yellow{

    width:500px;
    height:500px;

    background:#f5d77a;

    bottom:-200px;
    right:-200px;

    opacity:.08;
}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:#120f18;
}

::-webkit-scrollbar-thumb{

    background:#3a2a52;

    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{

    background:#4f3b73;
}

/* Tablets */
@media (max-width: 900px){

    nav{
        padding: 14px 20px;
    }

    nav ul{
        gap: 12px;
    }

    .hero h1{
        font-size: 2.8rem;
    }

    .hero p{
        font-size: 1rem;
    }

    .type-panel-inner{
        grid-template-columns: 1fr;
    }

    .summary-grid{
        grid-template-columns: 1fr;
    }
}

/* Teléfonos */
@media (max-width: 600px){

    body{
        overflow-x:hidden;
    }

    nav{
        flex-direction:column;
        gap:12px;
        padding:16px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        padding-top:120px;
    }

    .hero h1{
        font-size:2rem;
        line-height:1.15;
    }

    .hero-text{
        font-size:.95rem;
    }

    .section-shell{
        padding:70px 16px;
    }

    .type-panel-inner{
        padding:20px;
    }

    .type-copy h2{
        font-size:1.8rem;
    }

    .back-row{
        flex-direction:column;
        align-items:center;
    }

    .back-link{
        width:100%;
        max-width:320px;
    }

    .type-image{
        min-height:200px;
    }
}