/*==================================
VARIABLES DE COLOR
===================================*/

:root{
    --azul:#1490E8;
    --azul-oscuro:#0B63C8;
    --azul-hover:#147BD1;
    --azul-claro:#42B7FF;
    --texto:#20324D;
    --gris:#6B7280;
    --fondo-suave:#F7FAFC;
    --footer:#06264D;
    --whatsapp:#25D366;
    --header-alto:100px;
}

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

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

html{
    scroll-behavior:smooth;
    /* para que el header fijo no tape los títulos al saltar a una sección */
    scroll-padding-top:var(--header-alto);
}

body{
    font-family:'Poppins',sans-serif;
    background:#ffffff;
    color:var(--texto);
    overflow-x:hidden;
}

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

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

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

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

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--azul);
    color:#fff;
    padding:15px 28px;
    border-radius:40px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    background:#09609f;
}

.btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:2px solid #fff;
    padding:15px 30px;
    border-radius:40px;
    color:#fff;
    font-weight:600;
    transition:.3s;
}

.btn-outline:hover{
    background:#fff;
    color:var(--azul);
}

/*==================================
HEADER
===================================*/

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    box-shadow:0 10px 20px rgba(0,0,0,.05);
    padding:5px 0;
    z-index:999;
}

.header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.logo img{
    width:90px;
    height:auto;
}

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

.nav a{
    color:var(--texto);
    font-weight:500;
    transition:.3s;
}

.nav a:hover{
    color:var(--azul);
}

/* "Reservar" dentro del menú: solo se muestra en el menú del celular */
.nav .nav-cta{
    display:none;
}

.header-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#2F94E8;
    color:#fff;
    padding:16px 30px;
    border-radius:50px;
    font-size:16px;
    font-weight:600;
    white-space:nowrap;
    transition:.3s ease;
}

.header-btn:hover{
    background:var(--azul-hover);
    transform:translateY(-2px);
}

.menu-toggle{
    display:none;
    background:none;
    border:0;
    font-size:28px;
    color:var(--texto);
    cursor:pointer;
    padding:8px;
}

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

.hero{
    position:relative;
    overflow:hidden;
    min-height:calc(100vh - 95px);
    background:url("../img/hero.jpg") -75% center / cover no-repeat;
    display:flex;
    align-items:center;
    margin-top:105px;
}

.overlay{
    position:absolute;
    inset:0;
    z-index:1;
    background:linear-gradient(
        90deg,
        rgba(0,40,125,.95) 0%,
        rgba(0,75,190,.90) 28%,
        rgba(0,110,255,.55) 55%,
        rgba(0,140,255,.18) 75%,
        rgba(0,140,255,0) 100%
    );
}

.hero-content{
    position:relative;
    z-index:2;
    color:#fff;
    max-width:750px;
    padding-top:40px;
    margin-left:40px;
}

.hero h1{
    font-size:72px;
    line-height:1.05;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
    line-height:1.8;
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

/*==================================
TÍTULOS DE SECCIÓN
===================================*/

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:42px;
    color:var(--texto);
    margin-bottom:15px;
}

.section-title p{
    font-size:18px;
    color:var(--gris);
}

.section-tag{
    display:inline-block;
    color:var(--azul);
    font-size:14px;
    font-weight:700;
    letter-spacing:2px;
}

.section-title .section-tag{
    margin-bottom:10px;
}

/*==================================
ESTADÍSTICAS
===================================*/

.stats{
    padding:100px 0;
    background:#fff;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.stat-card{
    background:#fff;
    border-radius:22px;
    padding:40px 25px;
    text-align:center;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.35s;
}

.stat-card:hover{
    transform:translateY(-10px);
}

.stat-card i{
    display:block;
    font-size:42px;
    color:#118BEA;
    margin-bottom:20px;
}

.stat-card h3{
    font-size:38px;
    color:var(--texto);
    margin-bottom:10px;
}

.stat-card span{
    color:var(--gris);
    font-size:15px;
    font-weight:500;
}

/*==================================
SERVICIOS
===================================*/

.services{
    padding:100px 0;
    background:var(--fondo-suave);
}

.services .section-title{
    margin-bottom:70px;
}

.service-category{
    margin-bottom:60px;
}

.service-category:last-child{
    margin-bottom:0;
}

.category-title{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:25px;
}

.category-title span{
    width:8px;
    height:38px;
    border-radius:20px;
    background:var(--azul);
}

.category-title h3{
    font-size:32px;
    color:var(--texto);
}

.service-row{
    display:grid;
    gap:30px;
}

.service-row.five{  grid-template-columns:repeat(5,1fr); }
.service-row.four{  grid-template-columns:repeat(4,1fr); }
.service-row.three{ grid-template-columns:repeat(3,1fr); }

/* Tarjetas */

.service-card{
    display:flex;
    flex-direction:column;
    height:100%;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.service-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(20,144,232,.18);
}

.service-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    object-position:center;
    transition:.4s;
}

.service-card:hover img{
    transform:scale(1.05);
}

.service-content{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:18px;
}

