/**
 * MOBILE FIXES - Agent Dragon ES
 * Correcciones de UX móvil identificadas en auditoría
 * Agregar este archivo DESPUÉS de styles.css
 */

/* ============================================
   1. NAVEGACIÓN MÓVIL - CORRECCIÓN CRÍTICA
   ============================================ */
@media (max-width: 768px) {

    /* Reset del nav-menu para eliminar conflictos */
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-top: 1px solid var(--border-color, #2A2A3A);
        overflow-y: auto;
        z-index: 999;
        /* Eliminar transform conflictivo */
        transform: none;
        opacity: 1;
        transition: none;
    }

    .nav-menu.show {
        display: flex;
    }

    /* Nav toggle - área táctil adecuada */
    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Links con área táctil adecuada */
    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        min-height: 56px;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }
}

/* ============================================
   2. MEGA MENÚ MÓVIL - ACCORDION STYLE
   ============================================ */
@media (max-width: 768px) {
    .mega-menu-wrapper {
        width: 100%;
    }

    .mega-menu-trigger {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        min-height: 56px;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mega-menu-trigger i {
        transition: transform 0.3s ease;
    }

    .mega-menu-wrapper.active .mega-menu-trigger i {
        transform: rotate(180deg);
    }

    /* Mega menu como accordion */
    .mega-menu {
        position: relative;
        width: 100%;
        max-width: 100%;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .mega-menu-wrapper.active .mega-menu {
        max-height: 1200px;
        padding: 1rem 0;
    }

    .mega-menu-container {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Menu cards en móvil */
    .menu-card {
        display: flex;
        align-items: center;
        padding: 1rem;
        min-height: 60px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        margin: 0 0.5rem;
    }

    .menu-card:hover,
    .menu-card:active {
        background: rgba(79, 70, 229, 0.1);
    }

    /* Ensure iOS sees this as clickable */
    .menu-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Voice solutions submenu */
    .voice-solutions-submenu {
        position: relative;
        width: calc(100% - 1rem);
        max-width: 100%;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        background: rgba(79, 70, 229, 0.05);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0.5rem;
        padding: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .voice-agents-menu.expanded .voice-solutions-submenu {
        max-height: 800px;
        padding: 1rem;
        display: block !important;
        /* Ensure it's visible */
        opacity: 1;
        /* Ensure opacity is 1 */
        visibility: visible;
    }

    /* Rotate arrow when expanded */
    .voice-agents-menu.expanded .fa-chevron-right {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }


    .submenu-title {
        display: block;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
        text-align: left;
        font-size: 0.75rem;
    }

    .submenu-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 12px;
        min-height: 56px;
        border-radius: 8px;
        margin-bottom: 4px;
    }

    .submenu-card:active {
        background: rgba(79, 70, 229, 0.2);
    }

    .submenu-icon {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .submenu-content h5 {
        font-size: 0.95rem;
    }

    .submenu-content p {
        font-size: 0.8rem;
    }
}

/* ============================================
   3. HERO SECTION - MOSTRAR EN MÓVIL
   ============================================ */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual,
    .hero-image {
        display: block !important;
        order: 1;
    }

    .hero-visual {
        max-height: 350px;
        margin: 0 auto;
    }

    .hero-image img,
    .hero-image .hero-animation-container {
        max-height: 300px;
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-visual {
        max-height: 280px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   4. PRICING CARDS - STACK RESPONSIVO
   ============================================ */
@media (max-width: 1200px) {
    .pricing-container {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        gap: 1.5rem;
    }

    .pricing-card {
        flex: 0 1 calc(50% - 1rem);
        min-width: 280px;
        max-width: 350px;
    }

    .card-pro {
        transform: none;
        order: -1;
    }

    .card-pro:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .pricing-card {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }

    .card-pro {
        margin: 0;
    }

    .card-pro .popular-badge {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 1rem;
    }

    .price-number {
        font-size: 2rem;
    }

    .card-pro .price-number {
        font-size: 2.2rem;
    }
}

/* ============================================
   5. TOUCH TARGETS - MÍNIMO 44px
   ============================================ */
@media (max-width: 768px) {

    /* Botones CTA */
    .cta-button {
        min-height: 48px;
        padding: 14px 24px;
    }

    /* Links del footer */
    .footer-section ul li a {
        display: block;
        padding: 10px 0;
        min-height: 44px;
    }

    /* Social links */
    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    /* Industry links */
    .industry-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 0;
    }

    /* Solution links */
    .solution-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 0;
    }

    /* Feature tags */
    .solution-features .feature {
        padding: 8px 12px;
        min-height: 36px;
    }

    /* Channel tags */
    .channel-tag {
        padding: 8px 12px;
        min-height: 36px;
    }
}

/* ============================================
   6. USE CASES GRID - CORRECCIÓN
   ============================================ */
@media (max-width: 1024px) {
    .use-cases-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .use-case-card.large {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .use-case-card,
    .use-case-card.large {
        grid-column: span 1;
    }
}

/* ============================================
   7. INDUSTRIAS GRID - CORRECCIÓN
   ============================================ */
@media (max-width: 900px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        text-align: center;
    }

    .industry-icon {
        margin: 0 auto 1rem;
    }
}

/* ============================================
   8. FOOTER - CENTRADO Y ESPACIADO
   ============================================ */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ============================================
   9. CTA SECTION - RESPONSIVA
   ============================================ */
@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-buttons .cta-button {
        width: 100%;
        justify-content: center;
    }

    .cta-proof {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .proof-number {
        font-size: 2rem;
    }
}

/* ============================================
   10. BOTONES - FEEDBACK TÁCTIL MEJORADO
   ============================================ */
@media (max-width: 768px) {

    .cta-button:active,
    .btn-plan:active,
    .btn-secondary:active {
        transform: scale(0.96);
        opacity: 0.9;
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    /* Eliminar hover effects en touch */
    @media (hover: none) {

        .cta-button:hover,
        .btn-plan:hover,
        .btn-secondary:hover {
            transform: none;
            box-shadow: inherit;
        }
    }
}

/* ============================================
   11. PERFORMANCE - REDUCED MOTION
   ============================================ */
@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;
    }

    .orb {
        animation: none;
    }

    .floating-card {
        animation: none;
    }
}

/* ============================================
   12. SOLUCIONES GRID - RESPONSIVO
   ============================================ */
@media (max-width: 900px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        text-align: center;
    }

    .solution-icon {
        margin: 0 auto 1rem;
    }

    .solution-features {
        justify-content: center;
    }
}

/* ============================================
   13. SECTION HEADERS - RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .section-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ============================================
   14. ANIMATIONS CONTAINER - RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-animation-container {
        min-height: 250px;
        border-radius: 12px;
    }

    .orb {
        filter: blur(40px);
    }

    .orb-1 {
        width: 200px;
        height: 200px;
    }

    .orb-2 {
        width: 180px;
        height: 180px;
    }

    .orb-3 {
        width: 150px;
        height: 150px;
    }
}

/* ============================================
   15. FAQ SECTION - MOBILE OPTIMIZED
   ============================================ */
@media (max-width: 768px) {
    .faq-toggle {
        padding: 16px;
        font-size: 1rem;
        min-height: 60px;
    }

    .faq-answer {
        padding: 0 16px 16px;
    }
}

/* ============================================
   16. CONTACT LAYOUT - MOBILE STACK
   ============================================ */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-card,
    .info-card {
        padding: 1.5rem;
    }
}

/* ============================================
   17. LOGO - MOBILE SIZE
   ============================================ */
@media (max-width: 768px) {
    .logo-img {
        height: 60px;
        max-width: 180px;
    }

    .nav-logo {
        margin: -5px 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 50px;
        max-width: 150px;
    }
}

/* ============================================
   18. SAFE AREA - iOS NOTCH SUPPORT
   ============================================ */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .nav-menu {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* ============================================
   19. SCROLL SNAP (OPCIONAL - SECTIONS)
   ============================================ */
@media (min-width: 769px) {
    html {
        scroll-snap-type: y proximity;
    }

    section {
        scroll-snap-align: start;
    }
}

/* ============================================
   20. FOCUS VISIBLE - ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--primary-blue, #4F46E5);
    outline-offset: 2px;
}

.cta-button:focus-visible,
.btn-plan:focus-visible,
.nav-link:focus-visible,
.menu-card:focus-visible,
.submenu-card:focus-visible {
    outline: 2px solid var(--primary-blue, #4F46E5);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    /*background: var(--primary-blue, #4F46E5);*/
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
    border: none;
    box-shadow: none;
}

/* Ocultar skip-link en móvil */
@media (max-width: 768px) {
    .skip-link {
        display: none;
    }
}

/* ============================================
   21. PÁGINAS INTERNAS - FIXES ESPECÍFICOS
   ============================================ */

/* Service Hero en páginas internas */
@media (max-width: 768px) {
    .service-hero {
        padding: 100px 0 60px !important;
    }

    .service-hero .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .service-hero .hero-visual {
        display: block !important;
        order: -1;
        max-height: 250px;
        margin-bottom: 2rem;
    }

    .service-hero .hero-image {
        max-height: 220px !important;
        width: auto !important;
        margin: 0 auto;
    }
}

/* Case Studies Grid Fix */
@media (max-width: 768px) {

    .case-studies-grid,
    [class*="case-studies"]>div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .case-study,
    [class*="case-study"]:not(.case-study-tag) {
        padding: 24px !important;
    }

    .case-study-results,
    [class*="results"][style*="grid"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .result-number,
    [class*="result-number"] {
        font-size: 2rem !important;
    }
}

/* Use Cases Grid en páginas internas */
@media (max-width: 600px) {
    .use-cases [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .use-case-card[style] {
        padding: 24px !important;
    }
}

/* Features Grid Fix */
@media (max-width: 768px) {
    .features .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem !important;
    }

    .feature-stat {
        flex-direction: column;
        text-align: center;
    }
}

/* Nav Toggle como button - reset de estilos */
button.nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    button.nav-toggle {
        display: flex;
    }
}

button.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary, #fff);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Footer en páginas internas */
@media (max-width: 768px) {
    .footer .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }
}

