/* ========== INDEX.ASPX - RESPONSIVE OPTIMIZATION ========== */
/* Escala tipográfica móvil: párrafos >= 15px, títulos de tarjeta 17-19px, inputs 16px
   (iOS hace zoom al enfocar un input de menos de 16px). No se reduce el texto por debajo
   de estos mínimos en pantallas pequeñas: en móvil las tarjetas ocupan todo el ancho. */

/* DESKTOP BASE (1200px+) - Agregar padding-top al hero para separarlo del navbar fijo */
.hero {
    padding-top: 180px !important;
    padding-bottom: 80px !important;
}

/* ========== TABLETS LARGE (≤ 992px) ========== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 52px !important;
    }

    .hero p {
        font-size: 18px !important;
    }

    .section-title-h2 h2 {
        font-size: 40px;
    }

    .section-title-p p {
        font-size: 17px;
    }
}

/* ========== TABLETS (≤ 768px) ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px !important;
        margin-bottom: 15px !important;
    }

    .hero p {
        font-size: 17px !important;
        margin-bottom: 20px !important;
    }

    .hero .btn-industrial,
    .hero .btn-outline-industrial {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        font-size: 15px !important;
        padding: 14px 20px !important;
    }

    .section-title-h2 h2 {
        font-size: 34px;
    }

    .section-title-p p {
        font-size: 17px;
        line-height: 1.6;
        max-width: 100%;
    }

    .col-md-4,
    .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .col-lg-8 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .about-box {
        padding: 22px !important;
        text-align: center !important;
    }

    .about-box i {
        font-size: 34px !important;
        margin-bottom: 12px !important;
    }

    .about-box h4 {
        font-size: 19px !important;
        margin-bottom: 8px !important;
    }

    .about-box p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .about-mv {
        padding: 22px !important;
        margin-bottom: 15px !important;
    }

    .about-mv h3 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .about-mv p {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }

    .mv-icon {
        font-size: 40px !important;
        margin-bottom: 12px !important;
    }

    .mv-tags {
        margin-bottom: 12px !important;
        gap: 8px !important;
    }

    .mv-tags span {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }

    .form-control {
        height: 48px !important;
        font-size: 16px !important;
        padding: 10px 14px !important;
    }

    .form-control::placeholder {
        font-size: 15px !important;
    }

    .newsletter-p .input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Bootstrap da width:1% al input de un input-group (pensado para fila): en columna quedaba de
       30px y no se podía escribir el correo. Además se devuelven las esquinas que el grupo recorta. */
    .newsletter-p .input-group .form-control {
        flex: 0 0 auto !important;
        width: 100% !important;
        border-radius: 12px !important;
    }

    .newsletter-p .input-group .btn {
        width: 100% !important;
        height: 48px !important;
        font-size: 15px !important;
        margin-left: 0 !important;
        border-radius: 12px !important;
    }

    .contact-form .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .btn-industrial {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 46px !important;
        font-size: 15px !important;
    }
}

/* ========== MÓVILES (≤ 576px) ========== */
@media (max-width: 576px) {
    .hero {
        padding: 60px 20px 40px !important;
    }

    .hero h1 {
        font-size: 30px !important;
        margin-bottom: 12px !important;
        line-height: 1.25;
    }

    .hero p {
        font-size: 16px !important;
        margin-bottom: 18px !important;
    }

    .hero .btn-industrial,
    .hero .btn-outline-industrial {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        font-size: 15px !important;
        padding: 13px 16px !important;
        min-height: 46px !important;
    }

    .section-title-h2 h2 {
        font-size: 30px;
    }

    .section-title-p p {
        font-size: 16px;
    }

    .about {
        padding: 40px 0 !important;
    }

    .about-box {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }

    .about-box i {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }

    .about-box h4 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .about-box p {
        font-size: 15.5px !important;
    }

    .about-mv {
        padding: 20px !important;
    }

    .about-mv h3 {
        font-size: 21px !important;
        margin-bottom: 8px !important;
    }

    .about-mv p {
        font-size: 15.5px !important;
    }

    .mv-icon {
        font-size: 38px !important;
        margin-bottom: 10px !important;
    }

    .mv-tags {
        margin-bottom: 12px !important;
        gap: 6px !important;
    }

    .mv-tags span {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    section {
        padding: 44px 0 !important;
    }

    .newsletter h2,
    .newsletter-h2 h2 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }

    .newsletter p,
    .newsletter-p p {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }

    .newsletter-p .input-group .btn {
        min-height: 48px !important;
    }

    .contact-form .col-md-6 {
        margin-bottom: 12px !important;
    }

    .contact-form .col-12 {
        margin-bottom: 12px !important;
    }

    .btn-industrial {
        font-size: 15px !important;
        padding: 12px 18px !important;
        min-height: 46px !important;
    }
}

