/* NovaHost — Responsive Breakpoints
   Extracted from styles.css and components.css
   Load after styles.css and components.css */

/* === From styles.css === */

@media (max-width: 768px) {
    h1 { font-size: 42px; }
    h2 { font-size: 30px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
}

@media (max-width: 480px) {
    h1 { font-size: 34px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .feature-section:nth-child(even) .feature-grid {
        direction: ltr;
    }
    .feature-visual { order: -1; }
    .feature-icon-box { width: 128px; height: 128px; }
    .feature-icon-box svg { width: 42px; height: 42px; }
    .feature-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .feature-text h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .feature-section { padding: 3rem 0; }
    .feature-icon-box { width: 96px; height: 96px; }
    .feature-icon-box svg { width: 32px; height: 32px; }
    .diferenciador-icon { width: 52px; height: 52px; }
    .diferenciador-icon svg { width: 22px; height: 22px; }
    .demanda-tag { padding: 0.55rem 0.8rem; font-size: 0.875rem; gap: 0.4rem; }
    .demanda-tag svg { width: 13px; height: 13px; }
}





@media (max-width: 768px) {
    .platform-hub-grid { grid-template-columns: 1fr; }
}



@media (max-width: 480px) {
    .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}



@media (max-width: 992px) {
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .valores-grid { grid-template-columns: 1fr; }
    .valores-section { padding: 3rem 0; }
}

@media (max-width: 480px) {
    .cta-final-buttons { flex-direction: column; align-items: center; }
    .cta-final-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
}



@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .servicios-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 3rem; }
    .stat-number { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-btn { display: block; z-index: 101; }
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-navy);
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        z-index: 100;
    }
    .nav.nav-open { right: 0; }
    .nav-link {
        color: rgba(255,255,255,0.9);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
    .nav-link:hover, .nav-link.active { color: var(--color-cyan); }
    .nav .btn { margin-top: 1.5rem; width: 100%; }

    /* Hamburger animation */
    .mobile-menu-btn.active span {
        background: var(--color-cyan);
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Header */
    .header .container { height: 70px; }
    .logo img { height: 50px; }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 1.65rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    .hero-content .tagline {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    .btn-hero {
        width: 100%;
        max-width: 260px;
        padding: 0.85rem 1.5rem;
    }

    /* Reduce visual effects on mobile for performance */
    .hero-grid { opacity: 0.4; }
    .hero-glows .glow { transform: scale(0.5); opacity: 0.4; }
    .hero-dots-far, .hero-dots-mid { opacity: 0.4; }
    .hero-dots-near { opacity: 0.5; }
    .hero-signals { opacity: 0.3; }
    /* Tecnologías section */
    .tecnologias { padding: 3rem 0; }
    .tecnologias-fullwidth {
        padding: 1.5rem 1rem;
        gap: 0.75rem;
    }
    .tecnologia-item {
        width: 140px;
        height: 80px;
        padding: 0.75rem;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { margin-bottom: 1.5rem; }
    .footer-brand img { height: 60px; }
    .footer-social { justify-content: center; }
    .footer-column { margin-bottom: 1.5rem; }
    .footer-payment { padding: 1rem 0; }
    .payment-logos { flex-wrap: wrap; gap: 1rem; }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Stats section */
    .stats-section { padding: 3rem 0; }
    .stats-grid { gap: 3rem; }
    .stat-number { font-size: 3.5rem; }
    .stat-label { font-size: 0.85rem; }

    /* Software libre */
    .software-libre-content h3 { font-size: 1.3rem; flex-direction: column; }
    .animated-words-wrapper { min-width: 100px; }

    /* Services cards */
    .servicio-card { padding: 1.5rem; }

    /* Paises */
    .paises-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .pais-card { padding: 1rem; }
    .pais-card span { font-size: 0.875rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content .tagline { font-size: 1rem; }
    .hero-buttons .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
    .stats-section { padding: 2rem 0; }
    .stats-grid { gap: 2rem; }
    .stat-number { font-size: 2.5rem; }
    .stat-label { font-size: 0.875rem; }
    .tecnologias { padding: 2.5rem 0; }
    .tecnologias-fullwidth {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }
    .tecnologia-item { width: 100px; height: 64px; padding: 0.5rem; }
    .paises-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.5rem; }
    .software-libre-content h3 { font-size: 1.1rem; }
    .breadcrumb { margin-bottom: 1.25rem; }
    .breadcrumb span[aria-hidden] { margin: 0 0.25rem; }
}

@media (max-width: 992px) {
    .tabs-nav {
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: normal;
    }

    .diferenciadores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        border-bottom: 2px solid var(--color-gray-200);
        padding-bottom: 0;
    }

    .tab-btn {
        white-space: nowrap;
        background: none;
        border: none;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        color: var(--color-gray-500);
    }

    .tab-btn.active {
        background: none;
        border-bottom: 2px solid var(--color-cyan);
        color: var(--color-cyan);
    }

    .diferenciadores-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner h3 {
        font-size: 1.35rem;
    }
}

/* === From components.css === */

@media (max-width: 992px) {
    .hero-illustration { height: 260px; }
    .hero-illustration img,
    .hero-illustration svg { max-width: 280px; max-height: 220px; width: auto; height: auto; object-fit: contain; }
}

@media (max-width: 480px) {
    .hero-illustration { height: 180px; }
    .hero-illustration img,
    .hero-illustration svg { max-width: 200px; max-height: 150px; width: auto; height: auto; object-fit: contain; }
}

@media (max-width: 992px) {
    .hero-content .platform-logos {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content .platform-logos {
        gap: 0.75rem;
    }
    .hero-content .platform-logos a {
        width: 90px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-split .hero-illustration {
        display: none;
    }
    .hero-content .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
}

/* === Cookie Banner === */

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 1rem;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* === Tabs content on mobile === */

@media (max-width: 768px) {
    .tab-content-single {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: left;
        padding: 0;
    }
    .tab-text {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .tab-content-single h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    .tab-content-single p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0;
    }
    .tab-logo {
        display: none;
    }
    .tab-features {
        margin-bottom: 0;
    }
    .tab-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1.5rem;
        line-height: 1.4;
    }
    .tab-features li::before {
        top: 0.75rem;
        width: 6px;
        height: 6px;
    }
    .tab-content-single .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
