/* css/style.css */

:root {
    --enaria-dark-blue: #0b1a33;
    --enaria-card-bg: rgba(20, 38, 70, 0.6);
    --enaria-light-blue: #3c78b4;
    --enaria-accent: #87ceeb;
    --enaria-pink-accent: #e91e63;
    --text-color-light: #f8f9fa;
    --text-color-medium: #adb5bd;
    --border-color: rgba(135, 206, 235, 0.2);
    --shadow-medium: 0 5px 25px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    background-color: var(--enaria-dark-blue);
    color: var(--text-color-medium);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--enaria-accent); }
a:hover { color: var(--text-color-light); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--text-color-light); }

#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--enaria-dark-blue);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    opacity: 1; visibility: visible;
}
#splash-screen.hidden { opacity: 0; visibility: hidden; }

/* ===== LÍNEA MODIFICADA AQUÍ ===== */
#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' para que el video se vea completo */
}

.background-video-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; background-color: var(--enaria-dark-blue);
}
#bg-video { width: 100vw; height: 100vh; object-fit: cover; filter: brightness(0.4); }

.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: var(--enaria-card-bg);
    backdrop-filter: blur(10px); z-index: 1000;
    padding: 0.8rem 0; border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease-out;
}
.header:not(.is-visible) { transform: translateY(-100%); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header-left .logo img { height: 50px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; }
.main-nav a { color: var(--text-color-light); font-weight: 600; font-size: 1rem; transition: var(--transition); }
.main-nav a:hover { color: var(--enaria-accent); }

.hero-fullscreen { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.hero-fullscreen-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 1400px; }
.hero-global-logo { max-width: 450px; width: 100%; height: auto; margin-bottom: 3rem; }
.hero-columns-container { display: flex; width: 100%; gap: 3rem; align-items: center; }
.hero-left, .hero-right { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-title { font-size: clamp(2rem, 3.5vw, 3rem); text-align: center; margin-bottom: 2rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero-cta-box { background: var(--enaria-card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 2.5rem; text-align: center; max-width: 500px; width: 100%; }
.hero-cta-box h2 { font-size: 2rem; color: var(--enaria-accent); margin-bottom: 1rem; }
.hero-cta-box p { font-size: 1.1rem; margin-bottom: 2rem; }

.video-container { width: 100%; max-width: 800px; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-medium); border: 2px solid var(--enaria-accent); position: relative; }
.video-container video { width: 100%; height: auto; display: block; }

.toggle-audio-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    z-index: 10;
}
.toggle-audio-button:hover {
    background-color: var(--enaria-pink-accent);
    transform: scale(1.05);
}
.toggle-audio-button svg {
    width: 20px;
    height: 20px;
}

.cta-button { display: inline-block; padding: 0.9rem 2.2rem; border-radius: 50px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 2px solid transparent; transition: var(--transition); cursor: pointer; text-align: center; }
.cta-button.join-button { background-color: var(--enaria-pink-accent); color: white; box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4); }
.cta-button.join-button:hover { background-color: var(--text-color-light); color: var(--enaria-pink-accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5); }

.section-to-animate { opacity: 0; transform: translateY(50px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.section-to-animate.is-visible { opacity: 1; transform: translateY(0); }

.section-title { margin-bottom: 3rem; text-align: center; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 0.5rem; }
.section-title p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; }
.problem, .opportunity, .register { padding-top: 5rem; padding-bottom: 5rem; }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.problem-card, .opportunity-card { background: var(--enaria-card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 2.5rem; text-align: center; transition: var(--transition); }
.problem-card:hover, .opportunity-card:hover { transform: translateY(-5px); background: rgba(60, 120, 180, 0.3); border-color: var(--enaria-accent); }
.problem-card .icon svg { color: var(--enaria-accent); width: 50px; height: 50px; margin-bottom: 1.5rem; }
.problem-card h3 { color: var(--text-color-light); font-size: 1.4rem; margin-bottom: 1rem; }
.opportunity-card { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.opportunity-image img { width: 100%; max-width: 500px; border-radius: var(--border-radius); }
.opportunity-content { max-width: 600px; }
.opportunity-content h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.opportunity-content p { margin-bottom: 2rem; }
.transition-title-section { padding: 4rem 0 2rem 0; text-align: center; }
.transition-title-section h2 { font-size: 3rem; font-weight: 800; max-width: 900px; margin: 0 auto; background: linear-gradient(45deg, var(--enaria-accent), #ffffff, var(--enaria-light-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.register { background: linear-gradient(rgba(11, 26, 51, 0.8), rgba(11, 26, 51, 0.9)), url(../assets/images/background.jpg) no-repeat center center/cover; }

.footer { background: var(--enaria-dark-blue); padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); margin-top: 4rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-section h4 { color: var(--text-color-light); margin-bottom: 1rem; }
.footer-logo-section .footer-logo { height: 40px; margin-bottom: 1rem; }
.footer-contact-details { font-size: 0.9rem; line-height: 1.6; }
.footer-contact-details strong { color: var(--text-color-light); }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; text-align: center; font-size: 0.9rem; }

.contact-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 2000; backdrop-filter: blur(5px); }
.contact-modal-content { position: relative; background: var(--enaria-dark-blue); padding: 2.5rem; border-radius: var(--border-radius); text-align: center; max-width: 500px; width: 90%; border: 1px solid var(--enaria-accent); box-shadow: var(--shadow-medium); }
.contact-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-color-medium); font-size: 2rem; cursor: pointer; }
.contact-modal-logo { height: 50px; margin-bottom: 1.5rem; }
.contact-modal-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.contact-modal-text { margin-bottom: 2rem; }
.contact-modal-buttons { display: flex; flex-direction: column; gap: 1rem; }
.contact-modal-button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 1rem; border-radius: 8px; text-decoration: none; font-size: 1.1rem; font-weight: 600; transition: var(--transition); color: white; }
.contact-modal-button svg { width: 24px; height: 24px; }
.contact-modal-button.direct { background-color: #25D366; }
.contact-modal-button.direct:hover { background-color: #1EBE57; }
.contact-modal-button.group { background-color: var(--enaria-light-blue); }
.contact-modal-button.group:hover { background-color: var(--enaria-accent); color: var(--enaria-dark-blue); }
.contact-modal-button.join-button { border: 2px solid var(--enaria-pink-accent); }

.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 2001; }
.mobile-nav-toggle .icon-bar { display: block; width: 25px; height: 3px; background-color: var(--text-color-light); margin: 5px 0; transition: all 0.3s ease-in-out; }
.mobile-nav-toggle.is-active .icon-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle.is-active .icon-bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-active .icon-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.body-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
.body-overlay.is-active { opacity: 1; visibility: visible; }
.mobile-menu-panel { position: fixed; top: 0; right: -100%; width: 85vw; max-width: 380px; height: 100%; background-color: var(--enaria-dark-blue); box-shadow: -5px 0 15px rgba(0,0,0,0.4); z-index: 2000; transition: right 0.4s ease-in-out; padding: 1.5rem; text-align: center; }
.mobile-menu-panel.is-open { right: 0; }
.mobile-menu-logo { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.mobile-menu-logo img { height: 45px; }
.mobile-menu-panel ul { list-style: none; padding: 0; width: 100%; }
.mobile-menu-panel li { margin-bottom: 0.8rem; }
.mobile-menu-panel a { display: block; color: var(--text-color-light); font-size: 1.1rem; font-weight: 600; padding: 12px; border-radius: var(--border-radius); transition: var(--transition); }
.mobile-menu-panel a:hover { color: var(--enaria-accent); background-color: rgba(255, 255, 255, 0.05); }
.mobile-menu-panel .cta-button { margin-top: 1.5rem; width: 100%; }

.hero-page { padding: 10rem 0 5rem 0; text-align: center; }
.hero-page-logo { max-height: 80px; margin-bottom: 2rem; }
.hero-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.hero-page-subtitle { font-size: 1.2rem; max-width: 700px; margin: 1rem auto 0; color: var(--text-color-medium); }
.comp-plan-container { padding-bottom: 5rem; }
.comp-plan-section { margin-bottom: 3rem; }
.comp-plan-card { background: var(--enaria-card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 2.5rem; backdrop-filter: blur(5px); }
.comp-plan-card h2, .comp-plan-card h3 { color: var(--enaria-accent); margin-bottom: 1.5rem; }
.comp-plan-card .note { font-size: 0.9rem; color: var(--text-color-medium); margin-top: 1.5rem; font-style: italic; }
.table-responsive { overflow-x: auto; margin-top: 1.5rem; }
.plan-table { width: 100%; border-collapse: collapse; text-align: left; }
.plan-table th, .plan-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.plan-table thead th { background-color: rgba(135, 206, 235, 0.1); color: var(--text-color-light); font-weight: 600; }
.plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table td:nth-child(2), .plan-table td:nth-child(3) { font-weight: 700; font-size: 1.2rem; color: var(--enaria-accent); }
.qualification-table td:nth-child(2) { color: var(--text-color-light); font-size: 1rem; }
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.comp-plan-card.dual-column { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.comp-plan-image { text-align: center; position: relative; }
.comp-plan-image img { max-width: 100%; height: auto; border-radius: var(--border-radius); }

.plan-intro-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.zoom-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.zoom-button:hover {
    background-color: var(--enaria-pink-accent);
    transform: scale(1.1);
}
.zoom-button svg {
    width: 20px;
    height: 20px;
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 2rem;
    backdrop-filter: blur(8px);
}
#modal-image-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.image-modal-overlay .contact-modal-close {
    z-index: 3001;
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .footer-content { grid-template-columns: 1fr; }
    .hero-global-logo { max-width: 300px; }
    .hero-columns-container { flex-direction: column; }
}

@media (max-width: 768px) {
    h1, .hero-title, .hero-cta-box h2, .hero-page h1 { font-size: 2rem; }
    h2, .section-title h2, .transition-title-section h2 { font-size: 1.8rem; }
    .problem-grid { grid-template-columns: 1fr; }
    .opportunity-card { flex-direction: column; }
    .benefit-grid, .comp-plan-card.dual-column { grid-template-columns: 1fr; }
    .hero-page { padding-top: 8rem; }
    .hero-page-logo { max-height: 60px; }
    .comp-plan-card { padding: 1.5rem; }
    .plan-table th, .plan-table td { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .plan-table td:nth-child(2), .plan-table td:nth-child(3) { font-size: 1rem; }
}
/* ===== ESTILOS PARA LA PÁGINA 'PASO A PASO' ===== */

.steps-container {
    padding-bottom: 5rem;
}

.step-section {
    margin-bottom: 4rem;
}

.step-title {
    text-align: center;
    margin-bottom: 2rem;
}

.step-title h2 {
    font-size: 2.8rem;
    color: var(--text-color-light);
    display: inline-block;
    border-bottom: 3px solid var(--enaria-accent);
    padding-bottom: 0.5rem;
}

.step-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--enaria-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.step-left-video .step-video { order: 1; }
.step-left-video .step-content { order: 2; }
.step-right-video .step-video { order: 2; }
.step-right-video .step-content { order: 1; }

.step-content h3 {
    font-size: 2rem;
    color: var(--enaria-accent);
    margin-bottom: 1.5rem;
}

.step-content p {
    margin-bottom: 1.5rem;
}

.step-content .cta-button {
    margin-top: 1rem;
}

.step-details-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.step-details-list li {
    background-color: rgba(0,0,0,0.2);
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--enaria-pink-accent);
    font-size: 0.95rem;
}

.step-details-list li strong {
    color: var(--text-color-light);
}

.step-extra-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.step-extra-links a {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .step-title h2 {
        font-size: 2.2rem;
    }
    
    .step-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .step-left-video .step-video,
    .step-right-video .step-video,
    .step-left-video .step-content,
    .step-right-video .step-content {
        order: 0; /* Resetea el orden en móvil */
    }

    .step-content h3 {
        font-size: 1.8rem;
    }
}
/* ===== ESTILOS PARA LA PÁGINA 'PASO A PASO' ===== */

.steps-container {
    padding-bottom: 5rem;
}

.step-section {
    margin-bottom: 4rem;
}

.step-title {
    text-align: center;
    margin-bottom: 2rem;
}

.step-title h2 {
    font-size: 2.8rem;
    color: var(--text-color-light);
    display: inline-block;
    border-bottom: 3px solid var(--enaria-accent);
    padding-bottom: 0.5rem;
}

.step-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--enaria-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.step-left-video .step-video { order: 1; }
.step-left-video .step-content { order: 2; }
.step-right-video .step-video { order: 2; }
.step-right-video .step-content { order: 1; }

.step-content h3 {
    font-size: 2rem;
    color: var(--enaria-accent);
    margin-bottom: 1.5rem;
}

.step-content p {
    margin-bottom: 1.5rem;
}

.step-content .cta-button {
    margin-top: 1rem;
}

.step-details-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.step-details-list li {
    background-color: rgba(0,0,0,0.2);
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--enaria-pink-accent);
    font-size: 0.95rem;
}

.step-details-list li strong {
    color: var(--text-color-light);
}

.step-extra-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.step-extra-links a {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .step-title h2 {
        font-size: 2.2rem;
    }
    
    .step-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .step-left-video .step-video,
    .step-right-video .step-video,
    .step-left-video .step-content,
    .step-right-video .step-content {
        order: 0; /* Resetea el orden en móvil */
    }

    .step-content h3 {
        font-size: 1.8rem;
    }
}
/* ===== ESTILOS PARA BOTONES FINALES CTA ===== */
.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.final-cta-buttons .contact-modal-button {
    max-width: 320px;
    width: 100%;
}