/* ========== MÓVILES PEQUEÑOS (≤ 450px) ========== */
@media (max-width: 450px) {
    .hero {
        padding: 50px 16px 30px !important;
    }

    .hero h1 {
        font-size: 27px !important;
        margin-bottom: 10px !important;
    }

    .hero p {
        font-size: 15.5px !important;
        margin-bottom: 14px !important;
    }

    .section-title-h2 h2 {
        font-size: 27px;
    }

    .section-title-p p {
        font-size: 15.5px;
    }

    .about {
        padding: 34px 0 !important;
    }

    .about-box,
    .about-mv {
        padding: 18px !important;
    }

    .about-box h4 {
        font-size: 17.5px !important;
    }

    .about-mv h3 {
        font-size: 20px !important;
    }

    .about-box p,
    .about-mv p {
        font-size: 15px !important;
    }

    .mv-tags span {
        font-size: 12.5px !important;
    }

    section {
        padding: 38px 0 !important;
    }

    .mt-5,
    .row.g-4 {
        margin-top: 25px !important;
    }
}

/* ========== EXTRA PEQUEÑOS (≤ 380px) ========== */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 25px !important;
    }

    .hero p {
        font-size: 15px !important;
    }

    .section-title-h2 h2 {
        font-size: 25px !important;
    }

    .section-title-p p {
        font-size: 15px !important;
    }

    .about-box h4 {
        font-size: 17px !important;
    }

    .about-mv h3 {
        font-size: 19px !important;
    }

    .newsletter-h2 h2 {
        font-size: 22px !important;
    }

    .btn-industrial {
        padding: 12px 14px !important;
    }
}

/* ========== TARJETAS DEL INDEX EN MÓVIL (servicios, productos, cursos, portafolio, blog, clientes) ==========
   style.css reduce estas tarjetas hasta 8-11px (con !important) pensando en grillas de miniaturas;
   en el index cada tarjeta ocupa el ancho completo, así que aquí se restablece una lectura cómoda.
   Se limita con los IDs de sección para no afectar catálogos ni otras páginas. */
@media (max-width: 768px) {
    #servicios .product-card,
    #productos .product-card,
    #cursos .course-card {
        border-radius: 12px !important;
    }

    #servicios .product-card img,
    #productos .product-card img,
    #cursos .course-card img {
        height: 210px !important;
        object-fit: cover;
    }

    #servicios .product-content,
    #productos .product-content,
    #cursos .course-content,
    #portafolio .portfolio-content {
        padding: 20px !important;
    }

    #servicios .product-content h4,
    #productos .product-content h4,
    #cursos .course-content h4,
    #cursos .course-content h5,
    #portafolio .portfolio-content h4 {
        font-size: 19px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    #servicios .product-content p,
    #productos .product-content p,
    #cursos .course-content p,
    #portafolio .portfolio-content p {
        font-size: 15.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 14px !important;
    }

    #cursos .badge-course,
    #portafolio .badge-portfolio {
        font-size: 13px !important;
        padding: 5px 12px !important;
    }

    #cursos .course-price {
        font-size: 17px !important;
    }

    #servicios .product-content .btn-industrial,
    #productos .product-content .btn-industrial,
    #cursos .course-content .btn-industrial,
    #portafolio .portfolio-content .btn-industrial {
        font-size: 15px !important;
        padding: 12px 20px !important;
        min-height: 46px !important;
    }

    .blog-content h3 {
        font-size: 19px !important;
        line-height: 1.3 !important;
    }

    .blog-content p {
        font-size: 15.5px !important;
        line-height: 1.6 !important;
    }

    .clientes-section .cliente-nombre {
        font-size: 15px !important;
    }

    .clientes-section .cliente-descripcion {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 450px) {
    #servicios .product-card img,
    #productos .product-card img,
    #cursos .course-card img {
        height: 190px !important;
    }

    #servicios .product-content,
    #productos .product-content,
    #cursos .course-content,
    #portafolio .portfolio-content {
        padding: 18px !important;
    }

    #servicios .product-content h4,
    #productos .product-content h4,
    #cursos .course-content h4,
    #cursos .course-content h5,
    #portafolio .portfolio-content h4 {
        font-size: 18px !important;
    }

    #servicios .product-content p,
    #productos .product-content p,
    #cursos .course-content p,
    #portafolio .portfolio-content p {
        font-size: 15px !important;
    }
}

/* ========== LANDSCAPE ORIENTATION (≤ 600px height) ========== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 30px 0 !important;
    }

    .hero h1 {
        font-size: 26px !important;
        margin-bottom: 8px !important;
    }

    .hero p {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    .hero .btn-industrial,
    .hero .btn-outline-industrial {
        font-size: 14px !important;
        padding: 10px 16px !important;
        min-height: 42px !important;
    }

    section {
        padding: 30px 0 !important;
    }

    .section-title-h2 h2 {
        font-size: 26px !important;
        margin-bottom: 6px !important;
    }

    .section-title-p p {
        font-size: 15px !important;
    }
}

/* reCAPTCHA v3: se oculta el distintivo flotante (tapaba el botón de WhatsApp).
   Google lo permite si el formulario muestra el aviso .aviso-recaptcha con sus enlaces. */
.grecaptcha-badge {
    visibility: hidden;
}

.aviso-recaptcha {
    margin: 12px 0 0;
    font-size: 12px;
    color: #6c757d;
}

.aviso-recaptcha a {
    color: inherit;
    text-decoration: underline;
}
