:root {
    --bg-color: #0a0a0f;
    --primary: #7c3aed; /* Púrpura eléctrico */
    --secondary: #06b6d4; /* Cyan brillante */
    --success: #10b981; /* Verde éxito */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(124, 58, 237, 0.3);
    --wa-color: #25d366;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}
*[id] { scroll-margin-top: 85px; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-3d-luminous {
    color: #ffffff;
    text-shadow: 
        0 0 10px #06b6d4,
        0 0 20px #06b6d4,
        0 0 30px #3b82f6,
        0 4px 0px #1e3a8a,
        0 8px 10px rgba(0,0,0,0.8);
    display: block;
    margin: 20px auto;
    text-align: center;
}
.text-center { text-align: center; }

/* Botones */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 20px var(--secondary); transform: translateY(-2px); }
.btn-wa { background: var(--wa-color); color: #0a0a0f; font-weight: bold; }
.btn-wa:hover { box-shadow: 0 0 20px var(--wa-color); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--text-main); }
.btn-outline:hover { background: rgba(124, 58, 237, 0.1); }
.full-w { width: 100%; }

.glow-effect { animation: pulseGlow 2s infinite alternate; }
@keyframes pulseGlow {
    from { box-shadow: 0 0 5px var(--primary); }
    to { box-shadow: 0 0 20px var(--secondary); }
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(12px);
    z-index: 1000; border-bottom: 1px solid var(--card-border);
}
.navbar img { height: 40px; }
.nav-actions { display: flex; align-items: center; gap: 15px; }

/* Convertidor */
.currency-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: bold; }
/* Toggle de moneda siempre visible en móvil (fuera del menú hamburguesa) */
.currency-switch-mobile { display: none; align-items: center; gap: 5px; }

/* Submenús desplegables (Diseño Web / Crecimiento de Redes) */
.has-dropdown { position: relative; display:flex; align-items:center; }
.has-dropdown .caret { display:inline-block; margin-left:4px; font-size:.7em; cursor:pointer; user-select:none; }
.dropdown-menu {
    display:none; position:absolute; top:100%; left:0; padding-top:10px;
    min-width:230px; z-index:1001;
}
.dropdown-menu > .dropdown-menu-inner {
    background:#0d1424; border:1px solid var(--card-border); border-radius:12px;
    padding:8px; box-shadow:0 25px 50px -12px rgba(0,0,0,.65);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display:block; }
