/* =========================================
   1. RESET BÁSICO Y SEGURIDAD
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 100vw; overflow-x: hidden; margin: 0; padding: 0; position: relative; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. ESTILOS GENERALES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;800&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --mv-gold: #D4AF37; --mv-gold-dark: #aa8c2c;
    --mv-turquoise: #008B8B; --mv-turquoise-dark: #006666; --mv-turquoise-light: #E0F7FA;
    --mv-coral: #FF6B6B;
    --mv-bg-body: #F0F4F5; --mv-bg-alt: #E6EEEE;
    --mv-text: #2c3e50; --mv-white: #ffffff;
    --mv-hero-gradient: linear-gradient(135deg, #006666 0%, #008B8B 100%);
    --mv-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    --shadow-soft: 0 15px 35px rgba(0, 139, 139, 0.08);
    --shadow-hover: 0 25px 50px rgba(0, 139, 139, 0.15);
}

body { font-family: 'Montserrat', sans-serif; color: var(--mv-text); background-color: var(--mv-bg-body); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--mv-turquoise); margin-top: 0; text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; padding: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- ANIMACIONES (DINAMISMO) --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }
@media (max-width: 768px) {
    .reveal-left { transform: translateY(30px); }
    .reveal-right { transform: translateY(30px); } 
}
.delay-100 { transition-delay: 0.1s; } .delay-200 { transition-delay: 0.2s; } .delay-300 { transition-delay: 0.3s; }

/* --- NAV --- */
.navbar {
    background: rgba(240, 244, 245, 0.98); backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky; top: 0; z-index: 1000;
    padding: 10px 0; border-bottom: 3px solid var(--mv-gold); width: 100%;
    transition: transform 0.3s ease-in-out; /* CLAVE PARA EL MOVIMIENTO DEL NAV */
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-logo { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--mv-gold); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.nav-links { display: flex; gap: 20px; align-items: center; margin-left: auto; }
.nav-links a { color: var(--mv-turquoise); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 10px; }
.nav-links a:hover { color: var(--mv-gold); }
.menu-toggle { display: none; font-size: 1.8rem; color: var(--mv-turquoise); cursor: pointer; }
.btn-nav {
    background-image: linear-gradient(to right, #FF6B6B 0%, #FF8E53 51%, #FF6B6B 100%); background-size: 200% auto;
    color: #fff !important; display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 35px; min-height: 50px; line-height: normal; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); transition: 0.5s; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; white-space: nowrap; border: none;
}
.btn-nav:hover { background-position: right center; transform: translateY(-2px); }

/* --- HERO --- */
.hero { position: relative; color: white; text-align: center; min-height: 90vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: var(--mv-blue-deep); z-index: 1; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 40, 70, 0.75); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 40px 20px 80px; width: 100%; max-width: 900px; }
.hero-logo-img {
    display: block; margin: 0 auto 30px auto; height: auto; width: 100%; max-width: 250px;
    object-fit: contain; background: transparent; border: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); animation: float 6s ease-in-out infinite; position: relative; z-index: 5;
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; line-height: 1.1; margin-bottom: 15px; color: var(--mv-gold); text-shadow: 0 2px 10px rgba(0,0,0,0.8); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.hero h2 { font-family: 'Montserrat', sans-serif; color: white; font-size: 1.1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 40px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 50px; opacity: 0.95; font-weight: 300; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.btn-hero { background: var(--mv-gold-gradient); color: white; padding: 18px 45px; font-size: 1rem; font-weight: 700; border-radius: 5px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); transition: all 0.3s ease; }
.btn-hero:hover { transform: scale(1.05) translateY(-3px); }

/* --- SECCIONES --- */
.section { padding: 80px 0; display: flex; flex-direction: column; justify-content: center; }
.bg-light { background-color: var(--mv-bg-alt); }
.bg-turquoise { background-color: var(--mv-turquoise-light); }
.section-title, .section-Esencia { text-align: center; margin-bottom: 15px; }
.section-title h2, .section-Esencia h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--mv-turquoise); }
.section-title .divider, .section-Esencia .divider { width: 80px; height: 4px; background: var(--mv-coral); margin: 0 auto; border-radius: 2px; }
.section-intro { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; line-height: 1.8; color: #555; max-width: 800px; margin: 0 auto 30px auto; font-weight: 400; text-align: center; }

/* GRIDS Y CARDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card-premium {
    background: white; padding: 50px 40px; border-radius: 20px; box-shadow: var(--shadow-soft);
    border-top: 5px solid transparent; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(0,0,0,0.05);
}
.card-premium:hover { transform: translateY(-15px); border-top-color: var(--mv-turquoise); box-shadow: var(--shadow-hover); }
.card-premium h3 { color: var(--mv-turquoise); margin-bottom: 20px; }

/* AVALES */
.logos-container { display: flex; justify-content: center; align-items: center; height: 120px; margin-bottom: 15px; width: 100%; }
.endorsement-logo { height: auto; max-height: 100px; max-width: 100%; object-fit: contain; filter: none; opacity: 1; transition: transform 0.3s ease; }
.endorsement-logo:hover { transform: scale(1.1) rotate(3deg); }
.info-card {
    background: white; padding: 30px; border-radius: 15px; box-shadow: var(--shadow-soft); text-align: center;
    transition: 0.3s; border-bottom: 4px solid var(--mv-gold); display: flex; flex-direction: column; align-items: center;
}
.info-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.info-card h4 { color: var(--mv-turquoise); margin-bottom: 5px; font-size: 1.2rem; font-weight: 700; min-height: 50px; display: flex; align-items: center; justify-content: center; }

/* PRECIOS */
.course-container {
    background: white; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); overflow: visible;
    text-align: center; padding-bottom: 40px; width: 100%; border: 1px solid #eee; margin-top: 30px;
}
.course-header { background: var(--mv-turquoise); color: white; padding: 30px 20px; border-radius: 20px 20px 0 0; }
.course-header h3 {
    color: var(--mv-gold); margin-bottom: 10px; font-size: 1.8rem;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0px 2px 5px rgba(0,0,0,0.3); letter-spacing: 1px;
}
.pricing-grid { display: flex; justify-content: center; gap: 40px; padding: 50px 40px 40px; flex-wrap: wrap; }
.price-tag {
    background: #fff; padding: 30px 20px; border-radius: 15px; border: 2px solid #eee;
    min-width: 300px; box-sizing: border-box; transition: 0.3s; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.price-tag:hover { border-color: var(--mv-turquoise); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.active-tag { border: 2px solid var(--mv-gold); background: #fff; box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15); }
.discount-bubble {
    position: absolute; top: -20px; right: -20px; background-color: var(--mv-coral); color: white;
    width: 70px; height: 70px; border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transform: rotate(15deg); z-index: 10;
}
.bubble-text { font-size: 0.7rem; font-weight: 600; margin-top: 2px; }
.price-label { font-size: 0.9rem; color: #555; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; letter-spacing: 1px; }
.old-price-small { font-size: 1.3rem; color: #aaa; text-decoration: line-through; font-weight: 600; margin-bottom: -5px; display: block; }
.price-amount { display: block; font-size: 3.5rem; font-weight: 800; color: var(--mv-text); font-family: 'Montserrat', sans-serif; line-height: 1.1; }
.price-sub { font-size: 1rem; color: #888; font-weight: 500; }
.price-save-text { margin-top: 10px; font-size: 0.85rem; color: var(--mv-coral); font-weight: 700; }
.btn-wide {
    background-image: linear-gradient(to right, #FF6B6B 0%, #FF4757 51%, #FF6B6B 100%); background-size: 200% auto;
    color: white; font-size: 1.1rem; padding: 18px 60px; display: inline-block; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
    transition: 0.5s; margin-top: 10px;
}
.btn-wide:hover { background-position: right center; transform: translateY(-3px); }

/* --- DOCENTES (ESTILO "SPLIT CARD" MODERNO) --- */
.teachers-container { display: flex; flex-direction: column; gap: 40px; }
.teacher-box {
    background: white; display: flex; border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.05); transition: 0.4s; width: 100%; min-height: 300px;
}
.teacher-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.teacher-img-area {
    width: 35%; position: relative; padding: 0; background: var(--mv-turquoise);
}
.teacher-img-area img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    display: block; border-radius: 0; border: none; box-shadow: none;
}
.teacher-img-area i {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 5rem; color: rgba(255,255,255,0.5);
}
.teacher-content {
    padding: 40px 50px; width: 65%; display: flex; flex-direction: column; justify-content: center;
}
.teacher-content h3 { text-transform: uppercase; color: var(--mv-turquoise); font-size: 1.5rem; margin-bottom: 5px; }
.teacher-content p { font-size: 0.95rem; letter-spacing: 0.5px; }
.teacher-content ul li { margin-bottom: 10px; padding-left: 25px; position: relative; font-size: 0.95rem; color: #555; }
.teacher-content ul li::before { content: '✓'; color: var(--mv-coral); position: absolute; left: 0; font-weight: bold; }

/* AYUDA */
.help-section { background-color: transparent; border-top: 1px solid rgba(0,0,0,0.05); }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.help-item {
    display: flex; align-items: center; gap: 20px; padding: 35px 30px; border-radius: 20px;
    background: white; transition: 0.3s; border: 1px solid transparent; box-shadow: var(--shadow-soft); height: 100%; box-sizing: border-box;
}
.help-item:hover { border-color: var(--mv-turquoise); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 139, 139, 0.15); }
.help-icon {
    width: 70px; height: 70px; background: var(--mv-turquoise) !important; color: white !important;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; transition: 0.3s;
}
.help-item:hover .help-icon { transform: rotate(360deg); background: var(--mv-gold) !important; }
.help-text { flex: 1; text-align: left; }
.help-text h4 { margin-bottom: 8px; font-size: 1.1rem; color: var(--mv-turquoise); font-weight: 700; }
.help-text p, .help-text a { margin: 0; font-size: 0.95rem; color: #666; line-height: 1.5; text-decoration: none; }
.help-text a:hover { color: var(--mv-gold); }

/* FOOTER */
footer {
    background-color: var(--mv-turquoise); color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 30px; border-top: 5px solid var(--mv-gold); font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 {
    color: white; font-family: 'Montserrat', sans-serif; font-size: 1.1rem;
    margin-bottom: 25px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.footer-brand h3 { color: var(--mv-gold); font-family: 'Playfair Display', serif; margin-bottom: 15px; }
.footer-brand p { line-height: 1.6; max-width: 300px; color: rgba(255, 255, 255, 0.8); }
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 12px; }
.footer-links-list a { color: white; opacity: 0.7; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links-list a:hover { color: var(--mv-gold); opacity: 1; transform: translateX(5px); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.social-links { display: flex; gap: 15px; }
.social-icon {
    color: white; font-size: 1.2rem; transition: 0.3s; width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.social-icon:hover { background: var(--mv-gold); color: var(--mv-turquoise); transform: translateY(-3px); }

/* BOTONES FLOTANTES */
.float-wa {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 9999;
    display: flex; align-items: center; justify-content: center; transition: 0.3s; text-decoration: none;
}
.float-wa:hover { background-color: #128c7e; transform: scale(1.1); }

.float-up {
    position: fixed; width: 50px; height: 50px; bottom: 100px; right: 35px;
    background-color: var(--mv-gold); color: white; border-radius: 50%;
    text-align: center; font-size: 20px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(20px);
}
.float-up.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-up:hover { background-color: var(--mv-turquoise); transform: scale(1.1); }

/* ESTILOS DEL PROGRAMA ACADÉMICO */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.module-card {
    background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column;
}
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--mv-turquoise); }
.module-header { background: var(--mv-turquoise); padding: 15px 20px; display: flex; align-items: center; gap: 15px; }
.module-number { font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,0.3); line-height: 1; }
.module-header h4 { color: white; margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.module-body { padding: 25px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.module-body ul { list-style: none; padding: 0; margin: 0 0 20px 0; }
.module-body ul li { font-size: 0.9rem; color: #555; margin-bottom: 8px; padding-left: 15px; position: relative; }
.module-body ul li::before { content: '•'; color: var(--mv-gold); position: absolute; left: 0; font-weight: bold; }
.module-hours { font-size: 0.8rem; font-weight: 700; color: var(--mv-turquoise); text-align: right; display: block; border-top: 1px solid #eee; padding-top: 10px; }

/* =========================================
   MEDIA QUERIES (RESPONSIVE) - AL FINAL
   ========================================= */

@media (max-width: 992px) {
    .section { padding: 60px 0; min-height: auto; }
    .hero { padding: 100px 20px; }
    
    .menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: var(--mv-bg-body);
        padding: 20px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        text-align: center; border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; }
    .nav-links a { display: block; padding: 15px 0; font-size: 1.1rem; border-bottom: 1px solid #eee; }
    .btn-nav { display: inline-block; margin-top: 15px; }

    .grid-2, .grid-3, .help-grid, .pricing-grid, .footer-grid, .modules-grid {
        grid-template-columns: 1fr; gap: 30px;
    }
    
    .pricing-grid { flex-direction: column; align-items: center; padding: 40px 20px; }
    .price-tag { width: 100%; max-width: 350px; margin: 0 auto; transform: none !important; }
    .discount-bubble { right: -10px; width: 60px; height: 60px; font-size: 0.9rem; }
    .help-item { padding: 30px; }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.75rem; }
    .nav-logo { font-size: 1.2rem; }
    .btn-nav { padding: 14px 25px; font-size: 0.8rem; line-height: normal; } 
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.8rem; }
    
    /* Docentes Full Size en Movil */
    .teacher-box { flex-direction: column; }
    .teacher-img-area { width: 100%; height: 300px; padding: 0; }
    .teacher-content { width: 100%; padding: 30px 20px; box-sizing: border-box; }
    
    .endorsement-logo { height: 70px; }
    .logo-fgu { height: 100px; }
    
    .float-wa { width: 50px; height: 50px; font-size: 24px; bottom: 20px; right: 20px; }
    .float-up { width: 40px; height: 40px; font-size: 18px; bottom: 80px; right: 25px; }
}

@media (max-width: 576px) {
    .footer-grid { text-align: center; }
    .footer-brand p { margin: 0 auto 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .nav-logo { font-size: 1rem; } 
    .menu-toggle { font-size: 1.5rem; }
    .hero h1 { font-size: 1.8rem; } 
    .price-tag, .card-premium { min-width: 100% !important; padding: 20px !important; }
    .discount-bubble { width: 50px; height: 50px; font-size: 0.8rem; right: -5px; top: -10px; }
}
/* --- MARCO DE VIDEO VERTICAL --- */
/* --- MARCO DE VIDEO VERTICAL (Actualizado) --- */
.video-frame {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid var(--mv-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    background-color: black;
    z-index: 10; /* ESTO ASEGURA QUE ESTÉ ENCIMA DE TODO */
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
}

/* Ajuste para móvil: Centrar el texto también */
@media (max-width: 768px) {
    .video-frame {
        max-width: 280px; /* Un poco más chico en móvil */
        margin-top: 30px;
    }
    /* Si quieres centrar el texto en móvil añade esto: */
    .reveal-left h2, .reveal-left h4, .reveal-left p, .reveal-left ul {
        text-align: center;
    }
    .reveal-left .divider { margin: 0 auto 20px auto !important; }
}

/* Agrega esto a tu Style.css */
.navbar-hidden {
    transform: translateY(-100%);
    box-shadow: none; /* Opcional: quita la sombra al subir */
}