/* =========================================================
   RESPONSIVE: TABLET (768px - 991px)
========================================================= */
@media (min-width: 768px) and (max-width: 991px) {
    section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    /* HERO TABLET */
    .hero-section {
        padding-top: 130px;
        padding-bottom: 90px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 90%;
        margin: auto;
    }
    
    .hero-content h1 {
        font-size: 52px;
        line-height: 1.1;
    }
    
    .hero-content p,
    .hero-description {
        font-size: 20px;
        line-height: 1.7;
    }
    
    .hero-tags {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* PAGE BANNER */
    .page-banner {
        min-height: 280px;
        padding-top: 120px;
    }
    
    .page-banner h1 {
        font-size: 42px;
        color: #fff;
    }
    
    .page-banner p {
        font-size: 17px;
    }
    
    /* TITLES */
    .section-title {
        font-size: 38px;
    }
    
    /* CARDS */
    .service-content h3,
    .news-content h3 {
        font-size: 24px;
    }
}


/* =========================================================
   RESPONSIVE: MÓVIL (hasta 767px)
   HERO AMPLIADO Y PROMINENTE
========================================================= */
@media (max-width: 767px) {
    
    body {
        font-size: 16px;
    }
    
    section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* NAVBAR */
    .navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .main-logo {
        height: 44px;
    }
    
    .brand-title {
        font-size: 16px;
    }
    
    /* ================================================
       HERO MÓVIL - TAMAÑO AUMENTADO
    ================================================ */
    .hero-section {
        min-height: 100vh;           /* Ocupa toda la pantalla */
        min-height: 100dvh;          /* Dynamic viewport height */
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 8px;
    }
    
    .hero-badge {
        font-size: 14px;
        padding: 10px 20px;
        margin-bottom: 24px;
        display: inline-block;
        border-radius: 50px;
    }
    
    /* TÍTULO PRINCIPAL - AUMENTADO */
    .hero-content h1 {
        font-size: 42px;             /* Grande pero legible */
        line-height: 1.1;
        font-weight: 800;
        margin-bottom: 24px;
    }
    
    /* PÁRRAFO - AUMENTADO */
    .hero-content p,
    .hero-description {
        font-size: 20px;             /* Más grande que el body */
        line-height: 1.5;
        margin-bottom: 32px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* TAGS FLOTANTES - MÁS VISIBLES */
    .hero-tags {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-tag {
        width: auto;
        min-width: 160px;
        justify-content: center;
        font-size: 16px;             /* Texto más grande */
        font-weight: 600;
        padding: 14px 22px;          /* Más padding = más grande */
        border-radius: 12px;
    }
    
    /* ================================================
       RESTO DE SECCIONES MÓVIL
    ================================================ */
    
    /* PAGE BANNER */
    .page-banner {
        min-height: 260px;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .page-banner h1 {
        font-size: 34px;
        line-height: 1.15;
        color: #fff;
    }
    
    .page-banner p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    /* TITLES */
    .section-title {
        font-size: 30px;
        line-height: 1.25;
    }
    
    /* TEXT */
    .about-text,
    .contact-text,
    .service-content p,
    .info-card p,
    .note-content p {
        font-size: 16px;
        line-height: 1.8;
    }
    
    /* CARDS */
    .service-content,
    .news-content {
        padding: 24px;
    }
    
    .service-content h3,
    .news-content h3 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .news-image {
        height: 200px;
        object-fit: cover;
    }
    
    /* CONTACT */
    .contact-form-box {
        padding: 28px 20px;
        border-radius: 12px;
    }
    
    .contact-form-box h3 {
        font-size: 24px;
    }
    
     /* FOOTER COLUMNS GROUP - HORIZONTAL EN MÓVIL */

      /* === QUITAR ESPACIO EXTERNO DEL FOOTER === */
    
       /* FOOTER */
    .main-footer {
        text-align: center;
        padding: 16px 0;
    }
    
    .footer-brand,
    .footer-social {
        justify-content: left;
    }
    
    .footer-social {
        gap: 8px;
        margin-top: 8px;
    }

      .footer-columns-mobile {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0px;
        width: 100%;
        margin: 0 !important;
        padding: 10px !important;
    }

    
    .main-footer .col-lg-8.footer-columns-mobile {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .main-footer .row.gy-5 {
        margin-left: 0;
        margin-right: 0;
    }


    .footer-columns-mobile.row {
        
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-columns-mobile .col-lg-3,
    .footer-columns-mobile .col-lg-5,
    .footer-columns-mobile .col-lg-4,
    .footer-columns-mobile .col-md-6 {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 1px !important;
        margin: 0 !important;
    }

    .footer-columns-mobile .footer-title {
        font-size: 11px;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .footer-columns-mobile .footer-links,
    .footer-columns-mobile .footer-contact {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-columns-mobile .footer-links li,
    .footer-columns-mobile .footer-contact li {
        margin-bottom: 2px;
        font-size: 8px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-columns-mobile .footer-links a,
    .footer-columns-mobile .footer-contact li {
        color: inherit;
        text-decoration: none;
    }

    .footer-columns-mobile .footer-contact i {
        display: none;
    }

     /* NOTA INSTITUCIONAL - MÁS PEQUEÑA EN MÓVIL */
    .institutional-note {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .institutional-note .note-box {
        padding: 20px;
        gap: 12px;
    }

    .institutional-note .note-icon {
        font-size: 24px;        /* Icono más pequeño */
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .institutional-note .note-icon i {
        font-size: 20px;
    }

    .institutional-note .note-content h3 {
        font-size: 18px;        /* Título más pequeño */
        margin-bottom: 10px;
    }

    .institutional-note .note-content p {
        font-size: 14px;        /* Párrafos más pequeños */
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .institutional-note .note-content p.mb-0 {
        margin-bottom: 0;
    }

    .institutional-note .note-content strong {
        font-size: 14px;
    }
}


/* =========================================================
   RESPONSIVE: MÓVILES PEQUEÑOS (hasta 375px)
   Ajustes proporcionales para pantallas muy pequeñas
========================================================= */
@media (max-width: 375px) {
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-content h1 {
        font-size: 34px;             /* Ligeramente reducido pero grande */
    }
    
    .hero-content p,
    .hero-description {
        font-size: 18px;
    }
    
    .hero-tag {
        font-size: 15px;
        padding: 12px 18px;
        min-width: 140px;
    }
    
    .hero-badge {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

      /* FOOTER COLUMNS GROUP - HORIZONTAL EN MÓVIL */

      /* === QUITAR ESPACIO EXTERNO DEL FOOTER === */

    
    .footer-columns-mobile {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0px;
        width: 100%;
        margin: 0 !important;
        padding: 10px !important;
    }

    
    .main-footer .col-lg-8.footer-columns-mobile {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .main-footer .row.gy-5 {
        margin-left: 0;
        margin-right: 0;
    }


    .footer-columns-mobile.row {
        
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-columns-mobile .col-lg-3,
    .footer-columns-mobile .col-lg-5,
    .footer-columns-mobile .col-lg-4,
    .footer-columns-mobile .col-md-6 {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 1px !important;
        margin: 0 !important;
    }

    .footer-columns-mobile .footer-title {
        font-size: 11px;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .footer-columns-mobile .footer-links,
    .footer-columns-mobile .footer-contact {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-columns-mobile .footer-links li,
    .footer-columns-mobile .footer-contact li {
        margin-bottom: 2px;
        font-size: 8px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-columns-mobile .footer-links a,
    .footer-columns-mobile .footer-contact li {
        color: inherit;
        text-decoration: none;
    }

    .footer-columns-mobile .footer-contact i {
        display: none;
    }

     /* NOTA INSTITUCIONAL - MÁS PEQUEÑA EN MÓVIL */
    .institutional-note {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .institutional-note .note-box {
        padding: 20px;
        gap: 12px;
    }

    .institutional-note .note-icon {
        font-size: 24px;        /* Icono más pequeño */
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .institutional-note .note-icon i {
        font-size: 20px;
    }

    .institutional-note .note-content h3 {
        font-size: 18px;        /* Título más pequeño */
        margin-bottom: 10px;
    }

    .institutional-note .note-content p {
        font-size: 14px;        /* Párrafos más pequeños */
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .institutional-note .note-content p.mb-0 {
        margin-bottom: 0;
    }

    .institutional-note .note-content strong {
        font-size: 14px;
    }
}