/* ---- Variables de Paleta y Tipografía ---- */
:root {
  --color-dark: #0a0a0a;
  --color-green-light: #00ff7f;
  --color-green-primary: #00cc00;
  --color-gray: #b0b0b0;
  --font-primary: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    background-color: var(--color-dark);
    color: #ffffff;
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background-color: rgba(10, 10, 10, 0.8);
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-green-light);
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* ---- Estilos para el Video de Fondo Fijo ---- */
.background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    background-size: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.6);
    z-index: -99;
}


/* ---- Estilos para el Encabezado (Header) ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 100, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 30px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-green-light);
}

.lang-switcher a {
    color: var(--color-gray);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.lang-switcher .active {
    color: var(--color-green-light);
}


/* ---- Estilos para la Sección Principal (Hero) ---- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
}

/* ESTILOS ESPECÍFICOS PARA PC */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-green-light);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid var(--color-green-light);
    animation: 
        typing 3.5s steps(40, end), 
        blink-caret .75s step-end infinite;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero-slogan {
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: var(--color-gray);
    font-style: italic;
    animation: slideUp 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

/* Video de Presentación y CTA para Audio */
.presentation-video-container {
    position: relative;
    width: 100%;
    max-width: 400px; 
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 255, 127, 0.3);
}

.presentation-video {
    width: 100%;
    height: auto;
    display: block;
}

.audio-cta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.audio-cta:hover {
    background-color: rgba(0, 0, 0, 0.85);
}

.audio-cta p {
    color: red;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.audio-active .audio-cta {
    display: none;
}


/* ---- Animaciones de Entrada (Existentes) ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Nuevas Animaciones de Transcripción ---- */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-green-light); }
}

/* ---- Estilos de la Cuadrícula de Desafíos ---- */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.challenge-item {
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(0, 255, 127, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-green-light);
}

.challenge-title {
    font-size: 1.5rem;
    color: var(--color-green-primary);
    margin-bottom: 15px;
}

.challenge-text {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ---- Estilos para la sección de Inteligencia Artificial ---- */
.intelligent-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.feature-item {
    background: linear-gradient(145deg, rgba(0, 204, 0, 0.1), rgba(0, 255, 127, 0.1));
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 0, 0.2);
    text-align: center;
}