.dropdown-menu a {
    display:block; padding:10px 12px; color:#fff; text-decoration:none;
    font-size:.88rem; font-weight:500; border-radius:7px; white-space:nowrap;
    text-align:left;
}
.dropdown-menu a:hover { background:rgba(124,58,237,.15); color:var(--secondary); }
@media (max-width:768px) {
    .has-dropdown {
        display: block !important;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    .has-dropdown > a {
        display: inline-block;
        width: 100%;
        padding: 10px 0 !important;
    }
    .dropdown-menu {
        position:static; display:none; padding: 4px 0; min-width:0;
        width: 100%;
    }
    .dropdown-menu > .dropdown-menu-inner {
        background:rgba(255,255,255,0.02); border:none; box-shadow:none; padding: 5px 0;
    }
    .dropdown-menu a {
        text-align: center !important;
        padding: 10px 0 !important;
        font-size: 0.95rem;
    }
    .has-dropdown.open .dropdown-menu { display:block; }
    .has-dropdown:hover .dropdown-menu { display:none; }
    .has-dropdown.open:hover .dropdown-menu { display:block; }
    .currency-switch-mobile { display: flex; }
}
.cur-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); transition: color 0.3s; }
.cur-active { color: var(--secondary) !important; }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--primary); border-radius: 20px; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: .4s; }
input:checked + .slider { background-color: var(--secondary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Hero */
.hero {
    margin-top: 80px; padding: 100px 5% 60px; text-align: center;
    background: radial-gradient(circle at top center, rgba(124, 58, 237, 0.25) 0%, var(--bg-color) 70%);
}
.badge { display: inline-block; padding: 6px 18px; background: rgba(16, 185, 129, 0.15); color: var(--success); border-radius: 20px; font-size: 14px; font-weight: bold; margin-bottom: 25px; border: 1px solid rgba(16, 185, 129, 0.4); }
.pulse-badge { animation: badgePulse 2s infinite; display: block; margin: 0 auto 20px; width: max-content; }
@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 650px; margin: 0 auto 35px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.trust-badges { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }

/* Medios Principales Hero (Video e Imagen) */
.hero-media-container {
    margin-top: 50px;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Forzar ancho completo (full bleed) */
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #000;
}
/* Video Principal bajo el título */
.hero-video {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(124,58,237,0.3);
    margin: 30px auto;
    display: block;
    background: #050508;
}
.urgency-bar { background: rgba(124,58,237,0.1); border-top: 1px solid var(--primary); border-bottom: 1px solid var(--primary); padding: 10px 0; overflow: hidden; }
.ticker-wrap { width: 100%; box-sizing: content-box; }
.ticker-move { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-item { padding: 0 40px; font-size: 1rem; font-weight: 700; color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.ticker-item img { height: 24px; width: auto; object-fit: contain; }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

/* TABS Y TARJETAS (Restauración de las imágenes) */
.tabs-section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; margin-bottom: 15px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 50px; }

.tabs-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 12px 25px; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.tab-btn:hover { background: rgba(124,58,237,0.2); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 15px var(--primary); }

.tab-content { display: none; animation: fadeIn 0.5s ease-in-out; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Banners Structure */
.main-banner-card { position: relative; border-radius: 15px; overflow: hidden; margin-bottom: 30px; border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.main-banner-card img { width: 100%; height: auto; display: block; }
.pricing-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.7) 100%); padding: 25px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 15px; }
.pricing-overlay h3 { font-size: 1.5rem; margin: 0; }
.price-tag { font-size: 1.8rem; font-weight: 900; color: var(--secondary); text-shadow: 0 0 10px rgba(6,182,212,0.5); }
.badge-premium-absolute {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 0 #b45309, 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}
.badge-premium-absolute::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 30%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: badgeShine 3s infinite linear;
}
@keyframes badgeShine {
    0% { left: -100%; }
    30% { left: 200%; }
    100% { left: 200%; }
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.highlight-card { grid-column: 1 / -1; }
.banner-card { background: var(--card-bg); border-radius: 15px; overflow: hidden; border: 1px solid var(--card-border); transition: transform 0.3s; display: flex; flex-direction: column; }
.banner-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(124,58,237,0.2); }
.banner-img { width: 100%; height: auto; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); aspect-ratio: 16/9; }
.banner-info { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 15px; }

/* Testimonials Slider (Rediseñado con Estrellas y Avatares) */
.testimonials-slider-section { padding: 80px 0; background: radial-gradient(circle at center, rgba(6,182,212,0.1) 0%, var(--bg-color) 70%); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.slider-container { width: 100vw; overflow: hidden; margin-top: 20px; }
.slider-track { display: flex; gap: 25px; width: max-content; padding: 20px 0; animation: scrollLeft 45s linear infinite; }
.slider-container:hover .slider-track, .slider-container:active .slider-track { animation-play-state: paused; }
/* Slider infinito: 5 items × (380px + 25px gap) = 2025px exactos para loop sin salto */
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-2025px); } }

.testimonial-item {
    width: 380px; background: rgba(255,255,255,0.05); padding: 30px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); position: relative; white-space: normal;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-item:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(6,182,212,0.2); border-color: var(--secondary); }