.service-content h4{
    font-size:20px;
    line-height:1.3;
    min-height:52px;
    color:var(--texto);
    margin-bottom:15px;
}

.service-content p{
    color:var(--gris);
    line-height:1.6;
    min-height:80px;
    margin-bottom:20px;
}

.service-content .service-price{
    min-height:0;
    margin:auto 0 8px;
    font-size:18px;
    font-weight:700;
    color:var(--azul);
}

.service-link{
    display:inline-block;
    align-self:flex-start;
    color:var(--azul);
    font-weight:600;
    transition:.3s;
}

.service-link:hover{
    transform:translateX(5px);
}

/*==================================
PROCESO
===================================*/

.process{
    padding:140px 0;
    background:#fff;
}

.process-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.process-image img{
    width:100%;
    border-radius:25px;
    box-shadow:0 25px 60px rgba(0,0,0,.10);
}

.process-content h2{
    font-size:36px;
    color:var(--texto);
    margin:15px 0 25px;
    line-height:1.15;
}

.process-content > p{
    color:var(--gris);
    line-height:1.8;
    margin-bottom:40px;
}

.process-steps{
    display:flex;
    flex-direction:column;
    gap:22px;
    margin-bottom:40px;
}

.step{
    display:flex;
    align-items:flex-start;
    gap:18px;
}

.step-icon{
    flex-shrink:0;
    width:45px;
    height:45px;
    border-radius:50%;
    background:var(--azul);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:700;
}

.step h4{
    color:var(--texto);
    margin-bottom:5px;
}

.step p{
    color:var(--gris);
}

/*==================================
TESTIMONIOS
===================================*/

.testimonials{
    padding:120px 0;
    background:var(--fondo-suave);
}

.testimonial-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.testimonial-card{
    background:#fff;
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
    transition:.35s;
}

.testimonial-card:hover{
    transform:translateY(-10px);
}

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

.stars{
    color:#F6B400;
    font-size:24px;
    margin:30px 30px 20px;
}

.testimonial-text{
    padding:0 30px;
    color:#5F6675;
    line-height:1.8;
    min-height:150px;
}

.testimonial-user{
    padding:25px 30px 35px;
    border-top:1px solid #EEF2F7;
}

.testimonial-user h4{
    color:var(--texto);
    margin-bottom:5px;
}

.testimonial-user span{
    color:var(--azul);
    font-weight:600;
}

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

.cta{
    padding:90px 0;
    background:linear-gradient(135deg,var(--azul),var(--azul-oscuro));
    position:relative;
    overflow:hidden;
}

.cta::before,
.cta::after{
    content:"";
    position:absolute;
    border-radius:50%;
}

.cta::before{
    width:350px;
    height:350px;
    background:rgba(255,255,255,.08);
    top:-150px;
    right:-120px;
}

.cta::after{
    width:250px;
    height:250px;
    background:rgba(255,255,255,.05);
    bottom:-120px;
    left:-100px;
}

.cta-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    position:relative;
    z-index:2;
}

.cta-text{
    max-width:600px;
}

.cta-text h2{
    color:#fff;
    font-size:46px;
    margin-bottom:20px;
}

.cta-text p{
    color:rgba(255,255,255,.9);
    font-size:19px;
    line-height:1.8;
}

.cta-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:flex-end;
    align-items:center;
}

.btn-whatsapp,
.btn-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:18px 35px;
    border-radius:50px;
    font-weight:700;
    white-space:nowrap;
    transition:.3s;
}

.btn-whatsapp{
    background:var(--whatsapp);
    color:#fff;
}

.btn-cta{
    background:#fff;
    color:var(--azul);
}

.btn-whatsapp:hover,
.btn-cta:hover{
    transform:translateY(-5px);
}

.btn-cta:hover{
    background:var(--fondo-suave);
}

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

.footer{
    position:relative;
    background:var(--footer);
    color:#fff;
    padding-top:80px;
    overflow:hidden;
}

/* Marca de agua */
.footer::before{
    content:"";
    position:absolute;
    width:450px;
    height:450px;
    background:url("../img/isotipo.png") center/contain no-repeat;
    opacity:.025;
    right:-120px;
    bottom:-120px;
    pointer-events:none;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.4fr .8fr 1.2fr 1.4fr;
    gap:60px;
    position:relative;
    z-index:2;
    padding-bottom:60px;
}

.footer-brand img{
    width:130px;
    margin-bottom:25px;
}

.footer-brand p{
    color:#C9D5E3;
    line-height:1.7;
    max-width:280px;
    font-size:14px;
}

.footer-social{
    display:flex;
    gap:12px;
    margin-top:25px;
}

.footer-social a{
    width:40px;
    height:40px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    transition:.3s;
}

.footer-social a:hover{
    background:var(--azul);
    border-color:var(--azul);
    transform:translateY(-4px);
}

.footer-column h4{
    font-size:18px;
    margin-bottom:25px;
    color:#fff;
}

.footer-column > a{
    display:block;
    color:#C9D5E3;
    margin-bottom:12px;
    transition:.3s;
}

