
/* ==========================
   RESET
========================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#f5f5f5;
    color:#17182c;
    line-height:1.7;
}

/* ==========================
   GENERAL
========================== */

.contenedor{
    width:90%;
    max-width:1200px;
    margin:auto;
}

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

a{
    text-decoration:none;
}

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

header{
    padding:25px 0;
    background:#f5f5f5;
    position:sticky;
    top:0;
    z-index:100;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:1.4rem;
    font-weight:700;
}

nav ul{
    display:flex;
    gap:35px;
    list-style:none;
}

nav a{
    color:#17182c;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    opacity:.7;
}

.activo{
    font-weight:700;
}

.btn-nav{
    background:#17182c;
    color:white;
    padding:14px 24px;
    border-radius:14px;
    font-weight:600;
    transition:.3s;
}

.btn-nav:hover{
    transform:translateY(-2px);
}

/* ==========================
   HERO
========================== */

.hero-tipos{
    padding:100px 0 70px;
    text-align:center;
}

.etiqueta{
    display:inline-block;
    background:#17182c;
    color:white;
    padding:10px 20px;
    border-radius:50px;
    margin-bottom:25px;
    font-size:.9rem;
}

.hero-tipos h1{
    font-size:5rem;
    font-weight:300;
    line-height:1.05;
    max-width:900px;
    margin:auto;
    margin-bottom:25px;
}

.hero-tipos p{
    max-width:750px;
    margin:auto;
    color:#555;
    font-size:1.1rem;
}

/* ==========================
   GRID DE TARJETAS
========================== */

.tipos-grid{
    padding-bottom:100px;
}

.tipos-grid .contenedor{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.tipo-card{
    background:white;
    border-radius:25px;
    overflow:hidden;

    box-shadow:
    0 10px 30px rgba(0,0,0,.05);

    transition:.3s;
}

.tipo-card:hover{
    transform:translateY(-8px);
}

.tipo-card img{
    width:100%;
    height:280px;
    object-fit:cover;
}

.tipo-info{
    padding:25px;
}

.tipo-info h2{
    margin-bottom:15px;
}

.tipo-info p{
    color:#555;
}

/* ==========================
   CONTENIDO
========================== */

.contenido{
    padding-bottom:80px;
}

.contenido h2{
    font-size:2.5rem;
    margin-bottom:30px;
    text-align:center;
}

.contenido p{
    margin-bottom:25px;
    color:#444;
    font-size:1.05rem;
}

/* ==========================
   BLOQUE FLEX
========================== */

.bloque-explicativo{
    padding:40px 0 100px;
}

.bloque-flex{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.texto span{
    color:#777;
    font-size:.9rem;
    text-transform:uppercase;
    letter-spacing:2px;
}

.texto h2{
    font-size:3rem;
    margin:15px 0 25px;
    line-height:1.1;
}

.texto p{
    margin-bottom:20px;
    color:#555;
}

.imagen img{
    border-radius:25px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.08);
}

/* ==========================
   ESTADÍSTICA
========================== */

.estadistica{
    padding:30px 0 100px;
}

.estadistica-box{
    background:#17182c;
    color:white;

    padding:70px;

    border-radius:30px;

    text-align:center;
}

.estadistica-box h2{
    font-size:1.5rem;
    font-weight:500;
}

.estadistica-box h3{
    font-size:6rem;
    margin:20px 0;
}

.estadistica-box p{
    max-width:700px;
    margin:auto;
    opacity:.9;
}

/* ==========================
   CTA
========================== */

.cta{
    padding-bottom:100px;
    text-align:center;
}

.cta h2{
    font-size:3rem;
    margin-bottom:20px;
}

.cta p{
    max-width:700px;
    margin:auto;
    color:#555;
}

.cta-botones{
    margin-top:35px;
}

.btn-principal{
    display:inline-block;

    background:#17182c;
    color:white;

    padding:15px 35px;

    border-radius:14px;

    margin-right:10px;

    transition:.3s;
}

.btn-principal:hover{
    transform:translateY(-2px);
}

.btn-secundario{
    display:inline-block;

    border:2px solid #17182c;

    color:#17182c;

    padding:15px 35px;

    border-radius:14px;

    transition:.3s;
}

.btn-secundario:hover{
    background:#17182c;
    color:white;
}

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

footer{
    background:white;
    padding:50px 0;
    text-align:center;
    border-top:1px solid #eee;
}

footer h3{
    margin-bottom:15px;
}

footer p{
    color:#666;
    margin-bottom:10px;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:1000px){

    .hero-tipos h1{
        font-size:3.8rem;
    }

    .bloque-flex{
        grid-template-columns:1fr;
    }

}

@media(max-width:800px){

    .navbar{
        flex-direction:column;
        gap:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .hero-tipos h1{
        font-size:3rem;
    }

    .tipos-grid .contenedor{
        grid-template-columns:1fr;
    }

    .texto h2{
        font-size:2.2rem;
    }

    .cta h2{
        font-size:2.2rem;
    }

    .estadistica-box{
        padding:40px;
    }

    .estadistica-box h3{
        font-size:4rem;
    }

}

@media(max-width:500px){

    .hero-tipos{
        padding-top:70px;
    }

    .hero-tipos h1{
        font-size:2.3rem;
    }

    .btn-principal,
    .btn-secundario{
        display:block;
        margin:10px auto;
        width:100%;
        max-width:280px;
    }

}

