/* ============================================================
   NEXARIS — css/styles.css
   Estilos personalizados comunes a todas las páginas.
   Las clases de utilidad de Tailwind se aplican directamente
   en el HTML; aquí sólo van las clases que Tailwind no puede
   generar dinámicamente o que requieren lógica CSS especial.
   ============================================================ */

/* --- Tipografía base --- */
body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Efecto Glassmorphism (nav) --- */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dark .glass {
    background: rgba(15, 23, 42, 0.9);
}

/* --- Botón "volver arriba" con animación de visibilidad --- */
#btn-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#btn-top.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Fondo de modales con blur --- */
.modal-bg {
    display: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-bg.active {
    display: flex;
}

/* --- Mapa (index.html) --- */
.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* --- Widget Elfsight (index.html) --- */
.elfsight-app-23c5ab2b-71e7-46d0-ac29-d270b9d9eed9 {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* --- Fondo del captcha con patrón SVG (contacto.html) --- */
.captcha-box {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394a3b8' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Tipografía responsiva para headings grandes --- */
@media (max-width: 768px) {
    .heading-responsive {
        letter-spacing: -0.01em !important;
        line-height: 1.1 !important;
    }
    .tracking-mobile-normal {
        letter-spacing: normal !important;
    }
    .map-container iframe {
        height: 300px;
        border-radius: 1.5rem;
    }
}

@media (min-width: 768px) {
    .map-container iframe {
        height: 450px;
        border-radius: 3.5rem;
    }
}

/* --- Scroll infinito de logótipos de clientes/projetos --- */
.marquee-track {
    animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* --- Supresión de errores de ResizeObserver que lanza Botpress/Elfsight --- */
/* (El parche JS está en app.js; aquí no hay nada que añadir) */
