/* ==========================================================================
   1. VARIABLES Y RESET GENERAL
   ========================================================================== */
:root {
    --excel-green: #107c41;
    --excel-light: #18a558;
    --dark-bg: #f3f4f6;
    --text-main: #1f2937;
    --text-light: #4b5563;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --radius: 16px;
    --orange-cta: #f97316;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { background-color: var(--dark-bg); color: var(--text-main); line-height: 1.6; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }

.text-center { text-align: center; }
a { text-decoration: none; }

/* ==========================================================================
   2. ANIMACIONES GLOBALES
   ========================================================================== */
.animate-slide-up { opacity: 0; animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in { opacity: 0; animation: fadeIn 0.8s ease-out forwards; }
.fade-in-up { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-fast { 0% { transform: scale(1); } 50% { transform: scale(1.02); box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3); } 100% { transform: scale(1); } }
@keyframes shine-effect { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.pulse-fast { animation: pulse-fast 1.5s infinite; }

/* ==========================================================================
   3. BOTONES GENERALES
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 12px; font-weight: 700; text-decoration: none !important;
    transition: all 0.2s ease; cursor: pointer; border: none; text-align: center; font-size: 1rem;
}
.btn-primary { background-color: var(--excel-green); color: var(--white) !important; box-shadow: 0 4px 12px rgba(16, 124, 65, 0.2); }
.btn-primary:hover { background-color: var(--excel-light); transform: translateY(-2px); }
.btn-secondary { background-color: var(--white); color: var(--excel-green) !important; border: 2px solid var(--excel-green); }
.btn-secondary:hover { background-color: var(--excel-green); color: var(--white) !important; }
.btn-outline { background-color: transparent; color: var(--text-light) !important; border: 2px solid #e5e7eb; }
.btn-outline:hover { border-color: var(--excel-green); color: var(--excel-green) !important; }
.btn-outline.btn-active { background-color: #ecfdf5; color: var(--excel-green) !important; border-color: var(--excel-green); }

.info-text { font-size: 0.95rem; color: var(--text-light); background-color: #f9fafb; padding: 12px 18px; border-radius: 12px; border-left: 4px solid var(--excel-green); display: inline-block; }

/* ==========================================================================
   4. 🔥 BOTONES PREMIUM DE VENTA (BLINDADOS) 🔥
   ========================================================================== */
.btn-cta, .btn-cta-orange, .btn-super-cta, 
.btn-cta:visited, .btn-cta-orange:visited, .btn-super-cta:visited,
.btn-cta:active, .btn-cta-orange:active, .btn-super-cta:active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important; 
    width: 100%; max-width: 480px; padding: 18px 30px; font-size: 1.2rem; font-weight: 900;
    border-radius: 16px; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.5); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    border: none; text-decoration: none !important; position: relative; overflow: hidden; margin: 0 auto; cursor: pointer;
}
.btn-cta::after, .btn-cta-orange::after, .btn-super-cta::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; 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); animation: shine-effect 4s infinite;
}
.btn-cta:hover, .btn-cta-orange:hover, .btn-super-cta:hover { 
    transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 35px -5px rgba(234, 88, 12, 0.6); color: #ffffff !important;
}

.btn-whatsapp, .btn-whatsapp-pro,
.btn-whatsapp:visited, .btn-whatsapp-pro:visited,
.btn-whatsapp:active, .btn-whatsapp-pro:active {
    background: #ffffff; color: #059669 !important; width: 100%; max-width: 480px;
    padding: 16px 30px; font-size: 1.1rem; font-weight: 800; border-radius: 16px;
    border: 2px solid #10b981; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    text-decoration: none !important; margin: 0 auto; cursor: pointer;
}
.btn-whatsapp:hover, .btn-whatsapp-pro:hover { 
    background: #ecfdf5; border-color: #059669; transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2); color: #059669 !important;
}

