/* =========================================
   1. CORE: VARIABLES & RESET (APPLE STYLE)
   ========================================= */
:root {
    /* Fondos */
    --bg-color: #ffffff;
    --bg-secondary: #F5F5F7; /* El clásico "Apple Gray" */
    
    /* Tipografía */
    --text-main: #1d1d1f;    /* Negro suave de Apple */
    --text-secondary: #86868b; /* Gris medio para subtítulos */
    --text-muted: #a1a1a6;
    
    /* Branding */
    --accent-purple: #862359;
    --accent-green: #B7B932;
    --primary: #1d1d1f;
    --primary-text: #ffffff;
    
    /* UI System - Apple Vibes */
    --border-color: rgba(0, 0, 0, 0.08); /* Bordes casi invisibles */
    --radius-s: 12px;
    --radius-m: 20px;
    --radius-l: 30px;
    
    /* Sombras */
    --shadow-s: 0 2px 8px rgba(0, 0, 0, 0.04); 
    --shadow-l: 0 15px 30px rgba(0, 0, 0, 0.08);
    
    /* Layout */
    --container-width: 1080px; 
    --header-height: 54px; 
    --font-main: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1); 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.47;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Tipografía "Display" */
h1, h2, h3, h4 { 
    font-weight: 600; 
    margin-bottom: 0.5em; 
    letter-spacing: -0.03em;
    color: var(--text-main);
}

