/* ============================================ */
/* INTERLINGO - responsive.css                  */
/* Adaptaciones para móviles y tablets          */
/* Paleta: Azul (#1771c4) + Amarillo (#FFC107) + Verde WhatsApp (#25D366) */
/* ============================================ */

/* ============================================ */
/* TABLETS (max-width: 992px)                  */
/* ============================================ */

@media (max-width: 992px) {
    /* --- Navbar Mobile --- */
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-overlay {
        display: none;
    }
    
    .mobile-overlay.open {
        display: flex;
    }

    /* --- Hero Section --- */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        margin-left: auto;
        margin-right: auto;
    }
    
    .subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    /* --- Grids Generales --- */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- About Section --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* ✅ En tablet: primero el contenido, luego el video/redes */
    .about-visuals {
        order: 2;
        position: static; /* ✅ Quitar sticky en tablet */
    }
    
    .about-content {
        order: 1;
        text-align: center;
    }
    
    /* ✅ Excepción: el formulario dentro de about-content debe estar alineado a la izquierda */
    .about-content .contact-form-card {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .values-list {
        align-items: center;
    }
    
    .value-item {
        text-align: left;
        max-width: 400px;
    }

    /* ✅ Ajustes para video y publicaciones en tablet */
    .about-main-video iframe {
        height: 280px;
    }
    
    .about-social-post.facebook-post iframe {
        height: 450px;
    }
    
    .about-social-posts {
        max-width: 500px;
        margin: 0 auto;
    }

    /* --- Contact Section --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* --- Footer --- */
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link:hover {
        background: var(--azul);
    }
}

/* ============================================ */
/* MÓVILES PEQUEÑOS (max-width: 576px)        */
/* ============================================ */

@media (max-width: 576px) {
    /* --- Top Bar --- */
    .top-bar {
        font-size: 0.8rem;
        padding: 8px 0;
    }
    
    /* --- Navbar --- */
    .nav-container {
        height: 64px;
        padding: 0 16px;
    }
    
    body {
        padding-top: 64px;
    }
    
    .nav-logo img {
        height: 34px;
    }
    
    /* --- Hero --- */
    .hero {
        padding: 80px 16px 50px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* --- Stats Bar --- */
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }

    /* --- Programs Grid --- */
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-header {
        padding: 24px 20px;
    }
    
    .program-body {
        padding: 20px;
    }

    /* --- Why Grid --- */
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        padding: 24px 16px;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    /* --- About Section en Móvil --- */
    .about-grid {
        gap: 30px;
    }
    
    .about-content {
        text-align: center;
    }
    
    /* ✅ Formulario en about-content: alineado a la izquierda en móvil */
    .about-content .contact-form-card {
        text-align: left;
        padding: 20px 16px;
    }
    
    .about-content .contact-form-card .form-row {
        grid-template-columns: 1fr;
    }
    
    /* ✅ Video de YouTube: altura reducida en móvil */
    .about-main-video iframe {
        height: 200px;
    }
    
    /* ✅ Título de publicaciones */
    .about-visuals h4 {
        font-size: 1rem;
    }
    
    /* ✅ Publicaciones de redes: ancho completo y altura reducida */
    .about-social-posts {
        gap: 16px;
    }
    
    .about-social-post {
        border-radius: 10px;
    }
    
    .about-social-post.facebook-post iframe {
        height: 380px;
    }
    
    .about-social-post.instagram-post .instagram-media {
        min-width: 0 !important;
        font-size: 13px;
    }
    
    /* ✅ Valores en móvil */
    .values-list {
        gap: 12px;
    }
    
    .value-item {
        padding: 12px 14px;
    }
    
    .value-text strong {
        font-size: 0.9rem;
    }
    
    .value-text span {
        font-size: 0.85rem;
    }

    /* --- About Gallery --- */
    .about-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }

    /* --- Testimonials --- */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 24px 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* --- CTA Section --- */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* --- Contact Section --- */
    .contact-grid {
        gap: 30px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 24px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-detail {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-detail .icon-box {
        margin-bottom: 8px;
    }

    /* --- Floating Form (clase-gratis.html) --- */
    .floating-form-card {
        padding: 30px 20px;
    }
    
    .form-icon-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* --- Footer --- */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact-link {
        justify-content: center !important;
    }
    
    .footer-bottom {
        padding: 20px 16px;
    }
    
    .footer-disclaimer {
        font-size: 0.75rem;
    }

    /* --- WhatsApp Float --- */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
    
    /* --- Toast --- */
    .toast-container {
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }
    
    .toast {
        max-width: 100%;
        font-size: 0.85rem;
    }
}

/* ============================================ */
/* ACCESIBILIDAD Y PREFERENCIAS                */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-up {
        opacity: 1;
        transform: none;
    }
    
    .btn:hover,
    .program-card:hover,
    .why-card:hover,
    .testimonial-card:hover,
    .floating-form-card:hover {
        transform: none !important;
    }
}

/* ============================================ */
/* MODO ALTO CONTRASTE                         */
/* ============================================ */

@media (prefers-contrast: high) {
    :root {
        --sombra-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
        --sombra-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .btn-azul {
        border-color: var(--azul);
    }
    
    .btn-amarillo {
        border-color: var(--amarillo);
    }
    
    .btn-whatsapp {
        border-color: var(--verde-whatsapp);
    }
    
    .program-card,
    .why-card,
    .testimonial-card,
    .contact-info-card,
    .contact-form-card {
        border: 2px solid var(--gris-medio);
    }
    
    .form-group-floating input,
    .form-group-floating textarea,
    .form-group-floating select {
        border: 2px solid var(--gris);
    }
}

/* ============================================ */
/* MODO OSCURO (Opcional - futuro)             */
/* ============================================ */

/* Descomentar y personalizar si se desea soporte para dark mode */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --blanco: #1a1a1a;
        --gris-muy-claro: #2d2d2d;
        --gris-claro: #3d3d3d;
        --gris: #b0b0b0;
        --negro: #f5f5f5;
    }
    
    body {
        background: var(--blanco);
        color: var(--gris);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.97);
        border-bottom-color: rgba(23, 113, 196, 0.3);
    }
    
    .hero-text h1,
    .section-title {
        color: var(--negro);
    }
}
*/