/* =========================================
   1. RESET BÁSICO
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Evita que el menú tape los títulos */
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. ESTILOS GENERALES Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;800&family=Playfair+Display:wght@400;700&display=swap');

:root {
    /* PALETA PREMIUM */
    --mv-gold: #D4AF37;
    --mv-gold-dark: #aa8c2c;
    --mv-turquoise: #008B8B;
    --mv-turquoise-dark: #006666;
    --mv-turquoise-light: #E0F7FA;
    --mv-coral: #FF6B6B;

    /* FONDOS */
    --mv-bg-body: #F0F4F5;
    --mv-bg-alt: #E6EEEE;

    --mv-text: #2c3e50;
    --mv-white: #ffffff;

    /* Gradientes */
    --mv-hero-gradient: linear-gradient(135deg, #006666 0%, #008B8B 100%);
    --mv-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);

    /* Sombras */
    --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 --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* =========================================
   3. COMPONENTES (NAV, HERO, BOTONES)
   ========================================= */

/* 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%;
}

.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;
}

/* Botón Nav */
.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 {
    background: var(--mv-hero-gradient);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: white;
    text-align: center;
    padding: 40px 20px 150px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-logo-img {
    display: block;
    margin: 0 auto 30px auto;
    height: 280px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    background: transparent;
    border: none;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--mv-gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.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;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 20px;
    opacity: 0.95;
    font-weight: 300;
}

.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;
    /* min-height: 90vh;  QUITADO TEMPORALMENTE PARA EVITAR HUECOS BLANCOS EXCESIVOS EN MÓVIL */
}

.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 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARDS */
.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 */
.teachers-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.teacher-box {
    background: white;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--mv-turquoise);
    transition: 0.4s;
    width: 100%;
}

.teacher-box:hover {
    transform: translateX(10px);
}

.teacher-img-area {
    background: var(--mv-turquoise);
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.teacher-img-area img {
    width: 170px;
    height: 230px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top center;
    display: block;
    /* border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); */
}

.teacher-img-area i {
    font-size: 5rem;
    color: white;
}

.teacher-content {
    padding: 40px;
    width: 65%;
}

.teacher-content h3 {
    text-transform: uppercase;
    color: var(--mv-turquoise);
}

.teacher-content ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.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);
}

/* WHATSAPP FLOTANTE */
.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: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
}

.float-wa:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* =========================================
   4. MEDIA QUERIES (RESPONSIVE) - AL FINAL
   ========================================= */

/* Tablet y Desktop Pequeño (992px) */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero {
        padding: 100px 20px;
    }

    /* MENÚ HAMBURGUESA */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Oculto por defecto */
        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;
        /* Se muestra con JS */
    }

    .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;
    }

    /* GRIDS A 1 COLUMNA */
    .grid-2,
    .grid-3,
    .help-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .price-tag {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .discount-bubble {
        right: -10px;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }

    .help-item {
        padding: 30px;
    }
}

/* Laptops (993px - 1200px) */
@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;
    }
}

/* Móviles (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .teacher-box {
        flex-direction: column;
    }

    .teacher-img-area {
        width: 100%;
        padding: 40px 0;
    }

    .teacher-content {
        width: 100%;
        padding: 30px 20px;
    }

    .endorsement-logo {
        height: 70px;
    }

    .logo-fgu {
        height: 100px;
    }
}

/* Móviles Pequeños (576px) */
@media (max-width: 576px) {
    .footer-grid {
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Móviles Muy Pequeños (480px) */
@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;
    }
}