/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN INICIAL (RESET)
   ========================================================================== */
:root {
    --bg-dark: #07090e;
    --bg-cards: #0e131f;
    --primary-gold: #f4c23a;
    --primary-green: #00b643;
    --text-white: #ffffff;
    --text-muted: #a0aec0;
    --fb-blue: #1877f2;
    --yt-red: #ff0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZABLES (BOTONES Y ENLACES)
   ========================================================================== */
a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-green {
    background-color: var(--primary-green);
    color: white;
}

.btn-gold {
    background-color: var(--primary-gold);
    color: black;
    flex-direction: column;
    line-height: 1.2;
}

.btn-gold small {
    font-size: 0.75rem;
    font-weight: normal;
}

/* ==========================================================================
   3. NAVBAR
   ========================================================================== */
.navbar {
    background-color: rgba(7, 9, 14, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 35px;
}

.nav-menu, .btn-nav {
    display: none;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.hero-text {
    width: 100%;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.social-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.badge {
    background-color: rgba(255,255,255,0.05);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.badge img {
    height: 16px;
}

.hero-cta-box {
    background: linear-gradient(135deg, rgba(244,194,58,0.05) 0%, rgba(0,0,0,0) 100%);
    border: 1px dashed rgba(244,194,58,0.3);
    padding: 20px 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.webinar-tag {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.proof-users {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-right: -10px;
    object-fit: cover;
}

.hero-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.img-principal {
    display: block;
    width: 85%;
    max-width: 340px;
    height: auto;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.float-icon {
    position: absolute;
    width: 45px;
    height: 45px;
    z-index: 3;
    animation: floatAnimation 3s ease-in-out infinite;
}

.float-tk { top: 10%; right: 10%; animation-delay: 0s; }
.float-fb { top: 45%; right: 2%; animation-delay: 0.5s; }
.float-yt { bottom: 15%; left: 5%; animation-delay: 1s; }

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   5. PRUEBAS DE INGRESOS
   ========================================================================== */
.income-proofs {
    padding: 50px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.proofs-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 400px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-cards);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-header {
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-facebook .card-header i { color: var(--fb-blue); }
.card-youtube .card-header i { color: var(--yt-red); }
.card-tiktok .card-header i { color: #fff; }

.graph-img {
    width: 100%;
    height: auto;
}

.card-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.blue-footer { background-color: rgba(24, 119, 242, 0.15); color: #8bb4f9; }
.red-footer { background-color: rgba(255, 0, 0, 0.15); color: #ff8888; }
.black-footer { background-color: rgba(0, 0, 0, 0.4); color: var(--text-muted); }

/* ==========================================================================
   6. ¿QUÉ APRENDERÁS? Y TESTIMONIOS
   ========================================================================== */
.learning-stories {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(14,19,31,0.5) 100%);
    width: 100%;
}

.dual-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.learning-box {
    background-color: var(--bg-cards);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

.learning-box h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.learning-list {
    list-style: none;
    margin-bottom: 25px;
}

.learning-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.learning-list li i {
    color: var(--primary-gold);
    margin-top: 3px;
}

.sub-btn-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* HISTORIAS REALES */
.stories-box h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.stories-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

.story-card {
    background-color: var(--bg-cards);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.03);
    text-align: center;
    width: 100%;
}

/* CORREGIDO: Proporción Horizontal 16:9 para video estándar */
.video-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 16 / 9; /* Proporción horizontal apaisada perfecta */
    cursor: pointer;
    background-color: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary-gold);
}

.quote {
    font-size: 0.85rem;
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.4;
}

.author {
    font-size: 0.9rem;
    font-weight: bold;
}

.author span {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--text-muted);
}

/* ==========================================================================
   7. FORMULARIO WEBINAR
   ========================================================================== */
.webinar-section {
    padding: 50px 0;
    width: 100%;
}

.webinar-box {
    background: linear-gradient(135deg, #111625 0%, #07090e 100%);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.webinar-info {
    padding: 30px 20px;
}

.badge-live {
    background-color: var(--yt-red);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.webinar-info h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.gold-list {
    list-style: none;
}

.gold-list li {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

.gold-list li i {
    color: var(--primary-gold);
}

.webinar-form-container {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d4a31b 100%);
    color: black;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.webinar-form-container h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.webinar-form-container h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

form {
    width: 100%;
}

.btn-submit {
    background-color: black;
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.registered-users {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

/* ==========================================================================
   8. FOOTER Y FLOTANTE
   ========================================================================== */
.main-footer {
    background-color: #030508;
    padding: 40px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.footer-action .btn {
    margin-bottom: 10px;
}

.joined-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 25px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.logo-footer {
    height: 30px;
}

.social-links a {
    font-size: 1.3rem;
    margin: 0 10px;
    color: var(--text-muted);
}

.legal-links {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legal-links a {
    margin: 0 5px;
}

.legal-links p {
    margin-top: 10px;
}

.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 99;
}

/* ==========================================================================
   9. MEDIA QUERIES
   ========================================================================== */
@media (min-width: 480px) {
    .proof-users {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .proofs-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 20px;
    }

    /* Distribución en 2 columnas fijas */
    .stories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        max-width: 100%;
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .navbar { padding: 20px 0; }
    .nav-container { justify-content: space-between; }
    .nav-menu { display: flex; }
    .nav-menu a {
        margin-right: 25px;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: var(--text-muted);
    }
    .nav-menu a:hover { color: var(--text-white); }
    .btn-nav { display: inline-flex; width: auto; }

    .hero { padding: 80px 0; }
    .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 50px;
        align-items: center;
    }
    .hero-text { text-align: left; }
    .hero-text h1 { font-size: 3.5rem; }
    .social-badges { justify-content: flex-start; }
    .hero-buttons { flex-direction: row; }
    .hero-buttons .btn { width: auto; }
    .proof-users { justify-content: flex-start; }
    .hero-image-container { margin-top: 0; }
    .img-principal { width: 100%; max-width: 500px; }
    .float-icon { width: 60px; height: 60px; }
    .float-tk { top: 10%; right: 5%; }
    .float-fb { top: 40%; right: -5%; }
    .float-yt { bottom: 20%; right: 5%; }

    .section-title { font-size: 2.2rem; }
    
    .dual-grid {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr; /* Ajustado el espacio para el bloque horizontal */
        gap: 30px;
        align-items: flex-start;
    }
    .learning-box { padding: 40px; }
    .learning-box h3, .stories-box h3 { text-align: left; font-size: 1.6rem; }
    
    .webinar-box { display: grid; grid-template-columns: 1fr 1fr; }
    .webinar-info { padding: 45px; }
    .webinar-info h3 { font-size: 1.8rem; }
    .webinar-form-container { padding: 45px; }
    .webinar-form-container h2 { font-size: 2.2rem; }

    .footer-content { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .legal-links { text-align: right; }
}