/* ======================================== */
/* LAPTOP */
/* ======================================== */

@media(max-width:1200px){

    .hero-content{
        grid-template-columns:1fr;
    }

    .hero-left{
        text-align:center;
    }

    .hero-left p{
        margin:auto auto 40px;
    }

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

    .ceo-card{
        max-width:700px;
        margin:0 auto;
    }

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

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

}

/* ======================================== */
/* TABLET */
/* ======================================== */

@media(max-width:992px){

    section{
        padding:90px 0;
    }

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

    .hero-left h1{
        font-size:52px;
    }

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

    .brands-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .cta-box{
        flex-direction:column;
        gap:30px;
        text-align:center;
    }

    .cta h2{
        font-size:42px;
    }

}

/* ======================================== */
/* MOBILE */
/* ======================================== */

@media(max-width:768px){

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

    .nav{
        gap:18px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        padding-top:220px;
    }

    .hero-left h1{
        font-size:42px;
    }

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

    .hero-buttons{
        flex-direction:column;
    }

    .ceo-card img{
        height:350px;
    }

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

    .about-content h2{
        font-size:42px;
    }

    .about-stats{
        flex-direction:column;
    }

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

    .service-card{
        height:300px;
    }

    .service-overlay h3{
        font-size:28px;
    }

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

}

/* ======================================== */
/* SMALL MOBILE */
/* ======================================== */

@media(max-width:480px){

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

    .hero-left p{
        font-size:16px;
    }

    .ceo-card{
        padding:20px;
    }

    .ceo-card h3{
        font-size:28px;
    }

    .ceo-card img{
        height:280px;
    }

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

}

/* ======================================== */
/* RESPONSIVE FIXES - safe overrides */
/* ======================================== */

img,
video,
iframe{
    max-width:100%;
}

.hero-slider,
.slides{
    max-width:100%;
}

.menu-toggle{
    display:none;
    background:transparent;
    border:0;
    color:#ffffff;
    font-size:28px;
    cursor:pointer;
    line-height:1;
}

@media(max-width:1200px){
    .slides{
        width:100%;
        max-width:700px;
        min-width:0;
    }
}

@media(max-width:992px){
    .hero-content,
    .about-grid,
    .about-hero-grid,
    .mission-grid,
    .contact-wrapper,
    .seguro-hero-content,
    .concept-grid{
        grid-template-columns:1fr;
    }

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

@media(max-width:768px){
    .header{
        background:linear-gradient(90deg, rgba(40,57,98,.97), rgba(2,19,59,.98));
    }

    .navbar{
        height:80px;
        padding:0 20px;
        flex-direction:row;
        gap:16px;
        position:relative;
    }

    .navbar-left{
        gap:0;
    }

    .menu-toggle{
        display:block;
    }

    .nav{
        display:none;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:#071633;
        flex-direction:column;
        align-items:center;
        gap:0;
        padding:18px 20px 22px;
        box-sizing:border-box;
        box-shadow:0 20px 40px rgba(0,0,0,.22);
    }

    .nav.active{
        display:flex;
    }

    .nav a{
        width:100%;
        text-align:center;
        padding:14px 0;
    }

    .hero{
        padding-top:120px;
    }

    .hero-content{
        gap:38px;
    }

    .hero-title,
    .hero-left h1{
        font-size:clamp(2rem, 9vw, 3rem);
        letter-spacing:-1px;
    }

    .hero-description,
    .hero-left p{
        font-size:1rem;
        line-height:1.75;
    }

    .hero-buttons,
    .seguro-buttons{
        width:100%;
        align-items:stretch;
    }

    .hero-buttons a,
    .seguro-buttons a,
    .cta-box a,
    .seguro-cta-box a{
        width:100%;
        text-align:center;
        box-sizing:border-box;
    }

    .hero-slider,
    .slides{
        width:100%;
        max-width:100%;
        min-width:0;
    }

    .slides{
        height:320px;
        min-height:0;
    }

    .forms-grid,
    .benefits-grid,
    .formularios-grid,
    .form-grid,
    .coverage-list,
    .services-grid,
    .stats-grid,
    .home-stats-grid{
        grid-template-columns:1fr;
    }

    .form-company,
    .mission-card,
    .benefit-card,
    .form-card,
    .coverage-card{
        padding:28px 22px;
    }

    .page-hero h1,
    .seguro-left h1,
    .about-hero-content h1{
        font-size:clamp(2.4rem, 11vw, 3.2rem);
    }

    .back-floating{
        top:auto;
        left:18px;
        bottom:18px;
        width:50px;
        height:50px;
        padding:0;
    }
}

@media(max-width:480px){
    .container{
        width:92%;
    }

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

    .brands-grid img{
        max-width:190px;
        margin:0 auto;
    }

    .slides{
        height:260px;
        border-radius:20px;
    }

    .section-title h2,
    .about-content h2,
    .cta h2,
    .faq-category h3{
        font-size:clamp(1.75rem, 9vw, 2.2rem);
    }

    .faq-question,
    .faq-line h4{
        font-size:18px;
    }

    .contact-form{
        padding:24px 18px;
    }
}


/* ======================================== */
/* FIX RESPONSIVE FINAL - MOBILE */
/* ======================================== */

*{
    box-sizing:border-box;
}

html,
body{
    max-width:100%;
    overflow-x:hidden;
}

@media(max-width:768px){
    .header{
        background:linear-gradient(90deg, rgba(40,57,98,.97), rgba(2,19,59,.98));
    }

    .navbar{
        height:80px !important;
        min-height:80px;
        padding:0 18px !important;
        flex-direction:row !important;
        justify-content:space-between;
        gap:12px;
    }

    .navbar-left{
        min-width:0;
    }

    .logo img{
        width:96px;
    }

    .menu-toggle{
        display:block !important;
        flex-shrink:0;
    }

    .nav{
        display:none !important;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:#071633;
        flex-direction:column !important;
        align-items:center;
        gap:0;
        padding:18px 20px 22px;
        box-shadow:0 20px 40px rgba(0,0,0,.22);
    }

    .nav.active{
        display:flex !important;
    }

    .nav a{
        width:100%;
        padding:14px 0;
        text-align:center;
    }

    .hero{
        padding-top:120px;
    }

    .hero-content{
        width:92%;
        max-width:100%;
        min-width:0;
        grid-template-columns:1fr !important;
        gap:34px;
        text-align:center;
    }

    .hero-left{
        min-width:0;
        max-width:100%;
        overflow:hidden;
    }

    .hero-badge{
        max-width:100%;
        white-space:normal;
        overflow-wrap:anywhere;
        padding:10px 16px;
        font-size:12px;
    }

    .hero-title{
        max-width:100%;
        font-size:clamp(1.65rem, 7.5vw, 2.35rem) !important;
        line-height:1.14;
        letter-spacing:-1px;
        overflow-wrap:break-word;
    }

    .hero-description{
        max-width:100%;
        font-size:.95rem;
        line-height:1.7;
        overflow-wrap:break-word;
    }

    .hero-buttons{
        width:100%;
        display:flex;
        flex-direction:column;
        gap:14px;
    }

    .hero-buttons a,
    .btn-primary,
    .btn-secondary{
        max-width:100%;
        width:100%;
        white-space:normal;
        overflow-wrap:break-word;
        text-align:center;
    }

    .hero-slider,
    .slides{
        width:100%;
        max-width:100%;
        min-width:0 !important;
    }
}
