/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* ==========================================================================
   UNIVERSAL WORLD VZLA - HOJA DE ESTILOS (CHILD THEME)
   ========================================================================== */
/* =========================================
   0. CORRECCIÓN DE FONDO BASE (Para evitar flashes blancos)
   ========================================= */
html, body {
    background-color: #191919 !important; /* El mismo color de tus secciones */
    color: #e0e0e0; /* Color de texto base por si acaso */
}

/* Opcional: Asegurar que el contenedor de Elementor también sea oscuro */
.elementor {
    background-color: #191919;
}

/* -----------------------------------------
   1. VARIABLES GLOBALES & BRANDING
   ----------------------------------------- */
:root {
  --uw-brand-color: #1DAFD7; /* Azul Universal */
}

/* Selección de texto (Color de marca) */
::selection {
  background-color: var(--uw-brand-color);
  color: #ffffff;
}
::-moz-selection {
  background-color: var(--uw-brand-color);
  color: #ffffff;
}

/* -----------------------------------------
   2. UTILIDADES (Sticky Column)
   ----------------------------------------- */
@media (min-width: 769px) { 
  .gn-sticky-col {
    position: -webkit-sticky;
    position: sticky;
    top: 130px; 
    align-self: flex-start; 
    z-index: 5;
    
    /* Optimización de rendimiento para scroll suave */
    will-change: transform;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
  }
}

/* -----------------------------------------
   3. MARQUESINA INFINITA (Universal World)
   ----------------------------------------- */
.gn-marquee-container {
  /* Variables por defecto (Elementor puede sobrescribir esto inline) */
  --gn-m-bg: #FFF1EB; 
  --gn-m-height: 200px;
  --gn-m-logo-w: 100px; 
  --gn-m-text-size: 2rem;
  --gn-m-gap: 60px;
  
  position: relative;
  width: 100%;
  height: var(--gn-m-height);
  background-color: var(--gn-m-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
}

/* Pista de animación */
.gn-marquee-track {
  display: flex;
  gap: 0;
  width: fit-content;
  animation: scrollMarquee 30s linear infinite; 
  will-change: transform;
}

/* Pausar al pasar el mouse (Mejora de UX) */
.gn-marquee-container:hover .gn-marquee-track {
  animation-play-state: paused;
}

.gn-marquee-content, 
.gn-marquee-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gn-marquee-item {
  padding: 0 40px; /* Espacio entre elementos */
}

/* Textos de la marquesina */
.gn-marquee-text {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--gn-m-text-size);
  font-weight: 300;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* Imágenes / Logos */
.gn-marquee-img {
  width: var(--gn-m-logo-w) !important; 
  height: auto;
  margin-right: var(--gn-m-gap);
  object-fit: contain;
  display: block;
}

/* Efectos de desvanecimiento lateral (Fades) */
.gn-marquee-fade {
  position: absolute;
  top: 0; bottom: 0; 
  width: 150px; 
  z-index: 2; 
  pointer-events: none; /* Permite clicks a través del fade */
}

.gn-marquee-fade.left { 
  left: 0; 
  background: linear-gradient(to right, var(--gn-m-bg), transparent); 
}

.gn-marquee-fade.right { 
  right: 0; 
  background: linear-gradient(to left, var(--gn-m-bg), transparent); 
}

/* Keyframes de animación */
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* -----------------------------------------
   4. RESPONSIVE (Móvil)
   ----------------------------------------- */
@media (max-width: 768px) {
  .gn-marquee-container { 
      height: 120px; 
      --gn-m-logo-w: 40px !important; /* Ajuste móvil */
      --gn-m-text-size: 1.2rem; 
  }
  .gn-marquee-item { 
      padding: 0 20px; 
  }
}
/* =========================================
   SCROLL REVEAL (Versión Nativa / Sutil)
   ========================================= */

/* 1. Estado Inicial */
body:not(.elementor-editor-active) .uw-scroll-item {
    opacity: 0;
    /* Reducimos el movimiento de 40px a 20px para que se sienta más "pegado" */
    transform: translateY(20px); 
    /* Aceleramos un poco la transición para que responda rápido */
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    will-change: opacity, transform;
}

/* 2. Estado Visible */
body:not(.elementor-editor-active) .uw-scroll-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 1. SCROLLBAR PERSONALIZADO (Modo Dark) --- */
/* Funciona en Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px; /* Más delgado y elegante */
}

::-webkit-scrollbar-track {
    background: #191919; /* Se funde con tu fondo */
}

::-webkit-scrollbar-thumb {
    background-color: #333; /* Color de la barra en reposo */
    border-radius: 5px; /* Redondeado */
    border: 2px solid #191919; /* Espacio alrededor para que respire */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #1DAFD7; /* ¡Brilla en AZUL al tocarlo! */
}