.footer-column > a:hover{
    color:var(--azul-claro);
    transform:translateX(5px);
}

.footer-column p{
    color:#C9D5E3;
    line-height:1.8;
    margin-bottom:15px;
    font-size:14px;
}

.footer-column p a:hover{
    color:var(--azul-claro);
}

.footer-column p i{
    color:var(--azul-claro);
    margin-right:8px;
}

.footer-map{
    border-radius:18px;
    overflow:hidden;
    height:180px;
}

.footer-map iframe{
    width:100%;
    height:100%;
    border:0;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.12);
    padding:22px 0;
    position:relative;
    z-index:2;
}

.footer-bottom .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.footer-bottom p,
.footer-bottom span{
    font-size:13px;
    color:#AFC1D5;
}

/*==================================
BOTÓN FLOTANTE WHATSAPP
===================================*/

.whatsapp-float{
    position:fixed;
    right:24px;
    bottom:24px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--whatsapp);
    color:#fff;
    font-size:32px;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
    z-index:998;
    transition:.3s;
}

.whatsapp-float:hover{
    transform:scale(1.1);
}

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

/* Pantallas medianas (notebooks pequeños) */
@media (max-width:1200px){

    .service-row.five{ grid-template-columns:repeat(3,1fr); }
    .service-row.four{ grid-template-columns:repeat(2,1fr); }

    .nav ul{ gap:22px; }

    .hero h1{ font-size:58px; }

}

/* Tablets */
@media (max-width:991px){

    :root{ --header-alto:80px; }

    /* Header + menú hamburguesa */
    .logo img{ width:70px; }

    .menu-toggle{ display:block; }

    .header-btn{ display:none; }

    .nav{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#fff;
        box-shadow:0 15px 25px rgba(0,0,0,.08);
        max-height:0;
        overflow:hidden;
        transition:max-height .35s ease;
    }

    .nav.open{ max-height:500px; }

    .nav ul{
        flex-direction:column;
        gap:0;
        padding:10px 5%;
    }

    .nav li a{
        display:block;
        padding:14px 0;
        border-bottom:1px solid #EEF2F7;
    }

    .nav .nav-cta{ display:block; }

    .nav .nav-cta a{
        margin:15px 0 10px;
        text-align:center;
        background:#2F94E8;
        color:#fff;
        border-radius:50px;
        border:0;
    }

    /* Hero */
    .hero{
        margin-top:80px;
        min-height:calc(100vh - 80px);
        background-position:center;
        padding:60px 0;
    }

    .overlay{
        background:linear-gradient(
            180deg,
            rgba(0,40,125,.88) 0%,
            rgba(0,75,190,.80) 60%,
            rgba(0,110,255,.55) 100%
        );
    }

    .hero-content{
        margin-left:auto;
        padding-top:0;
    }

    .hero h1{ font-size:44px; }

    .hero p{ font-size:18px; }

    /* Secciones */
    .stats,
    .services{ padding:70px 0; }

    .process,
    .testimonials{ padding:80px 0; }

    .section-title{ margin-bottom:40px; }

    .section-title h2{ font-size:32px; }

    .stats-grid{ grid-template-columns:repeat(2,1fr); }

    .service-row.five,
    .service-row.four,
    .service-row.three{ grid-template-columns:repeat(2,1fr); }

    .process-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .process-image img{
        max-height:450px;
        width:100%;
        object-fit:cover;
    }

    .testimonial-grid{
        grid-template-columns:1fr;
        max-width:520px;
        margin:auto;
    }

    .testimonial-text{ min-height:0; }

    .cta-content{
        flex-direction:column;
        text-align:center;
    }

    .cta-text h2{ font-size:34px; }

    .cta-buttons{ justify-content:center; }

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
        gap:40px;
    }

}

/* Celulares */
@media (max-width:600px){

    .hero h1{ font-size:34px; }

    .hero p{
        font-size:16px;
        margin-bottom:30px;
    }

    .hero-buttons a{
        flex:1 1 100%;
    }

    .section-title h2{ font-size:28px; }

    .section-title p{ font-size:16px; }

    .stats-grid{ gap:15px; }

    .stat-card{ padding:25px 12px; }

    .stat-card i{
        font-size:30px;
        margin-bottom:12px;
    }

    .stat-card h3{ font-size:22px; }

    .stat-card span{ font-size:13px; }

    .category-title h3{ font-size:24px; }

    .service-row.five,
    .service-row.four,
    .service-row.three{ grid-template-columns:1fr; }

    .service-card img{ height:200px; }

    .service-content h4,
    .service-content p{ min-height:0; }

    .process-content h2{ font-size:28px; }

    .cta{ padding:70px 0; }

    .cta-text h2{ font-size:28px; }

    .cta-text p{ font-size:16px; }

    .cta-buttons a{ width:100%; }

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

    .footer-bottom .container{
        flex-direction:column;
        gap:10px;
        text-align:center;
    }

    .whatsapp-float{
        right:16px;
        bottom:16px;
        width:54px;
        height:54px;
        font-size:28px;
    }

}