h1 { font-size: clamp(40px, 8vw, 80px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; }
h3 { font-size: 24px; line-height: 1.16; font-weight: 600; }

p { margin-bottom: 1.2em; color: var(--text-secondary); font-weight: 400; }

a { text-decoration: none; color: inherit; transition: all 0.2s; }
img, video { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. NAVBAR (GLASSMORPHISM)
   ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease;
    display: flex; align-items: center;
}
.navbar.scrolled { border-bottom: 1px solid rgba(0,0,0,0.1); }

.nav-container { 
    display: flex; justify-content: space-between; align-items: center; 
    max-width: 1000px; width: 100%; margin: 0 auto; padding: 0 20px;
}

.logo-img { 
    height: 40px; 
    width: auto; 
    opacity: 1; 
    transition: opacity 0.2s; 
}
.logo-img:hover { opacity: 0.8; }

.desktop-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { 
    color: var(--text-main); font-size: 12px; font-weight: 400; opacity: 0.8; transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; color: var(--accent-purple); }

.nav-cta-btn { 
    padding: 6px 14px; background-color: var(--primary); color: white; 
    border-radius: 100px; font-size: 12px; font-weight: 500; border: none; cursor: pointer; transition: transform 0.2s; 
}
.nav-cta-btn:hover { transform: scale(1.05); }

/* Dropdown Desktop */
.nav-dropdown-wrapper { position: relative; padding: 15px 0; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-list {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff; min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 12px; padding: 6px;
    opacity: 0; visibility: hidden;
    transition: all 0.2s var(--ease-smooth);
}
.nav-dropdown-wrapper:hover .nav-dropdown-list { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-item { display: block; padding: 8px 12px; font-size: 13px; color: var(--text-main); border-radius: 6px; }
.nav-dropdown-item:hover { background: var(--bg-secondary); color: var(--accent-purple); }

/* Mobile Trigger */
.menu-trigger { display: none; background: transparent; border: none; font-size: 20px; cursor: pointer; color: var(--text-main); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section { 
    height: 90vh; padding-top: var(--header-height); 
    display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center;
}
.hero-content { max-width: 760px; margin: 0 auto; }
.eyebrow { 
    display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--accent-purple); margin-bottom: 16px; text-transform: uppercase;
}
.hero-title { margin-bottom: 24px; }
.hero-sub {
    font-size: 21px; line-height: 1.4; font-weight: 400; color: var(--text-main); 
    max-width: 600px; margin: 0 auto 32px;
}
.accent-text { 
    background: linear-gradient(90deg, #862359, #B7B932);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Botones */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    gap: 8px; padding: 12px 24px; border-radius: 100px; 
    font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s var(--ease-smooth); text-decoration: none;
}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { opacity: 0.9; transform: scale(1.02); }
/* --- BOTÓN SECUNDARIO (Borde Gradiente) --- */
.btn-secondary { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 12px 28px; /* Mismo tamaño que el primario */
    border-radius: 100px; /* Forma ovalada */
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s var(--ease-smooth); 
    text-decoration: none;
    
    background: transparent; /* Fondo transparente */
    color: var(--text-main); /* Texto oscuro para legibilidad */
    position: relative;
    border: none; /* Quitamos bordes estándar */
    z-index: 1;
}

/* El truco del Borde Gradiente usando una máscara */
.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 100px; 
    padding: 2px; /* Ancho del borde (4px solicitado) */
    
    /* El mismo degradado de PRIME */
    background: linear-gradient(90deg, #862359, #B7B932); 
    
    /* Máscara para dejar solo el borde visible */
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude; 
            
    pointer-events: none; /* Para que no interfiera con el click */
}

/* Efecto Hover */
.btn-secondary:hover { 
    transform: scale(1.02); 
    text-decoration: none;
    opacity: 0.8; /* Sutil brillo al pasar el mouse */
}
.link-text { color: var(--accent-purple); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link-text:hover { text-decoration: underline; }

/* Video Background */
.video-background { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.92); }

/* =========================================
   4. BENTO GRIDS
   ========================================= */
.section { padding: 120px 0; }
.bg-gray { background-color: var(--bg-secondary); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; width: 100%; }

.services-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 24px; margin-top: 60px; 
}
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.service-card {
    background: white; border-radius: var(--radius-l); overflow: hidden;
    padding: 0; box-shadow: var(--shadow-s);
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: scale(1.02); box-shadow: var(--shadow-l); z-index: 2; }

.card-image {
    width: 100%; aspect-ratio: 16/10; background: #f0f0f0; position: relative; overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.service-card:hover .card-image img { transform: scale(1.05); }

.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.card-content h3 { font-size: 24px; margin-bottom: 10px; margin-top: 0; }
.card-content p { font-size: 15px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 20px; }

/* Icono Circular */
/* Icono Circular Base */
.icon-circle {
    width: 64px; height: 64px;
    background: var(--bg-secondary); /* Color por defecto (gris) */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--text-main); /* Color por defecto (negro) */
    transition: all 0.3s ease;
}

/* --- NUEVOS COLORES DE ACENTO --- */

/* Estilo Morado (Tu color principal) */
.icon-circle.accent-purple {
    background: rgba(134, 35, 89, 0.1); /* Fondo morado muy suave (10% opacidad) */
    color: var(--accent-purple);        /* Icono morado sólido */
}

/* Estilo Verde (Tu color secundario) */
.icon-circle.accent-green {
    background: rgba(183, 185, 50, 0.15); /* Fondo verde suave (15% opacidad) */
    color: var(--accent-green);           /* Icono verde sólido */
}

/* Opcional: Efecto Hover para que brillen un poco más al pasar el mouse */
.service-card:hover .icon-circle.accent-purple {
    background: rgba(134, 35, 89, 0.2); 
}
.service-card:hover .icon-circle.accent-green {
    background: rgba(183, 185, 50, 0.25);
}

/* =========================================
   5. PRICING
   ========================================= */
.pricing-toggle-wrapper { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 40px 0; }
.toggle-label { font-size: 15px; font-weight: 500; cursor: pointer; }
.toggle-label.active { color: var(--text-main); }
.save-badge { font-size: 10px; font-weight: 700; color: #cc4f10; background: #ffece6; padding: 2px 6px; border-radius: 4px; margin-left: 5px; text-transform: uppercase; vertical-align: middle; }

.switch { position: relative; width: 50px; height: 30px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background-color: #e5e5e5; border-radius: 34px; transition: .3s; cursor: pointer; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: .3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: #34c759; }
input:checked + .slider:before { transform: translateX(20px); }

.price-wrapper .amount { font-size: 48px; letter-spacing: -0.03em; color: var(--text-main); }
.best-value-badge { background: linear-gradient(90deg, #862359, #B7B932); padding: 6px 12px; color: white; font-size: 11px; letter-spacing: 0.5px; }

/* Visibility Logic */
.monthly-mode .price-annual { display: none; }
.monthly-mode .price-monthly { display: block; }
.annual-mode .price-monthly { display: none; }
.annual-mode .price-annual { display: block; }

/* =========================================
   6. FOOTER
   ========================================= */
.footer { background: var(--bg-secondary); padding: 80px 0 40px; border-top: 1px solid var(--border-color); font-size: 12px; }
.footer-main-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-main); margin-bottom: 20px; }
.footer-links a { display: block; color: var(--text-secondary); margin-bottom: 10px; transition: 0.2s; }
.footer-links a:hover { text-decoration: underline; color: var(--text-main); }
.subscribe-form input { background: white; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 14px; width: 100%; font-size: 13px; }
.subscribe-form button { background: var(--primary); color: white; border: none; border-radius: 8px; width: 40px; cursor: pointer; }
.socials-large { display: flex; gap: 16px; margin-top: 24px; font-size: 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-muted); }

/* =========================================
   7. MODAL & UTILS
   ========================================= */
.modal-overlay { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); z-index: 2000; position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { background: #fff; border-radius: var(--radius-m); box-shadow: 0 20px 60px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); width: 90%; max-width: 500px; padding: 40px; transform: translateY(20px); transition: 0.3s; }
.modal-overlay.active .modal-container { transform: translateY(0); }

/* Inputs Form */
.input-field { width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid var(--border-color); background: transparent; font-family: inherit; font-size: 1rem; color: var(--text-main); border-radius: 0; }
.input-field:focus { outline: none; border-bottom-color: var(--text-main); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal-footer { margin-top: 30px; display: flex; justify-content: flex-end; gap: 10px; }
.progress-bar { height: 4px; background: #eee; margin: 20px 0; }
.progress-fill { height: 100%; background: var(--text-main); width: 25%; transition: width 0.3s; }
.modal-header { position: relative; }
.modal-close { position: absolute; right: 0; top: 0; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Animaciones */
.fade-up { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* Mobile Nav Dropdown */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); flex-direction: column; }
.dropdown-menu.active { display: flex; }
.dropdown-link { padding: 14px 0; border-bottom: 1px solid var(--border-color); font-size: 17px; }
.mobile-label { padding: 10px 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin-top: 8px; }
.mobile-sublink { padding-left: 32px !important; position: relative; }
.mobile-sublink::before { content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 1px; background: var(--border-color); }
.divider { height: 1px; background: var(--border-color); margin: 8px 0; }

/* =========================================
   8. TESTIMONIOS (SWIPER)
   ========================================= */
.testimonial-slider { 
    padding: 60px 0 80px; 
    overflow: hidden; 
    position: relative; 
    background: transparent;
}
.testimonial-slide { 
    width: 100%; height: auto; opacity: 0; transition: opacity 0.4s ease; display: flex; justify-content: center;
}
.swiper-slide-active { opacity: 1; }
.testimonial-content { max-width: 800px; text-align: center; padding: 0 20px; }
blockquote { 
    font-size: clamp(24px, 4vw, 32px); font-weight: 600; line-height: 1.2; 
    color: var(--text-main); text-align: center; margin: 0 auto 40px; letter-spacing: -0.02em;
}
.author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-s); }
.author-info strong { display: block; font-size: 15px; font-weight: 600; color: var(--text-main); }
.author-info span { font-size: 13px; color: var(--text-secondary); }
.swiper-pagination-bullet { background: var(--text-muted); opacity: 0.3; width: 8px; height: 8px; transition: all 0.3s; }
.swiper-pagination-bullet-active { background: var(--text-main); opacity: 1; transform: scale(1.2); }

/* =========================================
   9. MARQUEE (LOGOS INFINITOS)
   ========================================= */
.marquee-section { 
    padding: 40px 0; 
    overflow: hidden; 
    background: var(--bg-color); 
    border-bottom: 1px solid var(--border-color);
}
.marquee-track { 
    display: flex; width: 100%; 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}
.marquee-content { 
    display: flex; gap: 80px; animation: scroll 40s linear infinite; min-width: 100%; align-items: center;
}
.marquee-content img { height: 32px; opacity: 0.4; filter: grayscale(100%); transition: all 0.3s ease; }
.marquee-content img:hover { opacity: 1; filter: grayscale(0%); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================
   10. ANIMATIONS (FLOATING ROBOT & FADE)
   ========================================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating-robot {

    max-height: 65vh; /* Ocupa el 65% de la altura de la pantalla como máximo */
    width: auto;
    max-width: 100%;
    
    /* Animación de flotar */
    animation: float 6s ease-in-out infinite;

    /* Efecto Fade Inferior */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* =========================================
   11. RESPONSIVE MOBILE (CONSOLIDADO)
   ========================================= */
@media (max-width: 768px) {
    /* Navbar */
    .desktop-nav { display: none; }
    .menu-trigger { display: block; }
    
    /* Grid & Layout General */
    .grid-2-col { display: flex; flex-direction: column; gap: 40px; }
    .footer-main-grid, .services-grid { grid-template-columns: 1fr; gap: 40px; }
    .marquee-content { gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    /* HERO: Centrado Perfecto */
    .hero-section {
        height: auto;
        min-height: 85dvh;
        padding-top: 100px;
        padding-bottom: 60px;
        align-items: center;
    }

    .hero-slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-content: center;
    }

    /* Títulos Móviles Ajustados */
    .hero-title { 
        font-size: 36px !important; 
        line-height: 1.1;
    }
    
    .hero-sub { 
        font-size: 18px !important; 
        margin-bottom: 24px !important;
    }

    /* Centrado Forzoso de Elementos Hero */
    .hero-content, 
    .hero-text-wrapper { 
        text-align: center !important; 
        margin: 0 auto;
        width: 100%;
    }

    .hero-text-wrapper > div { 
        justify-content: center !important; 
    }

    /* Robot OCULTO en Móvil */
    .hero-image-wrapper, .floating-robot {
        display: none !important;
    }
}
/* --- VIDEO WRAPPER CON BORDES REDONDEADOS FORZADOS --- */
.video-wrapper {
    border-radius: 24px; /* Radio visible */
    overflow: hidden;    /* Obligatorio para recortar */
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-l);
    position: relative;
    background: black;   /* Fondo mientras carga */
    
    /* TRUCOS PARA FORZAR EL RECORTE EN IFRAMES */
    transform: translateZ(0); /* Fuerza aceleración de hardware */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix para Safari/Chrome */
}

/* Aseguramos que el iframe llene el espacio sin salirse */
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =========================================
   WIDGET FORM INTERACTIVO
   ========================================= */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 12px;
    margin-top: 16px;
}

.widget-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.widget-card:hover {
    border-color: var(--accent-purple);
    background: var(--bg-secondary);
}

.widget-card.selected {
    border-color: var(--accent-purple);
    background: rgba(134, 35, 89, 0.05);
    box-shadow: 0 0 0 2px var(--accent-purple); /* Anillo de foco */
}

.widget-card i {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.widget-card.selected i {
    color: var(--accent-purple);
}

.widget-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Ajuste para el input de texto normal dentro del widget */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }

/* Checkbox oculto para lógica interna */
.hidden-radio { display: none; }

/* =========================================
   GOOGLE TRANSLATE NATIVE SKIN (Apple Style)
   ========================================= */

/* 1. Contenedor Principal */
.nav-translate {
    display: flex;
    align-items: center;
    margin: 0 12px;
    position: relative;
    z-index: 1001; /* Asegura que esté sobre el contenido */
}

/* 2. Ocultar la barra azul superior de Google */
body { top: 0 !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; } 

/* 3. Estilizar el Botón Disparador (La Píldora) */
.goog-te-gadget-simple {
    background-color: rgba(0, 0, 0, 0.05) !important; /* Gris Apple suave */
    border: none !important;
    border-radius: 100px !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: var(--font-main) !important;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.02);
}

/* 4. Limpieza Interna (Ocultar basura de Google) */
.goog-te-gadget-icon { display: none !important; } /* Adiós logo Google */
.goog-te-gadget-simple img { display: none !important; } /* Adiós imagenes extra */

/* 5. Texto del Idioma */
.goog-te-gadget-simple span {
    color: var(--text-main) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important; /* EJ: ES, EN */
    letter-spacing: 0.5px !important;
}

/* Ocultar las barras separadoras "|" que pone Google */
.goog-te-gadget-simple span[style*="border-left"] {
    display: none !important;
}

/* 6. Añadir Icono de Mundo (Globe) Automático */
.goog-te-gadget-simple::before {
    content: ""; /* Si tienes Phosphor Icons cargado, podrías intentar content: "\e9ca"; font-family: "Phosphor"; */
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Ccircle cx='128' cy='128' r='96' fill='none' stroke='%231d1d1f' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='37.5' y1='96' x2='218.5' y2='96' fill='none' stroke='%231d1d1f' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cline x1='37.5' y1='160' x2='218.5' y2='160' fill='none' stroke='%231d1d1f' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3Cellipse cx='128' cy='128' rx='40' ry='93' fill='none' stroke='%231d1d1f' stroke-linecap='round' stroke-linejoin='round' stroke-width='16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* 7. Ajustar el Menú Desplegable (Dropdown) */
.goog-te-menu-value { margin: 0 !important; }
.goog-te-menu-value span:first-child { margin-right: 0 !important; }

/* Forzar que el menú flotante sea más limpio */
.goog-te-menu-frame {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* Móvil */
@media (max-width: 768px) {
    .nav-translate {
        margin: 10px auto;
        justify-content: center;
    }
}

/* =========================================
   NATIVE LANGUAGE SWITCHER (APPLE STYLE)
   ========================================= */
.lang-switch-wrapper {
    position: relative;
    margin: 0 12px;
    z-index: 1000;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 100px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
    color: var(--text-main);
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.lang-btn span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 140px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 6px;
    
    /* Estado inicial: oculto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.lang-item:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.lang-item.active {
    color: var(--accent-purple);
    font-weight: 600;
    background: rgba(134, 35, 89, 0.05);
}

/* Ajuste Móvil */
@media (max-width: 768px) {
    .lang-switch-wrapper { margin: 10px auto; display: inline-block; }
    .lang-menu { left: 50%; right: auto; transform: translateX(-50%) translateY(10px); }
    .lang-menu.active { transform: translateX(-50%) translateY(0); }
}