/* =========================================================================
   ESTILOS RESPONSIVE - PÁGINA DE AGENTES IA
   ========================================================================== */

/* =========================================================================
   1. TABLET GRANDE (769px - 992px)
   ========================================================================== */

@media (max-width: 992px) {
    :root {
        --font-h1: 3rem;
        --font-body-large: 1rem;
    }

    .hero-section {
        padding: 60px 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .video-container {
        max-width: 700px;
    }
}

/* =========================================================================
   2. TABLET (577px - 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --font-h1: 2rem;
        --font-body-large: 0.95rem;
    }

    .hero-section {
        padding: 50px 20px;
        min-height: auto;
    }

    .hero-content {
        gap: var(--space-2xl);
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .video-container {
        max-width: 100%;
        animation-delay: 0.4s;
    }

    .cta-container {
        animation-delay: 0.5s;
    }

    .btn-cta {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Reducir blur en formas de fondo para mejor rendimiento */
    .bg-shape {
        filter: blur(60px);
    }

    .bg-shape-1,
    .bg-shape-2,
    .bg-shape-3,
    .bg-shape-4 {
        width: 300px;
        height: 300px;
    }
}

/* =========================================================================
   3. MÓVIL (hasta 576px)
   ========================================================================== */

@media (max-width: 576px) {
    :root {
        --font-h1: 1.6rem;
        --font-body: 0.9rem;
        --font-body-large: 0.9rem;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-content {
        gap: var(--space-xl);
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .video-wrapper {
        border-radius: var(--radius-lg);
    }

    .hero-video {
        border-radius: var(--radius-lg);
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        font-size: 1.5rem;
    }

    .btn-cta {
        padding: 14px 25px;
        font-size: 0.9rem;
    }

    /* Optimizar formas de fondo para móvil */
    .bg-shape {
        filter: blur(50px);
        opacity: 0.3;
    }

    .bg-shape-1,
    .bg-shape-2,
    .bg-shape-3,
    .bg-shape-4 {
        width: 250px;
        height: 250px;
    }
}

/* =========================================================================
   4. MÓVIL PEQUEÑO (hasta 400px)
   ========================================================================== */

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .btn-cta {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .btn-cta span {
        font-size: 0.85rem;
    }
}

/* =========================================================================
   5. LANDSCAPE MÓVIL (Altura limitada)
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 20px;
        min-height: auto;
    }

    .hero-content {
        gap: var(--space-lg);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .video-wrapper {
        padding-bottom: 40%;
        /* Reducir altura del video en landscape */
    }

    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-button i {
        font-size: 1.2rem;
    }
}

/* =========================================================================
   6. DISPOSITIVOS TÁCTILES
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {

    /* Aumentar áreas de toque para mejor UX */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .play-button {
        min-width: 60px;
        min-height: 60px;
    }

    /* Eliminar algunos efectos hover en touch devices */
    .video-wrapper:hover {
        transform: none;
    }

    .play-button-overlay {
        opacity: 1;
    }
}

/* =========================================================================
   7. REDUCCIÓN DE MOVIMIENTO (Accesibilidad)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bg-shape {
        animation: none;
    }

    .hero-title,
    .hero-description,
    .video-container,
    .cta-container {
        animation: none;
        opacity: 1;
    }
}

/* =========================================================================
   8. PANTALLAS GRANDES (1400px+)
   ========================================================================== */

@media (min-width: 1400px) {
    .hero-container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .video-container {
        max-width: 900px;
    }
}

/* =========================================================================
   RESPONSIVE - SECCIÓN DE PRECIOS
   ========================================================================== */

/* Tablet grande */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 20px;
    }

    .pricing-header h2 {
        font-size: 2rem;
    }

    .pricing-subtitle {
        font-size: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .plan-price .amount {
        font-size: 2.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px) scale(1);
    }
}

/* Móvil */
@media (max-width: 576px) {
    .pricing-section {
        padding: 40px 15px;
    }

    .pricing-header {
        margin-bottom: 40px;
    }

    .pricing-header h2 {
        font-size: 1.6rem;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .plan-name {
        font-size: 1.3rem;
    }

    .plan-price .amount {
        font-size: 2rem;
    }

    .contact-text {
        font-size: 1.5rem;
    }
}

/* =========================================================================
   RESPONSIVE - FOOTER
   ========================================================================== */

@media (max-width: 992px) {
    .main-footer {
        margin-top: 80px;
    }

    .footer-content {
        padding: 30px 30px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        margin-bottom: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-divider {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        margin-top: 60px;
    }

    .footer-content {
        padding: 25px 30px 20px;
    }

    .traffic-lights-footer {
        margin-bottom: 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 30px;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-logo {
        gap: 0.8rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-icon i {
        font-size: 1.3rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .footer-description {
        font-size: 0.95rem;
    }

    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .footer-links ul {
        gap: 0.7rem;
    }

    .footer-links ul li a {
        font-size: 0.9rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .footer-divider {
        margin-bottom: 18px;
    }

    .footer-bottom {
        gap: 0.25rem;
    }

    .copyright {
        font-size: 0.8rem;
    }

    .company-info {
        font-size: 0.75rem;
    }

    .address {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .main-footer {
        margin-top: 40px;
    }

    .footer-content {
        padding: 20px 10px 15px;
    }

    .traffic-lights-footer {
        gap: 5px;
        margin-bottom: 20px;
        margin-left: 0.5rem;
    }

    .traffic-light-footer {
        width: 8px;
        height: 8px;
    }

    .footer-container {
        padding: 0 0.5rem;
        gap: 2rem;
        margin-bottom: 25px;
    }

    .footer-logo {
        gap: 0.7rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-icon i {
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-links h4 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .footer-links ul {
        gap: 0.6rem;
    }

    .footer-links ul li a {
        font-size: 0.85rem;
    }

    .contact-item {
        font-size: 0.85rem;
        gap: 0.7rem;
    }

    .contact-item i {
        font-size: 1rem;
    }

    .footer-divider {
        margin-bottom: 15px;
    }

    .footer-bottom {
        gap: 0.2rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .company-info {
        font-size: 0.7rem;
    }

    .address {
        font-size: 0.65rem;
    }
}

/* =========================================================================
   RESPONSIVE - SECCIÓN SOPORTE WHATSAPP
   ========================================================================== */

@media (max-width: 992px) {
    .whatsapp-support-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .faq-contact {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .faq-contact-text {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .faq-contact-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .faq-contact-btn i {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .whatsapp-support-section {
        padding: 30px 15px;
    }

    .faq-contact {
        margin-top: 1.5rem;
        padding: 1.2rem;
    }

    .faq-contact-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .faq-contact-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        gap: 0.6rem;
    }

    .faq-contact-btn i {
        font-size: 1.2rem;
    }
}

/* =========================================================================
   9. IMPRESIÓN (Print)
   ========================================================================== */

@media print {
    .animated-background {
        display: none;
    }

    .hero-section {
        padding: 20px;
    }

    .video-wrapper {
        border: 2px solid #000;
    }

    .btn {
        border: 2px solid #000;
    }
}