/* =====================================================
   RESPONSIVE.CSS
   OPTIMIZACIÓN CANARIAS V2.0
   RESPONSIVE GENERAL
===================================================== */


/* =====================================================
   TABLET
   HASTA 1024px
===================================================== */

@media (max-width: 1024px) {


    /* ==========================================
       HEADER
    ========================================== */

    #header .container {
        padding: 14px 25px;
    }


    .nav ul {
        gap: 25px;
    }


    .nav a {
        font-size: 14px;
    }


    .btn-header {
        padding: 14px 20px;
        font-size: 14px;
    }


    /* ==========================================
       HERO
    ========================================== */

    #hero {
        padding: 170px 0 100px;
    }


    .hero-container {
        grid-template-columns: 1fr;

        gap: 70px;

        text-align: center;
    }


    .hero-content {
        max-width: 700px;

        margin: 0 auto;

        align-items: center;
    }


    .hero-content h1 {
        font-size: 56px;
    }


    .hero-text {
        font-size: 21px;
    }


    .hero-highlight {
        font-size: 27px;
    }


    .hero-buttons {
        justify-content: center;
    }


    .hero-benefits {
        width: 100%;

        max-width: 700px;
    }


    .hero-image {
        max-width: 600px;

        margin: 0 auto;
    }


    .hero-image img {
        width: 100%;

        max-width: 520px;
    }


    .hero-circle {
        width: 500px;
        height: 500px;
    }


    .hero-message {
        width: 100%;

        max-width: 500px;

        margin: 30px auto 0;

        padding: 28px 30px;

        text-align: left;

        box-sizing: border-box;
    }

}


/* =====================================================
   TABLET PEQUEÑA
   HASTA 900px
===================================================== */

@media (max-width: 900px) {


    /* ==========================================
       CLIENTES
    ========================================== */

    .clientes-logos {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 16px;
    }

}


/* =====================================================
   MÓVIL
   HASTA 768px
===================================================== */

