/* --- ESTILOS GENERALES --- */
body {
    margin: 0;
    padding: 0;
    background-color: #050510;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
    /* PC Default */
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: radial-gradient(circle, #0a192f 0%, #000000 100%);
    pointer-events: none;
}

.main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- STICKY HEADER --- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.header-logo-small {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.header-center {
    flex-grow: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-center a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.15rem;
    margin: 0 25px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.header-center a:hover {
    color: #00d2ff;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* --- IDIOMA --- */
.lang-dropdown-container {
    position: relative;
    display: inline-block;
}

.lang-button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.lang-button:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
}

.arrow-down {
    font-size: 0.7rem;
    margin-left: 2px;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #0a0f19;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 8px;
    z-index: 1001;
    overflow: hidden;
}

.lang-menu.show {
    display: block;
}

.lang-option {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-option:hover {
    background-color: rgba(0, 210, 255, 0.2);
}

/* --- HEADER CONTENT --- */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.logo {
    height: 160px;
    width: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: transform;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 195, 255, 0.8));
    cursor: pointer;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(0, 195, 255, 0.7);
}

/* --- MÉTRICAS --- */
.metrics-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    background: rgba(10, 15, 25, 0.7);
    box-sizing: border-box;
    text-align: center;
    margin-top: 25px;
}

.metrics-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    padding: 10px 0;
}

.metric-value {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #00d2ff;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.metric-label {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- BOTONES --- */
.btn-club {
    background: #0040ff;
    border: 2px solid #00d2ff;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 220px;
    height: 55px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    transition: all 0.2s ease;
    margin: 15px 0;
    cursor: pointer;
    text-align: center;
    /* FIX: Asegura que el botón esté por encima de elementos superpuestos */
    position: relative;
    z-index: 10;
}

.btn-club:hover {
    transform: translateY(-2px);
    background: #0033cc;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.8);
}

.btn-acceder-ahora {
    height: 65px;
    font-size: 1.4rem;
    padding: 0 60px;
    min-width: 250px;
    margin-bottom: 40px;
    margin-top: 0;
}

/* --- OFERTA --- */
.offer-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    background: rgba(0, 10, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 100, 255, 0.1);
    margin-bottom: 60px;
    box-sizing: border-box;
}

.offer-title {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 600;
}

.offer-line {
    display: block;
    width: 100%;
    margin-bottom: 5px;
}

.single-line-force {
    white-space: nowrap;
    overflow: visible;
}

.highlight {
    color: #00d2ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
    font-weight: 700;
}

.highlight-white {
    color: #ffffff;
    font-weight: 700;
    font-size: 2rem;
    margin-top: 10px;
    display: block;
}

.offer-desc {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 300;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #00d2ff;
    font-size: 1.05rem;
    font-weight: 500;
}

/* --- CARRUSEL OPTIMIZADO --- */
.carousel-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 0 10px;
}

.carousel-track {
    display: flex;
    gap: 15px;
    width: max-content;
    /* VELOCIDAD: 12s */
    animation: scroll 12s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-item {
    height: 250px;
    width: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
    object-fit: cover;
    background-color: rgba(0, 20, 40, 0.5);
    /* Placebo loading color */
}

@keyframes scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-33.333%, 0, 0);
    }
}

/* --- SECCIONES ANCHOR --- */
#trading-algoritmico,
#nuestro-club,
#educacion-guias {
    padding-top: 60px;
    margin-top: -60px;
}

/* FIX CENTRADO CONTENEDORES */
.why-container,
.preview-section,
.education-container,
.portfolio-section {
    width: 100%;
    display: flex;
    /* Asegura flexbox */
    flex-direction: column;
    /* Columna */
    align-items: center;
    /* Centrado hijos */
    margin-left: auto;
    /* Centrado bloque */
    margin-right: auto;
    /* Centrado bloque */
    margin-bottom: 60px;
    box-sizing: border-box;
    padding: 0 10px;
    text-align: center;
}

.why-container {
    max-width: 1000px;
    margin-bottom: 80px;
}

.preview-section {
    max-width: 1100px;
    margin-bottom: 20px;
}

.education-container {
    max-width: 800px;
    margin-bottom: 30px;
}

.portfolio-section {
    max-width: 900px;
    margin-top: 0;
    margin-bottom: 40px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.benefit-card {
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 12px;
    width: 400px;
    padding: 25px 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.benefit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 210, 255, 0.5);
}

.card-icon {
    font-size: 1.8rem;
    margin: 0;
    color: #00d2ff;
    flex-shrink: 0;
    line-height: 1.2;
}

.card-text-wrapper {
    display: flex;
    flex-direction: column;
}

.card-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.card-desc {
    color: #bbbbbb;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 300;
}