/* --- 3. EFECTO NEON GLOW (Hover Premium) --- */
/* Aplica esto a tus botones de Elementor o enlaces clave */
.elementor-button:hover, 
.uw-nav-btn:hover, 
a:hover img {
    /* Sombra suave del color de tu azul */
    box-shadow: 0 0 20px rgba(29, 175, 215, 0.4) !important; 
    transition: box-shadow 0.3s ease-in-out;
}

/* Variación para elementos verdes (si tienes botones verdes específicos) */
.uw-green:hover {
    box-shadow: 0 0 20px rgba(188, 191, 3, 0.4) !important;
}

/* =========================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.uw-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde Oficial WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999; /* Siempre encima de todo */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* El Icono SVG */
.uw-wa-icon {
    width: 35px;
    height: 35px;
    fill: #fff;
}

/* Efecto Hover (Crece y brilla) */
.uw-whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20BA56; /* Verde un poco más oscuro */
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6); /* Resplandor verde */
}

/* Animación de Pulso (Para captar atención) */
.uw-whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: uw-pulse-green 2s infinite;
}

@keyframes uw-pulse-green {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Versión Móvil (Un poco más pequeño y separado del borde) */
@media (max-width: 768px) {
    .uw-whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .uw-wa-icon {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   Layout & Typography
   ========================================= */
.faq-module {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: var(--faq-font-family);
    background-color: var(--faq-bg-main);
    color: var(--faq-text-light);
    border-radius: var(--faq-border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Sombra elegante */
}

.faq-header {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--faq-text-light);
}

/* =========================================
   Search Box (Luxury UI)
   ========================================= */
.faq-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--faq-text-muted);
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; /* Espacio para el icono */
    font-size: 1rem;
    font-family: inherit;
    color: var(--faq-text-light);
    background-color: var(--faq-bg-secondary);
    border: 1px solid var(--faq-border-color);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-search-input:focus {
    border-color: var(--faq-accent-color);
    background-color: #000;
}

/* =========================================
   Swipeable Tabs (App-Like)
   ========================================= */
.faq-tabs-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

/* Difuminado a los lados para indicar scroll */
.faq-tabs-container::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(10,10,10,0), var(--faq-bg-main));
    pointer-events: none;
}

.faq-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0 0 10px 0;
    margin: 0;
    list-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.faq-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.faq-tabs li {
    scroll-snap-align: center;
}

.faq-tab-btn {
    white-space: nowrap;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--faq-text-muted);
    background: var(--faq-bg-secondary);
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-tab-btn.active {
    background-color: var(--faq-accent-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(169, 7, 7, 0.4);
}

/* =========================================
   Premium Accordions
   ========================================= */
.faq-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.faq-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item {
    background-color: var(--faq-bg-secondary);
    border: 1px solid var(--faq-border-color);
    border-radius: var(--faq-item-radius);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-question-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    padding-right: 1rem;
}

/* Icono animado + a x */
.faq-icon-plus {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.faq-icon-plus::before, .faq-icon-plus::after {
    content: '';
    position: absolute;
    background-color: var(--faq-accent-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon-plus::before { top: 9px; left: 0; width: 100%; height: 2px; }
.faq-icon-plus::after { top: 0; left: 9px; width: 2px; height: 100%; }

.faq-item[open] {
    background-color: var(--faq-bg-tertiary);
    border-color: #444;
}
.faq-item[open] .faq-icon-plus::after { transform: rotate(90deg) scale(0); }
.faq-item[open] .faq-icon-plus::before { transform: rotate(180deg); background-color: #fff; }

.faq-answer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    color: var(--faq-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   Sleek Escalation Buttons
   ========================================= */
.faq-escalation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--faq-border-color);
}

.faq-escalation-text {
    font-size: 0.85rem;
}

.faq-btn-whatsapp {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--faq-btn-wa-bg);
    text-decoration: none;
    border-radius: 50px; /* Botón tipo píldora */
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq-btn-whatsapp:active {
    transform: scale(0.95);
}

/* =========================================
   Mobile Optimization (Compact & Clean)
   ========================================= */
@media screen and (max-width: 600px) {
    .faq-module {
        padding: 1.5rem 1rem;
        border-radius: 0; /* Sin bordes redondeados si ocupa toda la pantalla */
        box-shadow: none;
    }
    
    .faq-title {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem; /* Más compacto */
    }
    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.9rem;
    }

    /* En móvil, los botones de WhatsApp pasan abajo */
    .faq-escalation {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .faq-btn-whatsapp {
        text-align: center;
        width: 100%;
        padding: 0.8rem;
    }
}