@media (max-width: 768px) {


    /* ==========================================
       HEADER
    ========================================== */

    #header .container {
        padding: 12px 20px;
    }


    .logo img {
        height: 52px;
    }


    /* ==========================================
       BOTÓN HAMBURGUESA
    ========================================== */

    .menu-toggle {
        display: flex;

        width: 48px;
        height: 48px;

        padding: 0;

        border: none;

        border-radius: 10px;

        background: #0B2149;

        cursor: pointer;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        gap: 5px;

        z-index: 1100;
    }


    .menu-toggle span {
        display: block;

        width: 23px;
        height: 2px;

        background: #ffffff;

        border-radius: 2px;

        transition:
            all 0.3s ease;
    }


    /* ==========================================
       ANIMACIÓN HAMBURGUESA
    ========================================== */

    .menu-toggle.active span:nth-child(1) {
        transform:
            translateY(7px)
            rotate(45deg);
    }


    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }


    .menu-toggle.active span:nth-child(3) {
        transform:
            translateY(-7px)
            rotate(-45deg);
    }


    /* ==========================================
       OCULTAR CTA HEADER EN MÓVIL
    ========================================== */

    .btn-header {
        display: none;
    }


    /* ==========================================
       MENÚ MÓVIL
    ========================================== */

    .nav {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        background: #ffffff;

        box-shadow:
            0 15px 30px
            rgba(0, 0, 0, 0.10);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-10px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;

        z-index: 1050;
    }


    .nav.active {
        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }


    /* ==========================================
       LISTA MENÚ MÓVIL
    ========================================== */

    .nav ul {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        margin: 0;

        padding:
            15px 20px
            25px;

        list-style: none;
    }


    .nav li {
        width: 100%;
    }


    .nav a {
        display: block;

        width: 100%;

        padding:
            16px 10px;

        border-bottom:
            1px solid #EEF0F3;

        color: #0B2149;

        font-size: 16px;

        font-weight: 600;

        text-decoration: none;

        box-sizing: border-box;
    }


    .nav li:last-child a {
        border-bottom: none;
    }


    /* ==========================================
       HERO
    ========================================== */

    #hero {
        padding:
            105px 0
            60px;
    }


    .hero-container {
        grid-template-columns: 1fr;

        gap: 45px;

        padding:
            0 20px;

        text-align: center;
    }


    .hero-content {
        width: 100%;

        max-width: 100%;

        align-items: center;
    }


    .hero-badge {
        font-size: 12px;

        line-height: 1.4;

        padding:
            10px 16px;

        margin-bottom: 28px;

        text-align: center;
    }


    .hero-content h1 {
        font-size: 42px;

        line-height: 1.08;

        letter-spacing: -1px;

        margin-bottom: 25px;
    }


    .hero-text {
        font-size: 18px;

        line-height: 1.55;

        margin-bottom: 20px;
    }


    .hero-highlight {
        font-size: 22px;

        line-height: 1.4;

        margin-bottom: 32px;
    }


    /* ==========================================
       BOTONES HERO
    ========================================== */

    .hero-buttons {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 12px;

        margin-bottom: 34px;
    }


    .hero-buttons .btn {
        width: 100%;

        box-sizing: border-box;

        padding:
            17px 20px;

        font-size: 16px;
    }


    /* ==========================================
       BENEFICIOS HERO
    ========================================== */

    .hero-benefits {
        display: grid;

        grid-template-columns: 1fr;

        width: 100%;

        gap: 10px;
    }


    .benefit-card {
        width: 100%;

        box-sizing: border-box;

        min-height: 58px;

        padding:
            15px 16px;

        border-radius: 16px;

        font-size: 14px;

        text-align: left;
    }


    .check {
        flex-shrink: 0;

        font-size: 20px;
    }


    /* ==========================================
       IMAGEN HERO
    ========================================== */

    .hero-image {
        width: 100%;

        max-width: 450px;

        margin: 0 auto;
    }


    .hero-image img {
        width: 100%;

        max-width: 420px;

        border-radius: 25px;
    }


    .hero-circle {
        width: 380px;

        height: 380px;
    }


    /* ==========================================
       DECLARACIÓN ELENA
    ========================================== */

    .hero-message {
        width: 100%;

        max-width: 450px;

        margin:
            25px auto 0;

        padding:
            25px 22px;

        box-sizing: border-box;

        text-align: left;
    }


    .hero-message h3 {
        font-size: 20px;
    }


    .hero-message p {
        font-size: 15px;

        line-height: 1.65;
    }


    .hero-signature {
        margin-top: 20px;

        padding-top: 16px;
    }


    /* ==========================================
       CLIENTES
    ========================================== */

    #clientes {
        padding:
            80px 0
            90px;
    }


    .clientes-container {
        padding:
            0 20px;
    }


    .clientes-header {
        margin-bottom: 45px;
    }


    .section-badge {
        font-size: 12px;

        padding:
            9px 16px;
    }


    .clientes-header h2 {
        font-size: 32px;

        line-height: 1.2;

        letter-spacing: -0.5px;

        margin-bottom: 18px;
    }


    .clientes-header p {
        font-size: 16px;

        line-height: 1.65;
    }


    .clientes-logos {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 14px;
    }


    .cliente-logo {
        height: 100px;

        padding: 15px;

        border-radius: 14px;
    }


    .cliente-logo img {
        max-height: 55px;
    }

}


/* =====================================================
   MÓVIL PEQUEÑO
   HASTA 480px
===================================================== */

@media (max-width: 480px) {


    /* ==========================================
       HEADER
    ========================================== */

    #header .container {
        padding:
            10px 16px;
    }


    .logo img {
        height: 46px;
    }


    .menu-toggle {
        width: 44px;

        height: 44px;
    }


    /* ==========================================
       HERO
    ========================================== */

    #hero {
        padding:
            120px 0
            60px;
    }


    .hero-container {
        padding:
            0 16px;

        gap: 45px;
    }


    .hero-content h1 {
        font-size: 34px;

        letter-spacing: -0.5px;
    }


    .hero-text {
        font-size: 16px;
    }


    .hero-highlight {
        font-size: 20px;
    }


    .hero-badge {
        font-size: 11px;

        max-width: 100%;
    }


    /* ==========================================
       IMAGEN HERO
    ========================================== */

    .hero-image {
        max-width: 340px;
    }


    .hero-circle {
        width: 300px;

        height: 300px;
    }


    .hero-message {
        max-width: 340px;

        padding:
            22px 18px;
    }


    .hero-message h3 {
        font-size: 18px;
    }


    .hero-message p {
        font-size: 14px;

        line-height: 1.6;
    }


    /* ==========================================
       CLIENTES
    ========================================== */

    .clientes-header h2 {
        font-size: 28px;
    }


    .clientes-header p {
        font-size: 15px;
    }


    .clientes-logos {
        gap: 12px;
    }


    .cliente-logo {
        height: 90px;

        padding: 12px;
    }

}/* =====================================================
   LOGOS INSTITUCIONALES - AJUSTE RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .institutional-logos img {
        width: 360px;
        max-width: 90%;
    }

}

@media (max-width: 480px) {

    .institutional-logos img {
        width: 300px;
        max-width: 90%;
    }

}