/* ===== index.css completo y corregido ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* Contenedor del video - cubre toda la pantalla sin scroll */
.yt-video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.yt-video-wrapper video,
.yt-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 177.77777778vh;  /* para que cubra horizontalmente */
    min-height: 56.25vw;        /* para que cubra verticalmente */
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    border: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.38);
    z-index: -1;
    transition: background 0.4s;
}

body.page-open .overlay {
    background: rgba(0,0,0,0.72);
}

.page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeIn 0.35s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
    width: 100%;
}

.btn-close-page {
    position: fixed;
    top: 1.4rem;
    right: 1.5rem;
    z-index: 200;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-close-page:hover {
    background: rgba(255,255,255,0.25);
}

#page-mv      { background: rgba(13,31,10,0.97);  backdrop-filter: blur(14px); }
#page-contacto{ background: rgba(8,20,6,0.97);    backdrop-filter: blur(14px); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(195,230,160,0.12);
    border: 1px solid rgba(195,230,160,0.35);
    border-radius: 40px;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c3e6a0;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 3rem;
    max-width: 540px;
    line-height: 1.15;
}

.mv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 2rem;
}

.mv-card {
    background: rgba(255,255,255,0.06);
    border-radius: 28px;
    padding: 2.2rem 1.8rem;
    border: 1px solid rgba(195,230,150,0.22);
    transition: 0.3s;
}

.mv-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: #c3e6a0;
}

.mv-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(195,230,160,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.mv-icon i {
    font-size: 1.4rem;
    color: #c3e6a0;
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.mv-card p {
    font-size: 0.96rem;
    line-height: 1.7;
    opacity: 0.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 1.3rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(195,230,150,0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: 0.2s;
}

.contact-card:hover {
    border-color: rgba(195,230,150,0.5);
    background: rgba(255,255,255,0.09);
}

.contact-card i {
    color: #c3e6a0;
    font-size: 1.2rem;
    margin-top: 2px;
}

.cc-lbl {
    font-size: 0.68rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.cc-val {
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-note {
    border-top: 1px solid rgba(195,230,150,0.14);
    padding-top: 1.4rem;
    font-size: 0.76rem;
    opacity: 0.5;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#inicio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    padding: 3px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #065d00;
}

.logo-text p {
    font-size: 0.58rem;
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.nav-links a.active {
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

.nav-links a:hover {
    opacity: 0.75;
}

.btn-login {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 0.45rem 1.1rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: 0.2s;
    font-size: 0.88rem;
}

.btn-login:hover {
    background: rgba(255,255,255,0.25);
}

.hero-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 3rem 4rem;
}

.hero-figure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    max-width: 780px;
    width: 100%;
    text-align: left;
    backdrop-filter: blur(2px);
}

.hero-quote {
    max-width: 85%;
    margin-top: 0.5rem;
    margin-left: 0;
    margin-right: auto;
}

.hero-quote h2 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    background: linear-gradient(135deg, #ffffff 0%, #e2f0cf 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    text-align: left;
}

.hero-quote p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 1px;
    margin-top: 0.75rem;
    text-align: left;
}

.btn-asesor-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    background: #25d366;
    border: none;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: 0.25s;
    text-decoration: none;
}

.btn-asesor-float:hover {
    background: #1eb858;
    transform: translateY(-2px);
}

/* MODAL DE LOGIN */
.modal-login {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-login-card {
    background: linear-gradient(135deg, #1a2a15 0%, #0f1a0c 100%);
    max-width: 420px;
    width: 90%;
    border-radius: 32px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid #c3e6a0;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    position: relative;
}

.modal-login-card .close-modal-login {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 28px;
    cursor: pointer;
    color: #c3e6a0;
    line-height: 1;
    transition: 0.2s;
}

.modal-login-card .close-modal-login:hover {
    color: #fff;
}

.modal-login-icon {
    font-size: 3.5rem;
    color: #c3e6a0;
    margin-bottom: 0.5rem;
}

.modal-login-card h3 {
    margin: 0.5rem 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.modal-login-card input {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.9rem 1.2rem;
    border-radius: 60px;
    border: none;
    background: #f6fdf0;
    font-size: 0.95rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.modal-login-card input:focus {
    border: 2px solid #c3e6a0;
    background: #fff;
}

.modal-login-card button {
    background: linear-gradient(135deg, #6f9852 0%, #4a6e2f 100%);
    width: 100%;
    padding: 0.9rem;
    border-radius: 60px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.2s;
}

.modal-login-card button:hover {
    background: linear-gradient(135deg, #5a7e42 0%, #3d5a26 100%);
    transform: translateY(-2px);
}

.modal-login-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-login-card small {
    display: block;
    margin-top: 1rem;
    opacity: 0.6;
    font-size: 0.7rem;
    color: #c3e6a0;
}

.login-error {
    color: #ff8888;
    font-size: 0.8rem;
    margin-top: 0.8rem;
    background: rgba(255,0,0,0.15);
    padding: 0.5rem;
    border-radius: 12px;
}

.logo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 1100;
    cursor: pointer;
}

.logo-modal img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 24px;
    border: 2px solid #c3e6a0;
}

/* ========== MEDIA QUERIES RESPONSIVE ========== */
@media (max-width: 860px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .hero-body {
        padding: 1rem 1.5rem 4rem;
    }
    .hero-figure {
        gap: 1.5rem;
    }
    .hero-quote h2 {
        font-size: 1.8rem;
    }
    .page-inner {
        padding: 4.5rem 1.4rem 3rem;
    }
}

@media (max-width: 680px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .logo-area {
        margin-bottom: 10px;
    }
    .nav-links {
        justify-content: center;
        gap: 0.8rem;
    }
    .nav-links a {
        white-space: normal;
        font-size: 0.85rem;
    }
    .btn-login {
        margin-top: 5px;
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
    }
    .hero-figure {
        align-items: center;
        text-align: center;
    }
    .hero-quote {
        max-width: 100%;
    }
    .hero-quote h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    .hero-quote p {
        text-align: center;
    }
    .hero-body {
        padding: 1rem 1rem 3rem;
    }
    .btn-asesor-float {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .mv-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .mv-card {
        padding: 1.5rem;
    }
    .section-title {
        max-width: 100%;
        text-align: center;
    }
    .section-label {
        justify-content: center;
    }
    .footer-note {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-inner {
        padding: 3.5rem 1rem 2rem;
    }
    .btn-close-page {
        top: 0.8rem;
        right: 0.8rem;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .modal-login-card {
        padding: 1.8rem 1.2rem;
    }
    .modal-login-card input {
        padding: 0.7rem 1rem;
    }
    .hero-quote h2 {
        font-size: 1.3rem;
    }
}