/* === CONFIGURACIÓN GLOBAL Y NUEVA PALETA DE COLORES === */
:root {
    --primary-color: #D32F2F;  /* Rojo Fuerte para CTAs y acentos */
    --secondary-color: #1976D2;/* Azul Profesional para fondos y texto */
    --dark-color: #212121;     /* Negro/Gris oscuro para texto principal */
    --light-color: #FFFFFF;    /* Blanco */
    --bg-light-gray: #F5F5F5;  /* Gris muy claro para fondos de sección */
    --text-color-light: #616161; /* Gris medio para párrafos */
}

/* === RESET Y ESTILOS BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color-light);
    max-width: 700px;
    margin: -1rem auto 3rem auto;
}
section {
    padding: 6rem 0;
}
p {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

/* === NAVEGACIÓN FIJA === */
.navbar {
    background-color: var(--light-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}
.nav-cta {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.nav-cta:hover {
    background-color: #B71C1C;
}

/* === BOTÓN FLOTANTE WHATSAPP === */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--light-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
}
.floating-whatsapp svg {
    width: 30px;
    height: 30px;
}

/* === SECCIÓN HERO === */
.hero {
    background: linear-gradient(rgba(3, 4, 37, 0.7), rgba(3, 4, 37, 0.7)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: 8rem 0;
}
.hero-title { font-size: 3.5rem; font-weight: 900; }
.hero-subtitle { font-size: 1.3rem; max-width: 750px; margin: 0 auto 2rem auto; color: rgba(255,255,255,0.9); }
.hero-benefits { list-style: none; display: inline-block; text-align: left; margin-bottom: 2.5rem; }
.hero-benefits li { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* Insignias de Inicio y Duración */
.course-info-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.info-badge {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFF00; /* Texto amarillo para que resalte en el fondo oscuro */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .course-info-badges { gap: 1rem; }
    .info-badge { font-size: 0.95rem; padding: 0.5rem 1.2rem; }
}

.urgency-message { background-color: var(--light-color); border: 2px solid var(--primary-color); border-radius: 10px; padding: 1rem; margin: 1.5rem 0; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.urgency-message p { color: var(--primary-color); font-weight: 700; font-size: 1.1rem; margin: 0; }
.spots-left { color: var(--dark-color); font-size: 1.2rem; }
.countdown-timer { display: flex; justify-content: center; gap: 1rem; margin: 1rem 0; }
.time-block { display: flex; flex-direction: column; align-items: center; background-color: var(--primary-color); color: var(--light-color); padding: 0.5rem; border-radius: 8px; min-width: 60px; }
.time-number { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.time-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-top: 0.2rem; }
.spots-remaining { font-size: 1.3rem; }

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
    background-color: #B71C1C;
}

/* Botones Secundarios */
.cta-button.secondary, .facilities-btn.secondary, .exit-popup-btn.secondary {
    background-color: #25D366;
    color: #FFFFFF;
    border: none;
    transition: all 0.3s ease;
}
.cta-button.secondary:hover, .facilities-btn.secondary:hover, .exit-popup-btn.secondary:hover {
    background-color: #1DA851;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* === SECCIÓN PASOS === */
.steps { background-color: var(--bg-light-gray); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step-card { background: var(--light-color); padding: 2.5rem 2rem; text-align: center; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 4px solid var(--secondary-color); }
.step-number { width: 60px; height: 60px; background-color: var(--secondary-color); color: var(--light-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto 1.5rem auto; }
.step-card h3 { color: var(--dark-color); font-size: 1.5rem; }

/* === SECCIÓN BENEFICIOS === */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.feature-item { text-align: center; padding: 2rem; }
.feature-item .icon { font-size: 3.5rem; margin-bottom: 1rem; }
.feature-item h3 { font-size: 1.5rem; color: var(--secondary-color); }

/* === SECCIÓN VIDEO DE CLASE === */
.class-video { background-color: var(--bg-light-gray); padding: 6rem 0; text-align: center; }
.video-container { max-width: 800px; margin: 0 auto; }
.video-container iframe { width: 100%; height: 400px; border-radius: 10px; }

/* === CREDENCIALES === */
.credentials { background-color: var(--bg-light-gray); }
.director-block { background: var(--light-color); padding: 2rem; border-radius: 10px; margin-bottom: 3rem; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.director-image { max-width: 80%; height: auto; border-radius: 10px; margin-top: -1.5rem; }
.director-left h3, .director-right h3 { color: var(--dark-color); font-size: 1.8rem; margin-bottom: 0; }
.credentials-list { list-style: none; padding: 0; }
.credentials-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.credentials-list li:last-child { border-bottom: none; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 3rem; }
.stat-item { text-align: center; padding: 2rem; background: var(--light-color); border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--primary-color); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--text-color-light); margin-top: 0.5rem; font-weight: 600; }

.universities-section { margin-bottom: 3rem; text-align: center; }
.universities-section h3 { color: var(--dark-color); font-size: 1.5rem; margin-bottom: 2rem; }
.university-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.university-badge { background: var(--secondary-color); color: var(--light-color); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; }
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-badge { background: var(--light-color); padding: 1.5rem; text-align: center; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.badge-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.badge-text { font-size: 0.9rem; color: var(--text-color-light); font-weight: 600; }

/* === CTAs INTERMEDIOS === */
.intermediate-cta { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); text-align: center; padding: 4rem 0; color: var(--light-color); }
.intermediate-cta h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--light-color); }
.intermediate-cta p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; color: #fff;}
.cta-alt { background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); }

/* === TESTIMONIOS === */
.testimonials { background-color: var(--bg-light-gray); }

/* Móvil: Scroll horizontal */
.video-testimonials-container { 
    display: flex; 
    overflow-x: auto; 
    gap: 2rem; 
    padding: 1.5rem 0; 
    scroll-snap-type: x mandatory; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.video-testimonials-container::-webkit-scrollbar { display: none; }
.video-testimonial-card { 
    flex: 0 0 80%; 
    max-width: 320px; 
    scroll-snap-align: center; 
    background: var(--light-color); 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    padding: 1.5rem; 
    text-align: center; 
}
.video-wrapper { position: relative; padding-top: 177.78%; height: 0; overflow: hidden; border-radius: 10px; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); background-color: #eee; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-testimonial-card blockquote { font-size: 1rem; font-style: italic; color: #555; margin-bottom: 1rem; }
.testimonial-author .name { font-weight: 700; font-size: 1.1rem; color: var(--dark-color); margin-bottom: 0.2rem; }
.testimonial-author .achievement { font-size: 0.9rem; color: var(--secondary-color); font-weight: 600; }

/* PC: Grid Wrap */
@media (min-width: 769px) {
    .video-testimonials-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        overflow-x: visible;
    }
    .video-testimonial-card {
        flex: auto;
        max-width: 100%;
    }
}

/* === PREGUNTAS FRECUENTES === */
.faq-accordion { max-width: 800px; margin: 3rem auto 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.5rem 1rem; font-size: 1.2rem; font-weight: 600; cursor: pointer; position: relative; color: var(--dark-color); }
.faq-question::after { content: '+'; position: absolute; right: 1rem; font-size: 1.5rem; color: var(--secondary-color); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 1rem 1.5rem 1rem; }
.faq-item.active .faq-answer { max-height: 300px; }

/* === PRECIOS Y GARANTÍA === */
.pricing-guarantee { background-color: var(--bg-light-gray); }
.special-offers { text-align: center; margin-bottom: 3rem; }
.special-offers h3 { color: var(--dark-color); font-size: 2rem; margin-bottom: 2rem; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.offer-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: var(--light-color); padding: 1.5rem; border-radius: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.offer-card * { color: var(--light-color); }
.offer-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.offer-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.offer-card p { font-size: 0.9rem; margin: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 4rem; }
.pricing-card { background: var(--light-color); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden; position: relative; }
.pricing-header { text-align: center; padding: 2rem 1rem 1rem 1rem; }
.pricing-header h3 { color: var(--dark-color); font-size: 1.5rem; margin-bottom: 1rem; }
.price { font-size: 3rem; font-weight: 900; color: var(--primary-color); }
.price span { font-size: 1rem; font-weight: 600; }
.pricing-features { list-style: none; padding: 0 2rem; margin-bottom: 2rem; }
.pricing-features li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-btn { display: block; text-align: center; margin: 0 2rem 2rem 2rem; }
.featured { border: 3px solid var(--primary-color); transform: scale(1.05); }
.pricing-badge { position: absolute; top: 0; right: 0; background: var(--primary-color); color: var(--light-color); padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 700; border-radius: 0 15px 0 15px; }

/* === GARANTÍA VISUAL === */
.guarantee-section { background-color: var(--secondary-color); width: 100%; padding: 4rem 2rem; text-align: center; color: #FFFFFF; }
.guarantee-title { color: #FFFF00; font-weight: 900; font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.guarantee-text { font-size: 1.1rem; max-width: 70%; margin: 0 auto 3rem auto; line-height: 1.6; color: #FFFFFF; }
.guarantee-seal { width: 220px; height: 220px; border-radius: 50%; background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%); border: 8px solid #FFD700; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 3rem auto; box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(255,215,0,0.3); position: relative; }
.seal-stars { font-size: 1.5rem; margin-bottom: 0.5rem; color: #000000; }
.seal-text { font-size: 3.5rem; font-weight: 900; color: #000000; text-transform: uppercase; line-height: 1; }
.seal-subtitle .garantia { font-size: 1.4rem; color: #000000; text-transform: uppercase; font-weight: 700; }
.seal-subtitle .de-satisfaccion { font-size: 0.9rem; color: #000000; text-transform: uppercase; font-weight: 700; }
.pricing-block { margin-top: 2rem; }
.price-old { color: #00FFFF; font-size: 1.2rem; text-decoration: line-through; font-weight: 700; margin-bottom: 0.5rem; }
.price-title { color: #FFFFFF; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 1rem; }
.price-final { color: #FFFF00; font-size: 3.5rem; font-weight: 900; text-shadow: 3px 3px 6px rgba(0,0,0,0.7); margin: 0; }

/* === BONUS SECTION === */
.bonus-section { background: linear-gradient(135deg, #800000 0%, #5C0000 100%); padding: 6rem 0; color: #FFFFFF; }
.bonus-content { display: grid; grid-template-columns: 40% 60%; gap: 3rem; align-items: center; }
.bonus-left { text-align: center; }
.bonus-bundle { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.bonus-banner { background: #0D47A1; color: #FFFFFF; padding: 1rem; border-radius: 10px; font-weight: 900; font-size: 1.2rem; margin-top: 1rem; display: inline-block; }
.bonus-right { padding-left: 2rem; }
.bonus-title { font-size: 3rem; font-weight: 900; color: var(--secondary-color); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.bonus-subtitle { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }
.bonus-description { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; }
.bonus-list-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bonus-list { list-style: none; padding: 0; margin: 0; }
.bonus-list li { display: flex; align-items: center; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--secondary-color); font-weight: bold; }
.check-icon { background: var(--secondary-color); color: #FFFFFF; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; margin-right: 0.5rem; font-weight: bold; }

/* === HORARIOS === */
.schedules { background-color: var(--bg-light-gray); padding: 6rem 0; }
.schedules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.schedule-card { background: var(--light-color); padding: 2rem; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; }
.schedule-card h3 { color: var(--secondary-color); font-size: 1.5rem; margin-bottom: 1rem; }
.schedule-card p { color: var(--text-color-light); margin-bottom: 0.5rem; font-size: 0.9rem; }

/* === FACILIDADES DE PAGO === */
.payment-facilities { background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%); padding: 4rem 0; text-align: center; color: #FFFFFF; }
.facilities-content { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.facilities-icon { font-size: 4rem; margin-bottom: 1rem; }
.facilities-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 1.5rem; color: #FFFFFF; }
.facilities-description { font-size: 1.2rem; line-height: 1.6; margin-bottom: 2rem; color: #FFFFFF; }
.facilities-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.facilities-btn { background-color: #FFFFFF; color: #4CAF50; font-weight: 700; }

/* === MAPA Y UBICACIÓN === */
.location-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.location-image { max-width: 100%; height: auto; border-radius: 10px; margin-top: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.map-container { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.map-container iframe { width: 100%; height: 400px; border: none; }
.final-cta { background: var(--secondary-color); text-align: center; color: var(--light-color); }
.final-cta .section-title, .final-cta p { color: var(--light-color); }
.final-cta .cta-button.final { background-color: var(--primary-color); }

/* === FOOTER === */
.footer { background-color: var(--dark-color); color: var(--light-color); text-align: center; padding: 2.5rem 0; }

/* === POPUP DE SALIDA === */
.exit-popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 9999; animation: fadeIn 0.3s ease; }
.exit-popup-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--light-color); padding: 2rem; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); max-width: 500px; width: 90%; text-align: center; animation: slideIn 0.3s ease; }
.exit-popup-close { position: absolute; top: 10px; right: 15px; font-size: 2rem; cursor: pointer; color: var(--dark-color); transition: color 0.3s ease; }
.exit-popup-close:hover { color: var(--primary-color); }
.exit-popup h3 { color: var(--dark-color); margin-bottom: 1rem; font-size: 1.5rem; }
.exit-popup-benefits { margin-bottom: 2rem; }
.benefit-item { background: #f0f0f0; padding: 0.5rem; margin-bottom: 0.5rem; border-radius: 5px; font-size: 0.9rem; color: var(--dark-color); }
.exit-popup-buttons { display: flex; gap: 0.5rem; flex-direction: column; }
.exit-popup-btn { margin-top: 0.5rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translate(-50%, -60%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

/* === RESPONSIVO MÓVIL === */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 2.8rem; }
    section { padding: 4rem 1rem; }
    .container { padding: 0 1.5rem; }
    .steps-grid, .features-grid, .location-content, .stats-grid, .director-block { grid-template-columns: 1fr; }
    .video-testimonials-container { padding-left: 1rem; padding-right: 1rem; }
    .trust-badges { grid-template-columns: repeat(2, 1fr); }
    .time-block { min-width: 70px; padding: 0.8rem 0.5rem; }
    .time-number { font-size: 2.2rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .featured { transform: none; }
    .guarantee-text { max-width: 90%; }
    .bonus-content { grid-template-columns: 1fr; gap: 2rem; }
    .bonus-right { padding-left: 0; text-align: center; }
    .schedules-grid { grid-template-columns: 1fr; }
    .offers-grid { grid-template-columns: 1fr; }
}