.test-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.test-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.test-meta { display: flex; flex-direction: column; }
.test-name { font-size: 1.1rem; color: #fff; margin-bottom: 2px; }
.flag { font-size: 0.9rem; color: var(--text-muted); }
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 15px; letter-spacing: 2px; text-shadow: 0 0 5px rgba(251,191,36,0.4); }
.test-text { font-style: italic; color: #cbd5e1; font-size: 0.95rem; line-height: 1.7; }

/* FAQ Accordion */
.faq-section { padding: 80px 5%; max-width: 900px; margin: 0 auto; }
.faq-accordion details { background: var(--card-bg); border: 1px solid var(--card-border); margin-bottom: 15px; border-radius: 10px; overflow: hidden; transition: all 0.3s; }
.faq-accordion details[open] { border-color: var(--secondary); box-shadow: 0 5px 20px rgba(6,182,212,0.15); }
.faq-accordion summary { padding: 25px; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; outline: none; display: flex; justify-content: space-between; color: #fff; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-content { padding: 0 25px 25px; color: var(--text-muted); font-size: 1rem; line-height: 1.7; border-top: 1px solid rgba(255,255,255,0.05); margin-top: -5px; padding-top: 15px; }

/* Formspree Modal Rediseñado */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 2000; justify-content: center; align-items: center; }
.glass-modal { background: rgba(15, 15, 20, 0.95); border: 1px solid var(--primary); border-radius: 20px; padding: 40px; width: 90%; max-width: 450px; box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(124,58,237,0.2); position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 30px; cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: #fff; }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: #cbd5e1; }
.form-group input { width: 100%; padding: 14px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus { border-color: var(--secondary); box-shadow: 0 0 10px rgba(6,182,212,0.2); }

/* Corrección estricta del Dropdown */
.select-wrapper { position: relative; }
.select-wrapper::after { content: "▼"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 0.8rem; }
.custom-select { 
    appearance: none; -webkit-appearance: none; width: 100%; padding: 14px; 
    background-color: #1a1a24; /* Fondo oscuro sólido para legibilidad */
    border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; 
    color: #ffffff; /* Texto blanco puro */
    font-size: 1rem; font-weight: 600; outline: none; cursor: pointer; 
    transition: all 0.3s; 
}
.custom-select:focus { border-color: var(--secondary); box-shadow: 0 0 10px rgba(6,182,212,0.3); }
.custom-select optgroup { background-color: #111; color: var(--secondary); font-weight: bold; font-style: normal; }
.custom-select option { background-color: #1a1a24; color: #ffffff; font-weight: normal; padding: 10px; }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 60px 5% 30px; background: linear-gradient(180deg, var(--bg-color) 0%, #050508 100%); }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-logo p { color: var(--text-muted); font-size: 0.95rem; max-width: 320px; margin-top: 20px; line-height: 1.6; }
.footer-contact h4 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-contact a { display: block; color: #cbd5e1; text-decoration: none; margin-bottom: 12px; font-size: 0.95rem; transition: color 0.3s; }
.footer-contact a:hover { color: var(--secondary); }
.footer-bottom { text-align: center; margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom a { color: var(--secondary); text-decoration: none; }

/* Responsive */
.hamburger { display: none; }

@media (max-width: 768px) {
    .nav-actions { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: rgba(10,10,15,0.95); 
        padding: 20px; 
        border-bottom: 1px solid var(--card-border);
    }
    .nav-actions.active { display: flex; }
    .hamburger { display: block; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
    /* Toggle de moneda visible sin abrir el menú */
    .currency-switch-mobile { display: flex; align-items: center; gap: 5px; }
    /* Ocultar el toggle duplicado dentro del menú desplegable en móvil */
    .nav-actions .currency-switch { display: none; }
    .hero h1 { font-size: 2.2rem; }
    /* Mobile: 5 items × (300px + 25px gap) = 1625px exactos */
    @keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-1625px); } }
    .slider-track { animation: scrollLeft 30s linear infinite; }
    .testimonial-item { width: 300px; padding: 20px; }
    .pricing-overlay { position: static; flex-direction: column; align-items: stretch; text-align: center; background: rgba(10,10,15,0.5); }
    .badge-premium-absolute { top: 10px; right: 10px; }
}

/* Botones 3D Pequeños en el Navbar */
.btn-nav-3d {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.3s;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}
.btn-nav-3d img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin: 0;
    opacity: 1 !important;
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.3)) !important;
}
.btn-nav-telegram {
    background: #229ED9;
    box-shadow: 0 3px 0 #18729c;
}
.btn-nav-telegram:hover {
    background: #2cb5f6;
}
.btn-nav-telegram:active {
    transform: translateY(3px);
    box-shadow: none;
}
.btn-nav-whatsapp {
    background: #25D366;
    box-shadow: 0 3px 0 #1a9648;
}
.btn-nav-whatsapp:hover {
    background: #30e878;
}
.btn-nav-whatsapp:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* Efecto reflejo al tocar / hover */
.btn-nav-3d::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 20%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
}
.btn-nav-3d:hover::after, .btn-nav-3d:active::after {
    left: 150%;
    transition: left 0.6s ease-in-out;
}

/* Evitar estiramiento y corte de imágenes - Proporción 16:9 unificada */
.banner-card .banner-img {
    width: 100%;
    height: auto;
    display: block;
    background: #090e18;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.banner-card {
    display: flex;
    flex-direction: column;
    background: #0d1424;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.banner-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* Fix Responsive para Grillas y visualización móvil */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    .services-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-media-container {
        margin-top: 30px;
    }
    .hero-video {
        width: 90% !important;
        margin: 15px auto !important;
    }
}


