/* Paleta de colores optimizada */
:root {
    --bg-main: #0f172a;        /* Fondo oscuro base */
    --bg-card: #1e293b;        /* Fondo de tarjetas ligeramente más claro */
    --azul: #4353ff;           /* Botones principales y acentos */
    --rojo: #FF6D65;           /* Elementos de atención o bordes específicos */
    --verde: #45DDB8;          /* Éxito, flujos o elementos destacados */
    --gris: #e2e5eb;           /* Texto principal (alto contraste) */
    --gris-mutado: #94a3b8;    /* Texto secundario */
}

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--gris);
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Evita que el header fijo tape el contenido */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0 60px 0; border-bottom: 1px solid #334155; }

/* Navbar Superior Fijo */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #334155;
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--azul); }
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-links a {
    color: var(--gris-mutado);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #fff;
}
.nav-btn {
    background: var(--azul);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
}
.nav-btn:hover {
    background: #3242e3;
}

/* Botón de Idioma */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gris-mutado);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 6px 12px;
    border: 1px solid #334155;
    border-radius: 4px;
    transition: all 0.2s;
}
.lang-btn:hover {
    color: #fff;
    border-color: var(--gris-mutado);
    background-color: rgba(255, 255, 255, 0.05);
}
.lang-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

/* Hero Section Rediseñado */
.hero {
    position: relative;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 80% 20%, rgba(67, 83, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(69, 221, 184, 0.08) 0%, transparent 40%);
    padding: 100px 0;
    border-bottom: 2px solid var(--verde);
    box-shadow: inset 0 -100px 100px -100px rgba(69, 221, 184, 0.1);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content {
    text-align: left;
}
.hero h1 {
    font-size: 2.8rem;
    color: #fff;
    margin: 20px 0;
    line-height: 1.2;
}
.cintillo {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--verde);
    margin-bottom: 10px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-screenshot {
    background: black;
    border: 1px solid #334155;
    height: 380px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gris-mutado);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(67, 83, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.hero-carousel {
    position: relative;
    width: 90%;
    height: 100%;
}
.hero-carousel-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-carousel-img.active {
    opacity: 1;
}

/* Componentes de Grid y Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(45%, 1fr)); gap: 30px; margin-top: 30px; }
.card { padding: 25px; border: 1px solid #334155; border-radius: 8px; background: var(--bg-card); transition: border-color 0.3s; }
.card:hover { border-color: var(--azul); }
.card h3 { margin-top: 15px; color: #fff; }
.card-icon { font-size: 2rem; }

/* Variaciones de bordes/iconos para destacar flujos */
.border-azul { border-top: 4px solid var(--azul); }
.border-rojo { border-top: 4px solid var(--rojo); }
.border-verde { border-top: 4px solid var(--verde); }
.border-gris { border-top: 4px solid var(--gris-mutado); }

/* Botones */
.btn { display: inline-block; background: var(--azul); color: #fff; padding: 14px 28px; text-decoration: none; border-radius: 6px; font-weight: bold; border: none; cursor: pointer; transition: background 0.2s; }
.btn:hover { background: #3242e3; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--azul); }

/* Formularios */
.form-container { background: var(--bg-card); padding: 40px; border-radius: 12px; border: 1px solid #334155; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--gris); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; background: var(--bg-main); border: 1px solid #475569; border-radius: 6px; color: #fff; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--azul); outline: none; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--rojo); }
.field-error-msg { display: block; color: var(--rojo); font-size: 0.85rem; margin-top: 6px; min-height: 1.2em; }
.turnstile-group { text-align: center; }
.turnstile-group.has-error .cf-turnstile { outline: 2px solid var(--rojo); outline-offset: 4px; border-radius: 4px; }

/* FAQ */
.faq-section { max-width: 750px; margin: 0 auto; }
.faq-list { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--azul); }
.faq-item summary {
    padding: 18px 20px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--azul);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--gris); }
.faq-answer {
    padding: 0 20px 18px;
    color: var(--gris-mutado);
    line-height: 1.6;
    border-top: 1px solid #334155;
}
.faq-answer p { margin: 16px 0 0; }

/* Sección imagen + texto */
.section-heading {
    text-align: center;
    color: #fff;
    margin: 0 0 40px;
}
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.split-image {
    background: black;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(67, 83, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    min-height: 280px;
}
.split-image img {
    display: block;
    width: auto;
    max-width: 70%;
    max-height: 320px;
    height: auto;
}
.split-content {
    color: var(--gris-mutado);
    font-size: 1.05rem;
    line-height: 1.7;
}
.split-content p { margin: 0 0 16px; }
.split-content p:last-child { margin-bottom: 0; }

/* Lista de distribuidores */
.distributors-list { list-style: none; padding: 0; margin: 15px 0 0 0; }
.distributor-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #1e293b; }
.distributor-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.distributor-country { font-weight: bold; color: #fff; font-size: 0.95rem; margin-bottom: 10px; display: block; }
.distributor-entries { display: flex; flex-direction: column; gap: 16px; }
.distributor-details { font-size: 0.85rem; color: var(--gris-mutado); line-height: 1.5; }
.distributor-entries .distributor-details { padding: 12px; background: rgba(0, 0, 0, 0.2); border-radius: 6px; border: 1px solid #1e293b; }
.distributor-details i { width: 16px; margin-right: 4px; color: var(--azul); }
.distributor-details a { color: var(--gris-mutado); text-decoration: none; }
.distributor-details a:hover { color: #fff; text-decoration: underline; }

/* Footer y Navegación Inferior */
footer { background: #020617; color: var(--gris-mutado); padding: 60px 0; font-size: 0.9rem; border-top: 1px solid #1e293b; }
footer h3 { color: #fff; margin-top: 0; }
footer a { color: var(--verde); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}
.distributors-list-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}

.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 12px; color: var(--gris-mutado); }
.footer-links-list a { color: var(--gris-mutado); text-decoration: none; transition: color 0.2s; }
.footer-links-list a:hover { color: #fff; }
.footer-links-list i { width: 20px; color: var(--azul); }
.footer-subsection-title { margin-top: 28px; }

/* WhatsApp Móvil */
.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background: #25D366; color: white; padding: 15px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); display: none; z-index: 1000; }
.whatsapp-float i { margin-right: 8px; }

/* Responsivo */
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid #334155;
        padding: 8px 20px 16px;
        z-index: 999;
    }
    .navbar.nav-open .nav-links { display: flex; }
    .nav-links li { padding: 12px 0; border-bottom: 1px solid #334155; }
    .nav-links li:last-child { border-bottom: none; padding-bottom: 4px; }
    .nav-links a { display: block; }
    .grid-two { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero-content { text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .split-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .distributors-list-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .whatsapp-float { display: block; }
}