/* --- iPhone 15 Pro Max Frame (Deep Blue Titanium & Perfect Geometry) --- */
.phone-mockup {
    width: 320px;
    aspect-ratio: 9 / 19.5;
    /* BORDE: Gradiente Deep Blue */
    background: linear-gradient(135deg, #151b26 0%, #2a3c55 25%, #151b26 50%, #354a6d 75%, #151b26 100%);

    /* GEOMETRÍA: Radio exterior de 56px */
    border-radius: 56px;

    /* BISEL: 7px constantes en todos los lados */
    padding: 7px;

    position: relative;
    box-sizing: border-box;
    margin: 0 auto 50px auto;
    display: block;

    /* CONTORNO Y SOMBRAS */
    box-shadow:
        inset 0 0 4px rgba(0, 0, 0, 0.9),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1.5px #354a5f;
    /* Contorno exterior visible */

    overflow: visible;
    /* Necesario para que la isla dinámica flote */
}

/* Dynamic Island */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    /* Ajuste para el bisel de 7px */
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
    pointer-events: none;
}

/* Screen Content */
.phone-screen-content {
    width: 100%;
    height: 100%;

    /* MATEMÁTICA PURA: Radio Interno = Radio Externo (56) - Padding (7) = 49px */
    /* Esto garantiza que el borde sea EXACTAMENTE igual de grueso en curvas y rectas */
    border-radius: 49px;

    overflow: hidden;
    /* Corta la imagen estrictamente en la curva */
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sombra interna para separar la pantalla del marco */
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.phone-vector-img {
    width: 100%;
    height: 100%;
    /* Ajuste COVER para llenar sin bordes negros */
    object-fit: cover;
    display: block;
    filter: none;
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: scale(1.005);
}

/* DEPRECATED: .phone-screen removed as we now use a full vector image */

/* --- EDUCACIÓN --- */
.education-container {
    gap: 12px;
}

.edu-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edu-section-title {
    font-size: 1.8rem;
    color: #00d2ff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding-bottom: 10px;
}

.edu-header {
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.edu-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.pdf-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.edu-icon {
    color: #00d2ff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.edu-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px;
    background: rgba(0, 20, 40, 0.95);
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    text-align: left;
}

.edu-card.active {
    border-color: #00d2ff;
}

.edu-card.active .edu-content {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
}

.edu-card.active .edu-icon {
    transform: rotate(45deg);
}

.edu-card.more-guides {
    background: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
    text-align: center;
}

.edu-card.more-guides .edu-header {
    justify-content: center;
    color: #00d2ff;
    font-weight: 700;
}

.portfolio-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}

footer {
    width: 100%;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.footer-text {
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0;
}

.flag {
    font-size: 1.2rem;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    body {
        padding-top: 0px !important;
    }

    .header-container .logo,
    .header-container h1 {
        display: none;
    }

    .header-container {
        margin-top: 0;
    }

    .sticky-header {
        padding: 5px 10px;
        height: auto;
        flex-direction: column;
        position: relative;
    }

    .header-right {
        position: absolute;
        top: 5px;
        right: 10px;
        order: 1;
        margin-top: 0 !important;
    }

    .header-left {
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
        padding-right: 50px;
        box-sizing: border-box;
        flex-shrink: 1;
    }

    .header-center {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 0;
        order: 3;
        flex-grow: initial;
    }

    .header-center a {
        margin: 5px 8px;
        font-size: 0.85rem;
    }

    .metrics-grid {
        flex-direction: column;
        gap: 5px;
    }

    .metric-item {
        min-width: 90%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 10px 0;
    }

    .metric-item:last-child {
        border-bottom: none;
    }

    .metrics-container {
        margin-top: 20px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }

    .offer-title {
        font-size: 1.25rem;
    }

    .single-line-force {
        font-size: 0.95rem;
    }

    .highlight-white {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
        line-height: 1.2;
        padding: 0 5px;
    }

    /* Ajuste Celular Mockup en Móvil */
    .phone-mockup {
        width: 280px;
        /* Quitamos altura fija, dejamos que el aspect-ratio mande */
        height: auto;
        aspect-ratio: 9 / 19.5;
        margin-bottom: 40px;
    }

    /* Isla Dinámica más pequeña en móvil para no tapar texto */
    .phone-mockup::before {
        width: 70px;
        height: 20px;
        top: 12px;
        border-radius: 12px;
    }

    .carousel-item {
        height: 160px;
    }

    .benefit-card {
        width: 100%;
    }

    .edu-header {
        padding: 15px;
        font-size: 0.95rem;
    }

    .btn-acceder-ahora {
        height: 50px;
        font-size: 1.1rem;
        padding: 0 30px;
        margin-bottom: 25px;
    }
}