.feature-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.ai-info {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.ai-info p {
    text-align: center;
}

.ai-description, .ai-comparison, .ai-risk-management {
    background-color: rgba(26, 26, 26, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 3px solid var(--color-green-primary);
}

/* ---- Estilos para la sección de Ventajas Únicas ---- */
.advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.advantage-item {
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(0, 255, 127, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-green-light);
}

.advantage-title {
    font-size: 1.5rem;
    color: var(--color-green-primary);
    margin-bottom: 15px;
}

.advantage-text {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ---- Estilos para la sección de Plug and Play ---- */
.section-description {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.plug-and-play-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.step-item {
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-green-primary);
    color: var(--color-dark);
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 2px solid var(--color-green-light);
}

/* ---- Estilos para la sección de Modelos Operacionales ---- */
.models-table {
    display: table;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    color: #fff;
}

.table-row {
    display: table-row;
    background-color: rgba(26, 26, 26, 0.5);
    border-bottom: 1px solid rgba(0, 255, 127, 0.1);
    transition: background-color 0.3s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: rgba(0, 204, 0, 0.1);
}

.table-row > div {
    display: table-cell;
    padding: 20px;
    text-align: center;
}

.table-header {
    font-weight: bold;
    color: var(--color-green-light);
    background-color: rgba(0, 204, 0, 0.2);
}

.model-name {
    font-weight: bold;
}

.table-note {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 20px;
    font-style: italic;
}

@media (max-width: 768px) {
    .models-table {
        display: block;
    }
    .table-row {
        display: block;
        margin-bottom: 20px;
    }
    .table-row > div {
        display: block;
        padding: 10px;
        text-align: center;
    }
    .table-header {
        display: none;
    }
}

/* ---- Estilos para la nueva sección de Sistema de Créditos ---- */
.credit-equivalence {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(0, 204, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--color-green-primary);
}

.gain-value, .credit-value {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: bold;
    color: var(--color-green-light);
}

.equal-sign {
    font-size: clamp(2rem, 8vw, 6rem);
    color: #fff;
}

.text {
    font-size: 1.2rem;
    color: var(--color-gray);
    text-transform: uppercase;
}

.credit-note, .credit-description, .credit-refund {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #fff;
}

.credit-note {
    font-weight: bold;
    color: var(--color-green-primary);
}

.credit-description {
    font-style: italic;
}

/* ---- Estilos para la nueva sección de Programa de Referidos VIP ---- */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.vip-level-full-width {
    max-width: 1000px;
    margin: 20px auto 50px;
    background-color: rgba(0, 204, 0, 0.1);
    border: 1px solid var(--color-green-primary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.vip-level {
    background-color: rgba(0, 204, 0, 0.1);
    border: 1px solid var(--color-green-primary);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.vip-title {
    font-size: 1.5rem;
    color: var(--color-green-light);
    font-weight: bold;
}

.referral-info {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.secondary-balance-note {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-style: italic;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vip-bonuses {
    margin-top: 60px;
}

.vip-bonuses-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-green-light);
    margin-bottom: 40px;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.bonus-item {
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(0, 255, 127, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.bonus-item:hover {
    transform: translateY(-10px);
}

.bonus-title {
    font-size: 1.2rem;
    color: var(--color-green-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.bonus-item p {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 5px;
}

/* ---- Estilos para la nueva sección de Seguridad y Acceso a Fondos ---- */
.security-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.security-item {
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(0, 255, 127, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.security-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-green-light);
}

.security-title {
    font-size: 1.5rem;
    color: var(--color-green-primary);
    margin-bottom: 15px;
}

.security-text {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ---- Estilos para la nueva sección de Disponibilidad de Brokers ---- */
.broker-text {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* ---- Estilos para la nueva sección de Llamada a la Acción ---- */
.cta-section {
    background: linear-gradient(90deg, var(--color-dark) 0%, rgba(0, 204, 0, 0.1) 50%, var(--color-dark) 100%);
    text-align: center;
    padding: 100px 20px;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-green-light);
    margin-bottom: 40px;
    line-height: 1.4;
}

.cta-button {
    text-decoration: none;
    padding: 15px 30px;
    background-color: var(--color-green-primary);
    color: var(--color-dark);
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-green-light);
    transform: translateY(-5px);
}

/* ---- Estilos para el Pie de Página (Footer) ---- */
.footer {
    background-color: #111;
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(0, 255, 127, 0.1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 40px;
}

.footer-block {
    margin-bottom: 30px;
    flex: 1;
    min-width: 200px;
}

.footer-block h4 {
    color: var(--color-green-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-block ul {
    list-style: none;
    padding: 0;
}

.footer-block ul li {
    margin-bottom: 10px;
}

.footer-block a, .footer-block p {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-block a:hover {
    color: var(--color-green-primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-gray);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: var(--color-gray);
    text-decoration: none;
    margin-left: 10px;
}

/* ---- Estilos para la página de Registro ---- */
.video-guide-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-step {
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--color-green-primary);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 40px;
}

.video-step-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-green-light);
    margin-bottom: 10px;
    font-weight: bold;
}

.video-step-description {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.video-player-container {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 25px auto;
    padding-bottom: 53%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 255, 127, 0.2);
    background-color: black;
}

.guide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.support-button {
    margin-top: 20px;
}

.cta-button {
    text-decoration: none;
    padding: 15px 30px;
    background-color: var(--color-green-primary);
    color: var(--color-dark);
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-green-light);
    transform: translateY(-5px);
}

.typing-text {
    font-size: 1.5rem;
    color: var(--color-green-light);
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid var(--color-green-light);
    animation: typing 5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: fit-content;
    margin: 20px auto;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    padding: 8px 15px 8px 8px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    animation: float 2s ease-in-out infinite;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.whatsapp-text {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 992px) {
    .challenges-grid, .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .main-nav {
        display: none;
    }
    .vip-grid, .bonus-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    .vip-level-full-width {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 10px;
    }
    .hero-content .cta-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    /* Estilos más responsivos para el título en pantallas pequeñas */
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        letter-spacing: 2px;
        white-space: normal; /* Permitir que el texto se rompa en varias líneas */
        max-width: 90%;
        animation: none; /* Desactivar animación de escritura en móviles para mejor UX */
        border-right: none;
    }
    /* El eslogan ahora se verá mejor en su propio espacio */
    .hero-slogan {
        font-size: clamp(0.9rem, 3.5vw, 1.5rem);
        white-space: normal;
    }
    .hero-tagline {
        font-size: 0.8rem;
    }
    .typing-text {
        font-size: 1.2rem;
    }
    /* Ajuste de contenedor de video para pantallas pequeñas */
    .presentation-video-container {
        width: 100%;
        max-width: 300px;
    }
    .audio-cta p {
        font-size: clamp(1rem, 3.5vw, 2rem);
    }
    .footer-block {
        min-width: 100%;
    }
    .security-items {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para pantallas aún más pequeñas (ej. 480px de ancho) */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.2rem, 7vw, 2rem);
        letter-spacing: 1px;
    }
    .hero-slogan {
        font-size: clamp(0.8rem, 3vw, 1.2rem);
    }
    .section-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
    .whatsapp-button {
        padding: 6px 12px 6px 6px;
    }
    .whatsapp-button img {
        width: 35px;
        height: 35px;
    }
    .whatsapp-text {
        font-size: 0.9rem;
    }
    .credit-equivalence .gain-value, .credit-equivalence .credit-value, .equal-sign {
        font-size: clamp(1.5rem, 10vw, 4rem);
    }
    .credit-equivalence .text {
        font-size: 1rem;
    }
    .hero-title, .hero-slogan {
        white-space: normal; /* Asegura que el texto se rompa en varias líneas */
        max-width: 100%;
    }
}