/* Comparison Section Fix */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr !important;
    }

    .comparison-card {
        padding: 1.5rem !important;
    }
}

/* Steps Grid Fix */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr !important;
    }

    .steps-grid::before {
        display: none;
    }
}

/* Section titles en páginas internas */
@media (max-width: 768px) {
    [style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }

    [style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }

    section[style*="padding: 100px"] {
        padding: 60px 0 !important;
    }

    section[style*="padding: 120px"] {
        padding: 100px 0 60px !important;
    }
}

/* CTA Box responsive */
@media (max-width: 768px) {
    .cta-box {
        padding: 2rem !important;
        border-radius: 16px !important;
    }

    .cta-box h2 {
        font-size: 1.5rem !important;
    }
}

/* Pricing en páginas internas */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Hero container en páginas de soluciones */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .hero-grid .hero-content {
        order: 2;
    }

    .hero-grid .hero-visual,
    .hero-grid .hero-image-wrapper {
        order: 1;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .trust-logos {
        justify-content: center;
    }
}

/* Floating cards ocultar en móvil */
@media (max-width: 768px) {
    .floating-card {
        display: none !important;
    }
}

/* =============================================
   SECCIÓN 21: VOICE SOLUTIONS - HERO COMPLETO
   ============================================= */

@media (max-width: 768px) {

    /* Hero Section base */
    .hero-section {
        padding: 100px 0 50px !important;
        min-height: auto !important;
        overflow: hidden !important;
    }

    /* Hero Grid - Forzar columna única */
    .hero-section .hero-grid,
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    /* Contenido primero */
    .hero-section .hero-content,
    .hero-grid .hero-content {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Visual después */
    .hero-section .hero-visual,
    .hero-grid .hero-visual {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hero Title responsive */
    .hero-section .hero-title,
    .hero-title {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .hero-title span {
        display: inline !important;
    }

    .hero-title br {
        display: none !important;
    }

    /* Hero Description */
    .hero-section .hero-description,
    .hero-description {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }

    /* Hero Badge centrado */
    .hero-section .hero-badge,
    .hero-badge {
        display: inline-flex !important;
        justify-content: center !important;
        margin: 0 auto 1rem auto !important;
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* CTA Group stack */
    .hero-section .hero-cta-group,
    .hero-cta-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        margin-bottom: 2rem !important;
    }

    .hero-cta-group .cta-button {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        padding: 0.9rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    /* Trust Section */
    .hero-section .hero-trust,
    .hero-trust {
        text-align: center !important;
    }

    .hero-trust p {
        font-size: 0.8rem !important;
    }

    .hero-section .trust-logos,
    .trust-logos {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.75rem !important;
    }

    .trust-logo {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }

    /* Hero Image Wrapper */
    .hero-section .hero-image-wrapper,
    .hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 6px !important;
        border-radius: 12px !important;
    }

    /* Hero Image */
    .hero-section .hero-img,
    .hero-img {
        width: 100% !important;
        height: auto !important;
        max-height: 280px !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 10px !important;
    }

    /* Ocultar floating cards - evita overflow */
    .hero-section .floating-card,
    .floating-card,
    .card-1,
    .card-2 {
        display: none !important;
        visibility: hidden !important;
    }

    /* Hero Glow ajustado */
    .hero-section .hero-glow,
    .hero-glow {
        width: 100% !important;
        height: 100% !important;
        opacity: 0.3 !important;
    }
}

/* Pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 375px) {
    .hero-section {
        padding: 90px 0 40px !important;
    }

    .hero-section .hero-title,
    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-section .hero-description,
    .hero-description {
        font-size: 0.9rem !important;
    }

    .hero-section .hero-img,
    .hero-img {
        max-height: 220px !important;
    }

    .hero-cta-group .cta-button {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* =============================================
   SECCIÓN 22: VOICE SOLUTIONS - OTRAS SECCIONES
   ============================================= */

@media (max-width: 768px) {

    /* Comparison Section */
    .comparison-section {
        padding: 50px 0 !important;
    }

    .comparison-section .section-header {
        margin-bottom: 2rem !important;
    }

    .comparison-section .section-title {
        font-size: 1.5rem !important;
    }

    .comparison-section .comparison-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .comparison-card {
        padding: 1.25rem !important;
        border-radius: 12px !important;
    }

    .comparison-card .card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 0.75rem !important;
    }

    .comparison-card .card-header h3 {
        font-size: 1.15rem !important;
    }

    .comparison-list {
        gap: 1rem !important;
    }

    .comparison-list li {
        gap: 0.75rem !important;
    }

    .comparison-list strong {
        font-size: 0.95rem !important;
    }

    .comparison-list p {
        font-size: 0.85rem !important;
    }

    /* Features Section */
    .features-section {
        padding: 50px 0 !important;
    }

    .features-section .section-title {
        font-size: 1.5rem !important;
    }

    .features-section .features-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .features-section .feature-card {
        padding: 1.25rem !important;
        border-radius: 12px !important;
    }

    .feature-card .feature-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    .feature-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.5rem !important;
    }

    .feature-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Steps Section */
    .steps-section {
        padding: 50px 0 !important;
    }

    .steps-section .section-title {
        font-size: 1.5rem !important;
    }

    .steps-section .steps-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .steps-grid::before {
        display: none !important;
    }

    .step-card {
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }

    .step-number {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    .step-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .step-card p {
        font-size: 0.9rem !important;
    }

    /* CTA Section */
    .cta-section {
        padding: 50px 0 !important;
    }

    .cta-section .cta-box {
        padding: 2rem 1.25rem !important;
        border-radius: 16px !important;
    }

    .cta-section .cta-content h2 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }

    .cta-section .cta-content p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    .cta-section .cta-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .cta-section .cta-buttons .cta-button {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =============================================
   SECCIÓN 23: PREVENIR OVERFLOW HORIZONTAL
   ============================================= */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    section {
        overflow-x: hidden !important;
    }

    /* Prevenir que elementos absolutos causen overflow */
    [style*="position: absolute"],
    .hero-glow,
    .floating-card {
        max-width: 100vw !important;
    }
}

/* =============================================
   SECCIÓN 24: PÁGINA ABOUT - RESPONSIVE
   ============================================= */

/* Desktop - Founders y Values grids */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.values-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {

    /* Founders Grid */
    .founders-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 !important;
        align-items: center !important;
    }

    .founder-card,
    .about-section [style*="background: var(--card-bg)"] {
        padding: 1.25rem !important;
        max-width: 260px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .founder-image-container,
    [style*="width: 150px; height: 150px"] {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 0.75rem !important;
    }

    .founder-card h3,
    .about-section [style*="background: var(--card-bg)"] h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
    }

    .founder-card p,
    .about-section [style*="background: var(--card-bg)"] p {
        font-size: 0.8rem !important;
    }

    /* Features/Values Grid en About */
    .values-section .features-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .values-section .feature-card,
    .values-section [style*="background: rgba(255,255,255,0.03)"] {
        padding: 1.25rem !important;
        max-width: 260px !important;
        width: 100% !important;
    }

    .values-section .feature-icon,
    .values-section [style*="width: 60px; height: 60px"] {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .values-section .feature-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.4rem !important;
    }

    .values-section .feature-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* About Section padding */
    .about-section,
    .values-section {
        padding: 40px 0 !important;
    }

    /* Section headers */
    .about-section .section-title,
    .values-section .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .about-section .section-subtitle {
        font-size: 0.85rem !important;
    }

    /* LinkedIn button más pequeño */
    .founder-card .btn-secondary,
    .about-section a[style*="border: 1px solid var(--primary-blue)"] {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
}