.btn-link-muted, .btn-link-muted:visited, .btn-link-muted:active { 
    color: #6b7280 !important; font-size: 1.05rem; font-weight: 700; text-decoration: none !important; 
    margin-top: 10px; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-link-muted:hover { color: #10b981 !important; transform: translateY(-1px); }

/* ==========================================================================
   5. LANDING PAGE Y ACCESO (TRAFICO FRIO)
   ========================================================================== */
.landing-page { background-color: #fafafa; }
.main-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #f3f4f6; position: sticky; top: 0; z-index: 100; padding: 15px 0; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; color: var(--excel-green); font-weight: 800;}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-main) !important; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.3s;}
.nav-links a:hover { color: var(--excel-green) !important; }

.hero-section { max-width: 900px; margin: 0 auto; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge-green { display: inline-flex; align-items: center; gap: 8px; background: #ecfdf5; color: #047857; padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; margin-bottom: 24px; border: 1px solid #a7f3d0;}
.hero-content h1 { font-size: 3.5rem; color: #111827; margin-bottom: 20px; line-height: 1.1; font-weight: 900; letter-spacing: -1px; }
.hero-content h1 span { color: var(--excel-green); }
.hero-content p { font-size: 1.25rem; color: #4b5563; margin-bottom: 40px; line-height: 1.6; max-width: 700px; }
.hero-actions-center { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; }

.features-section { background-color: var(--white); padding: 90px 20px; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; }
.features-header { max-width: 700px; margin: 0 auto 50px auto; text-align: center;}
.features-header h2 { font-size: 2.6rem; color: #111827; margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px;}
.features-header p { font-size: 1.15rem; color: #4b5563; }
.features-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card { background: #f9fafb; padding: 35px 25px; border-radius: 16px; border: 1px solid #f3f4f6; transition: transform 0.3s; text-align: center;}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.04); background: white; border-color: #d1fae5;}
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.3rem; color: #111827; margin-bottom: 15px; font-weight: 700;}
.feature-card p { font-size: 1.05rem; color: #4b5563; line-height: 1.6; }

.faq-section-clean { max-width: 1000px; margin: 0 auto; padding: 90px 20px; }
.faq-title-green { font-size: 2.8rem; color: var(--excel-green); margin-bottom: 50px; font-weight: 800; letter-spacing: -1px; text-align: center;}
.faq-grid-clean { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px 60px; }
.faq-card-clean { margin-bottom: 10px; }
.faq-card-clean h3 { font-size: 1.25rem; color: #111827; margin-bottom: 12px; font-weight: 800; }
.faq-card-clean p { color: #4b5563; font-size: 1.05rem; line-height: 1.6; }

.whats-next-section { background: #fff7ed; padding: 90px 20px; border-top: 1px solid #ffedd5; text-align: center;}
.whats-next-container { max-width: 800px; margin: 0 auto; }
.whats-next-container h2 { font-size: 2.4rem; color: #c2410c; margin-bottom: 25px; font-weight: 800; letter-spacing: -0.5px;}
.whats-next-container p { font-size: 1.15rem; color: #4b5563; margin-bottom: 20px; line-height: 1.7; }

.main-footer { background: #fff; padding: 40px 20px; text-align: center; border-top: 1px solid #f3f4f6; }
.main-footer p { color: #6b7280; margin-bottom: 10px; font-weight: 600;}

/* PÁGINA ACCESO CONTRASEÑA VIP */
.access-card { 
    background: var(--white); width: 100%; max-width: 600px; margin: 40px auto; border-radius: 24px; 
    padding: 50px 40px; text-align: center; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1); 
    border: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: center;
}
.lock-icon-large { font-size: 3.5rem; margin-bottom: 15px; animation: float 4s ease-in-out infinite; display: inline-block; }
.access-card h2 { color: #111827; font-size: 2.2rem; margin-bottom: 15px; font-weight: 900; line-height: 1.2; text-align: center; width: 100%;}
.access-subtitle { font-size: 1.15rem; color: #4b5563; margin-bottom: 25px; line-height: 1.5; text-align: center; width: 100%;}
.password-container { width: 100%; display: flex; flex-direction: column; align-items: center; }
.access-input { 
    width: 100%; max-width: 100%; margin: 0 auto 20px auto; font-size: 1.15rem; text-align: center; font-weight: bold;
    background: #f9fafb; border: 2px solid #d1d5db; padding: 18px; border-radius: 16px; transition: all 0.3s ease; outline: none; color: #1f2937;
}
.access-input:focus { border-color: var(--orange-cta); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1); background: white; }
.error-text { color: #dc2626; font-size: 1rem; font-weight: 800; margin-top: -10px; margin-bottom: 15px; }
.shake-error { animation: shake 0.4s ease-in-out; border-color: #dc2626 !important; background-color: #fef2f2 !important; }

/* ==========================================================================
   6. INTERFAZ DEL CURSO Y BARRA DE PROGRESO
   ========================================================================== */
.course-container { display: flex; height: 100vh; overflow: hidden; background-color: var(--dark-bg); }
.sidebar { width: 320px; background-color: var(--white); border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; z-index: 10; box-shadow: 2px 0 10px rgba(0,0,0,0.02); }
.sidebar-header { padding: 20px; background-color: var(--excel-green); color: var(--white); }
.sidebar-header h3 { font-size: 1.1rem; margin-bottom: 15px; font-weight: 800; text-transform: uppercase; }

.progress-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; font-weight: 600; color: #ecfdf5; }
.progress-bar-bg { width: 100%; height: 8px; background-color: rgba(255, 255, 255, 0.2); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background-color: #fcd34d; width: 0%; transition: width 0.4s ease; }

.class-list { flex: 1; overflow-y: auto; padding: 10px 0; }
.class-btn { width: 100%; text-align: left; padding: 16px 20px; background: none; border: none; border-bottom: 1px solid #f9fafb; font-size: 1rem; color: var(--text-main); font-weight: 500; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; }
.class-btn:hover { background-color: #f9fafb; }
.class-btn.active { background-color: #ecfdf5; color: var(--excel-green); font-weight: 700; border-left: 4px solid var(--excel-green); }
.class-btn.locked { color: #9ca3af; cursor: not-allowed; }

.highlight-btn { color: #c2410c; font-weight: 700; }
.cert-tab { margin-top: 15px; border-top: 2px dashed #e5e7eb; color: #f59e0b; font-weight: 800; }

.check-icon { display: inline-block; width: 22px; height: 22px; margin-right: 12px; border-radius: 50%; border: 2px solid #d1d5db; flex-shrink: 0; }
.class-btn.completed .check-icon { background-color: var(--excel-green); border-color: var(--excel-green); position: relative; }
.class-btn.completed .check-icon::after { content: '✔'; color: var(--white); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 14px; }
.lock-icon-inline { font-size: 14px; margin-right: 12px; width: 22px; text-align: center; }

.module-group { margin-top: 10px; border-top: 2px solid #f3f4f6; }
.module-header { width: 100%; text-align: left; padding: 15px 20px; background: #fff7ed; border: none; border-bottom: 1px solid #ffedd5; font-size: 1rem; font-weight: 800; color: #c2410c; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.module-header:hover { background: #fff9e6; }
.module-header.locked { background: #f9fafb; border-color: #f3f4f6; cursor: not-allowed; flex-direction: column; align-items: flex-start; padding: 12px 20px; }
.locked-subtitle { font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.locked-title { font-size: 0.95rem; color: #6b7280; font-weight: 600; }

.premium-header { background: linear-gradient(135deg, #fffaf0, #fff3e0); border: 1px solid #ffcc80; color: #d67a00; }
.pro-module-btn { color: #9ca3af; font-size: 0.9rem; padding: 12px 20px; background: #fafafa; border-bottom: 1px solid #f3f4f6; }
.extra-btn { background-color: #fafafa; padding-left: 36px; font-size: 0.95rem; }

/* ==========================================================================
   7. SECCIÓN DE VIDEO PRINCIPAL
   ========================================================================== */
.video-section { flex: 1; overflow-y: auto; padding: 40px; display: flex; flex-direction: column; align-items: center; }
.video-wrapper { width: 100%; max-width: 1000px; background: #000; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); margin-bottom: 24px; aspect-ratio: 16 / 9; position: relative;}
.video-wrapper:first-child { border-radius: var(--radius); }
video { width: 100%; height: 100%; object-fit: cover; }
video.locked-controls::-webkit-media-controls-timeline { display: none !important; }

/* Efecto Netflix */
.next-class-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, 0.9); z-index: 20; display: flex; align-items: center; justify-content: center; text-align: center; color: white; backdrop-filter: blur(4px); }
.next-class-content h3 { font-size: 2.2rem; color: var(--excel-light); margin-bottom: 24px; font-weight: 900; }
.next-actions { display: flex; gap: 12px; justify-content: center; }

.video-info { width: 100%; max-width: 1000px; background: var(--white); padding: 35px; border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: flex-start; }
.title-and-proof { margin-bottom: 20px; width: 100%; }
.title-and-proof h2 { font-size: 1.8rem; font-weight: 900; color: #111827; margin-bottom: 8px; line-height: 1.2;}
.social-proof-badge { display: inline-flex; align-items: center; gap: 8px; background: #fffbeb; padding: 6px 14px; border-radius: 50px; border: 1px solid #fef08a; font-size: 0.9rem; color: #b45309; font-weight: 600;}
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; width: 100%; }

/* ==========================================================================
   8. CAJAS CLÁSICAS Y DE VENTA PARA LA CLASE 11
   ========================================================================== */
.cta-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; margin-top: 30px; width: 100%; padding: 35px; background: #fffaf0; border-radius: 20px; border: 2px dashed #fed7aa; }
.cta-title { font-size: 1.8rem; color: #111827; font-weight: 900; text-align: center; margin-bottom: 5px; }
.offer-text { font-size: 1.3rem; font-weight: 900; color: #ea580c; text-transform: uppercase; letter-spacing: 0.5px; animation: pulse-fast 2s infinite; text-align: center; margin-bottom: 10px;}
.old-price { text-decoration: line-through; color: #9ca3af; font-size: 1.1rem; margin-right: 10px; font-weight: 600; }

.benefits-box { width: 100%; margin-top: 25px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 35px; text-align: left; box-shadow: var(--shadow-soft); }
.benefits-box h3 { color: var(--excel-green); font-size: 1.5rem; margin-bottom: 20px; font-weight: 900;}
.benefits-list { list-style: none; padding: 0; }
.benefits-list li { font-size: 1.1rem; color: #374151; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; }

.faq-box-course { width: 100%; margin-top: 25px; background: var(--white); border: 1px solid #e5e7eb; border-radius: 20px; padding: 35px; text-align: left; box-shadow: var(--shadow-soft); }
.faq-box-course h3 { color: var(--excel-green); font-size: 1.5rem; margin-bottom: 20px; font-weight: 900;}
.faq-item { margin-bottom: 15px; border-bottom: 1px solid #f3f4f6; padding-bottom: 15px; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item summary { font-size: 1.15rem; font-weight: 700; color: #111827; cursor: pointer; padding: 5px 0; outline: none; list-style: none; display: flex; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--excel-light); font-weight: 900; font-size: 1.3rem;}
.faq-item[open] summary::after { content: '-'; }
.faq-item p { margin-top: 10px; padding: 0 10px 10px 25px; color: #4b5563; font-size: 1.05rem; line-height: 1.6;}

.syntax-box { width: 100%; background-color: #ffffff; border-left: 5px solid var(--excel-light); padding: 25px; margin-top: 25px; border-radius: 16px; box-shadow: var(--shadow-soft); border: 1px solid #f3f4f6; text-align: left; }
.syntax-box h4 { color: var(--excel-green); margin-bottom: 8px; font-size: 1.2rem; font-weight: 800;}
.syntax-box p { color: var(--text-light); margin-bottom: 15px; font-size: 1.05rem; }
.syntax-box code { display: block; background-color: #f9fafb; padding: 15px; border-radius: 8px; color: #be123c; font-family: monospace; font-weight: bold; font-size: 1.1rem; overflow-x: auto;}

/* ==========================================================================
   9. 💎 TARJETAS UPSELL PREMIUM (CLASES 12 A 15)
   ========================================================================== */
.progressive-upsell-card { 
    background: #ffffff; width: 100%; border-radius: 20px; padding: 40px 35px; margin-top: 24px; 
    border: 1px solid #e5e7eb; box-shadow: 0 15px 35px -10px rgba(0,0,0,0.08); 
    text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; position: relative; overflow: hidden;
}

.upsell-badge-inline { 
    display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px;
}
.upsell-badge-inline.green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;}
.upsell-badge-inline.orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa;}
.upsell-badge-inline.red { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;}

.upsell-title { font-size: 2rem; font-weight: 900; color: #111827; line-height: 1.2; margin: 0; letter-spacing: -0.5px;}
.upsell-subtitle { font-size: 1.1rem; color: #4b5563; line-height: 1.6; margin: 0; max-width: 700px;}

.upsell-benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; width: 100%; margin-top: 10px; }
.benefit-card { display: flex; align-items: center; gap: 16px; background: #fafafa; padding: 16px; border-radius: 12px; border: 1px solid #f0f0f0; text-align: left; transition: transform 0.2s; }
.benefit-card:hover { transform: translateY(-2px); border-color: #d1fae5; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.03);}
.benefit-card .b-icon { font-size: 1.6rem; background: #ecfdf5; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 10px; flex-shrink:0;}
.benefit-card p { margin: 0; color: #374151; font-weight: 600; font-size: 1rem; line-height: 1.3;}
.benefit-card strong { color: #111827; font-weight: 800; display: block;}

.upsell-faq-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; width: 100%; margin-top: 10px; }
.faq-pro-card { background: #fff; border: 1px solid #fed7aa; padding: 20px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.05); transition: transform 0.2s; }
.faq-pro-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(234, 88, 12, 0.1); }
.faq-pro-card .faq-icon { font-size: 1.8rem; background: #fff7ed; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }
.faq-pro-card .faq-text h4 { color: #9a3412; font-size: 1.1rem; margin-bottom: 5px; font-weight: 800; }
.faq-pro-card .faq-text p { color: #4b5563; font-size: 0.95rem; margin: 0; line-height: 1.4; }

.urgency-final-box { width: 100%; background: #fef2f2; border-left: 5px solid #ef4444; padding: 20px; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: 5px; border: 1px solid #fecaca; }
.urgency-final-box strong { color: #991b1b; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px;}
.urgency-final-box span { color: #dc2626; font-size: 1rem; font-weight: 600;}

.trust-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 5px 0; }
.trust-pill { background: #f3f4f6; color: #374151; font-size: 0.9rem; font-weight: 700; padding: 8px 16px; border-radius: 50px; border: 1px solid #e5e7eb;}
.trust-pill.highlight { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.upsell-btn-group { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; margin-top: 15px; }

/* ==========================================================================
   10. CONTENEDORES EXTRAS (DESCARGAS Y MOCKUP HOTMART)
   ========================================================================== */
.cert-box { background: var(--white); padding: 40px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-soft); margin-top: 24px; width: 100%; max-width: 1000px; border: 1px solid #e5e7eb; }
.cert-box h3 { color: var(--excel-green); font-size: 1.8rem; margin-bottom: 10px; font-weight: 800; }
.cert-input { width: 100%; max-width: 400px; padding: 15px; margin: 20px auto; border: 2px solid #d1d5db; border-radius: 8px; font-size: 1.1rem; outline: none; display: block; text-align: center;}
.cert-input:focus { border-color: var(--excel-green); }

.checkout-mockup-link, .checkout-mockup-link:visited, .checkout-mockup-link:active, .checkout-mockup-link:hover { 
    display: block; text-decoration: none !important; color: inherit !important; position: relative; margin: 0 auto; transition: transform 0.3s ease; 
}
.checkout-mockup-link:hover { transform: scale(1.02); }
.checkout-mockup { max-width: 500px; margin: 0 auto; background: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; overflow: hidden; text-align: left; }
.checkout-mockup * { pointer-events: none; }
.mockup-header { background: #f9fafb; padding: 12px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #e5e7eb; }
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; } .mockup-dot.yellow { background: #f59e0b; } .mockup-dot.green { background: #10b981; }
.mockup-title { margin: 0 auto; font-size: 0.8rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; }
.mockup-body { padding: 24px; }
.mockup-hint { font-size: 0.95rem; font-weight: 800; color: #c2410c; margin-bottom: 12px; }
.mockup-input { background: #f9fafb; border: 1px solid #e5e7eb; padding: 12px; border-radius: 8px; color: #9ca3af; margin-bottom: 12px; width: 100%; font-style: italic;}
.mockup-methods { display: flex; gap: 10px; margin-bottom: 20px;}
.method-card { flex: 1; background: #f9fafb; border: 1px solid #e5e7eb; padding: 12px; border-radius: 8px; text-align: center; font-size: 0.85rem; font-weight: 700; color: #6b7280; }
.mockup-btn { background: #10b981; color: white; padding: 16px; border-radius: 8px; text-align: center; font-weight: 800; font-size: 1.1rem; }

.recursos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; text-align: left;}
.recurso-card { background: var(--white); border: 1px solid #e5e7eb; padding: 25px; border-radius: 12px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.2s; }
.recurso-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
.card-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.recurso-card h4 { color: #111827; font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; }
.recurso-card p { color: #6b7280; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.4; }

.pro-card { border: 1px solid #fed7aa; background: #fffdfa; }
.btn-locked { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; width: 100%; transition: all 0.2s; font-size: 0.95rem; }
.btn-locked:hover { background: #e5e7eb; color: #374151; }

.blur-wrapper { position: relative; margin-top: -60px; padding-top: 60px; overflow: hidden; }
.blurred-grid { filter: blur(6px); opacity: 0.5; pointer-events: none; user-select: none; margin-bottom: 20px; }
.blur-cta { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 90%; max-width: 450px; z-index: 2; background: rgba(255,255,255,0.95); padding: 30px 20px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid #e5e7eb; }

/* ==========================================================================
   11. PAGOS LOCALES (PERÚ / CHILE) EN CLASE 17
   ========================================================================== */
.country-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.country-tab { 
    padding: 14px 28px; border-radius: 12px; border: 2px solid #e5e7eb; background: #f9fafb; 
    font-weight: 800; font-size: 1.1rem; color: #6b7280; cursor: pointer; transition: all 0.3s ease; 
}
.country-tab:hover { background: #f3f4f6; color: #374151; }
.country-tab.active { 
    background: #fff7ed; border-color: var(--orange-cta); color: var(--orange-cta); 
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15); 
}

.payment-content { animation: fadeIn 0.4s ease-out; }
.payment-card { 
    background: #ffffff; border: 1px solid #e5e7eb; border-radius: 20px; 
    padding: 35px; text-align: left; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); 
    max-width: 550px; margin: 0 auto; 
}
.payment-card h4 { font-size: 1.1rem; color: #4b5563; margin-bottom: 5px; font-weight: 800; text-transform: uppercase;}
.pay-highlight { font-size: 1.4rem; font-weight: 900; color: #111827; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; gap: 8px;}

.pay-details { list-style: none; padding: 0; margin-bottom: 25px; }
.pay-details li { font-size: 1.1rem; color: #374151; margin-bottom: 10px; display: flex; align-items: center; gap: 10px;}
.pay-details li strong { color: #111827; min-width: 90px;}

.pay-instructions { background: #f9fafb; padding: 20px; border-radius: 12px; border-left: 4px solid var(--excel-green); }
.pay-instructions strong { color: var(--excel-green); font-size: 1.1rem; display: block; margin-bottom: 8px;}
.pay-instructions ul { list-style-type: none; padding: 0; margin: 0; color: #4b5563; font-weight: 600; }
.pay-instructions ul li { margin-bottom: 5px; display: flex; align-items: center; gap: 8px;}
.pay-instructions ul li::before { content: '✓'; color: var(--excel-green); font-weight: bold; }

/* ==========================================================================
   12. MODALES Y DIPLOMA
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(17, 24, 39, 0.8); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px);}
.modal-content { background: var(--white); width: 100%; max-width: 600px; border-radius: 24px; padding: 40px; position: relative; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);}
.close-modal { position: absolute; top: 16px; right: 24px; background: none; border: none; font-size: 1.8rem; color: #9ca3af; cursor: pointer; }
.modal-title { color: var(--excel-green); font-size: 2rem; margin-bottom: 12px; font-weight: 900; }
#countdown-timer { font-size: 3.5rem; font-weight: 900; color: #ea580c; font-family: monospace; line-height: 1; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(16, 124, 65, 0.2); border-top: 4px solid var(--excel-green); border-radius: 50%; animation: spin 1s linear infinite; margin-top: 15px;}
.exit-intent-bg { background: rgba(17, 24, 39, 0.9); }
.exit-content { max-width: 500px; padding: 40px 30px; }
.exit-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; width: 100%;}

#cert-preview-area { container-type: inline-size; width: 100%; max-width: 900px; margin: 0 auto; }
.diploma { background: white; width: 100%; aspect-ratio: 1.414 / 1; padding: 2.2cqw; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.diploma-border { border: 1.3cqw solid var(--excel-green); border-radius: 1cqw; height: 100%; padding: 3.3cqw 4.4cqw; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; }
.diploma-logo { height: 6cqw; margin-bottom: 0.5cqw; }
.diploma h2 { font-size: 2.4cqw; color: var(--excel-green); letter-spacing: 0.2cqw; margin-bottom: 0.5cqw; }
.diploma-subtitle { font-size: 1.2cqw; color: var(--text-light); }
.diploma-body { width: 100%; display: flex; flex-direction: column; align-items: center; }
#diploma-name { font-size: 4.5cqw; color: var(--text-main); border-bottom: 0.2cqw solid #ccc; padding-bottom: 0.5cqw; margin-bottom: 1.5cqw; font-family: 'Georgia', serif; width: 80%; }
.diploma-course { font-size: 2cqw; color: var(--excel-light); margin: 1cqw 0; }
.diploma-text { font-size: 1.1cqw; color: var(--text-light); max-width: 85%; line-height: 1.5; }
.diploma-footer { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; padding: 0 2cqw; }
.diploma-signature { display: flex; flex-direction: column; align-items: center; position: relative; }
.diploma-signature-img { max-height: 5cqw; width: auto; display: block; margin-bottom: -2cqw; z-index: 1; mix-blend-mode: multiply; }
.diploma-signature hr { border: none; border-top: 0.2cqw solid var(--text-main); width: 22cqw; margin-bottom: 0.5cqw; }
.diploma-signature p { font-weight: bold; color: var(--text-main); font-size: 1cqw; }
.diploma-signature span { font-size: 0.9cqw; color: var(--text-light); }
.diploma-qr { text-align: right; }
.diploma-qr img { width: 9cqw; height: 9cqw; }
.diploma-qr p { font-size: 0.8cqw; color: #999; margin-top: 0.5cqw; }

/* ==========================================================================
   13. MEDIA QUERIES SÚPER OPTIMIZADAS PARA MÓVILES (UX NATIVA)
   ========================================================================== */
@media (max-width: 900px) {
    body { overflow-y: auto; }
    .course-container { flex-direction: column; height: auto; min-height: 100vh; overflow: visible; background: #fff;}
    .sidebar { width: 100%; order: 2; border-right: none; border-top: 1px solid #e5e7eb; box-shadow: none;} 
    .video-section { order: 1; padding: 0; width: 100%; overflow: visible; background: #f3f4f6;} 
    
    .video-wrapper { border-radius: 0; margin-bottom: 0; box-shadow: none;} 
    .top-ad-banner { border-radius: 0; font-size: 0.95rem; padding: 10px;}

    .video-info { border-radius: 0; border: none; box-shadow: none; padding: 24px 20px; background: #fff;}
    .title-and-proof h2 { font-size: 1.4rem; }
    
    .action-buttons { flex-direction: column; width: 100%; gap: 10px; }
    .action-buttons button, .action-buttons a { width: 100%; min-height: 50px; font-size: 1.05rem;} 

    /* CONTENEDORES CLASE 11 EN MÓVIL */
    .cta-container { padding: 20px; border-radius: 16px; flex-direction: column; align-items: center; width: 100%; }
    .cta-title { font-size: 1.5rem; text-align: center; width: 100%; }
    .offer-text { font-size: 1.1rem; text-align: center; width: 100%; }
    .benefits-box, .faq-box-course, .syntax-box { padding: 24px 20px; border-radius: 16px; margin-top: 20px;}

    /* CONTENEDORES ACCESO, CERTIFICADO Y DESCARGAS EN MÓVIL */
    .access-card { padding: 40px 20px; border-radius: 16px; border: none; border-top: 1px solid #e5e7eb; box-shadow: none; margin: 20px auto; }
    .cert-box { padding: 24px 20px; margin-top: 20px; border-radius: 16px; border: none; border-top: 1px solid #e5e7eb; box-shadow: none; }
    .cert-box h2, .cert-box h3 { font-size: 1.6rem; }
    .recursos-grid { grid-template-columns: 1fr; gap: 15px; }
    .recurso-card { padding: 20px; }
    .blur-cta { width: 95%; padding: 20px 15px; }
    .blur-cta h3 { font-size: 1.4rem !important; }

    /* PAGOS LOCALES (PERÚ/CHILE) EN MÓVIL */
    .country-tabs { flex-direction: column; width: 100%; gap: 10px;}
    .country-tab { width: 100%; padding: 16px;}
    .payment-card { padding: 25px 20px; }
    .pay-highlight { font-size: 1.25rem; }
    .pay-details li { font-size: 1rem; align-items: flex-start; flex-direction: column; gap: 2px;}
    .pay-instructions { padding: 15px; }

    /* 📱 ADAPTACIÓN PERFECTA TARJETAS UPSELL PARA CELULAR */
    .progressive-upsell-card {
        padding: 30px 20px; margin-top: 20px; border-radius: 16px; background: #fdfdfd; 
        border: 1px solid #e5e7eb; box-shadow: 0 4px 15px rgba(0,0,0,0.03); gap: 16px;
    }
    .upsell-badge-inline { font-size: 0.8rem; padding: 6px 14px; }
    .upsell-title { font-size: 1.5rem; margin-bottom: 5px; }
    .upsell-subtitle { font-size: 1rem; margin-bottom: 15px; }
    .upsell-benefits-grid { grid-template-columns: 1fr; gap: 12px; }
    .benefit-card { padding: 14px; gap: 12px;}
    .benefit-card .b-icon { width: 40px; height: 40px; font-size: 1.5rem;}
    .benefit-card p { font-size: 1rem; }
    .upsell-faq-grid-2 { grid-template-columns: 1fr; }
    .faq-pro-card { padding: 15px; flex-direction: column; align-items: center; text-align: center;}
    .faq-pro-card .faq-icon { width: 40px; height: 40px; font-size: 1.4rem; }
    .faq-pro-card .faq-text h4 { font-size: 1.05rem; }
    .faq-pro-card .faq-text p { font-size: 0.95rem; }
    .urgency-final-box { padding: 16px; text-align: center; align-items: center;}
    .urgency-final-box strong { font-size: 1.1rem; }
    .urgency-final-box span { font-size: 0.95rem;}
    .upsell-pills { gap: 6px; }
    .trust-pill { font-size: 0.85rem; padding: 6px 12px; }

    /* BOTONES DE COMPRA 100% TOCABLES EN CELULAR */
    .btn-cta, .btn-cta-orange, .btn-super-cta {
        width: 100%; max-width: 100%; min-height: 56px; font-size: 1.1rem; padding: 14px 20px; border-radius: 12px; margin: 0;
    }
    .btn-whatsapp, .btn-whatsapp-pro {
        width: 100%; max-width: 100%; min-height: 52px; font-size: 1.05rem; padding: 14px 20px; border-radius: 12px; margin: 0;
    }
    .next-class-content h3 { font-size: 1.6rem; margin-bottom: 15px; }
    .next-actions { flex-direction: column; width: 100%; align-items: center; }
    .next-actions button { width: 100%; font-size: 1.05rem; padding: 14px; }
    
    /* 🚨 CORRECCIÓN LANDING PAGE EN MÓVIL 🚨 */
    .hero-section { padding: 60px 20px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-actions-center { display: flex; flex-direction: column; width: 100%; gap: 15px; align-items: center; }
    .nav-links { display: none; }
}

@media print {
    @page { size: A4 landscape; margin: 0; }
    .sidebar, .video-wrapper, .video-info, .modal-overlay, .top-ad-banner, .progressive-upsell-card { display: none !important; }
    html, body, .course-container, .video-section { margin: 0 !important; padding: 0 !important; background: white !important; }
}