/* Center Zone Guide - Eliminada por solicitud del usuario */
#center-guide {
    display: none;
}

:root {
    --purple: #9333ea;
    --yellow: #facc15;
    --red: #ef4444;
    --blue: #0ea5e9;
    --green: #22c55e;
    --cyan: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #ffffff;
    --door-color: #5d4037;
    --frame-color: #3e2723;
    --glow-color: rgba(255, 255, 230, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    overflow: hidden;
    /* Prevent default scroll */
    background: #000;
}

/* 3x3 Grid Layout */
#canvas-container {
    display: grid;
    grid-template-columns: repeat(3, 100vw);
    grid-template-rows: repeat(3, 100vh);
    width: 300vw;
    height: 300vh;
    scroll-behavior: smooth;
}

.section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--text-light);
    padding: 2rem;
}

/* Colors */
.purple {
    background-color: var(--purple);
}

.yellow {
    background-color: var(--yellow);
    color: var(--text-dark);
}

.red {
    background-color: var(--red);
}

.blue {
    background-color: var(--blue);
}

.green {
    background-color: var(--green);
}

.cyan {
    background-color: var(--cyan);
}

/* Colegio: fondo galáctico + partículas + logos Google flotantes */
.section.colegio {
    position: relative;
    color: #fff;
    background: radial-gradient(ellipse 120% 80% at 50% 20%, #1a0a2e 0%, transparent 50%),
                radial-gradient(ellipse 80% 120% at 80% 80%, #0d1b2a 0%, transparent 45%),
                radial-gradient(ellipse 100% 100% at 20% 50%, #16213e 0%, transparent 50%),
                linear-gradient(180deg, #0a0a1a 0%, #0d1b2a 40%, #1a1a2e 100%);
    overflow: hidden;
}

/* --- Info + Contactos (fila inferior, relleno del grid) --- */
.section.info,
.section.contactos {
    background:
        radial-gradient(ellipse 120% 80% at 50% 20%, rgba(34,197,94,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 80% 120% at 80% 80%, rgba(14,165,233,0.10) 0%, transparent 55%),
        linear-gradient(180deg, #070814 0%, #0a0a1a 55%, #0b0b12 100%);
    color: #fff;
}
.content--info,
.content--contactos {
    width: 100%;
    max-width: 1200px;
}
.info-title,
.contactos-title {
    margin: 0 0 1rem;
    color: #fff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.55);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.info-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.info-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: #22c55e; }
.info-card p { margin: 0; color: rgba(255,255,255,0.85); line-height: 1.5; }

.contact-toast {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
}
.contact-toast--ok { border-color: rgba(34,197,94,0.55); box-shadow: 0 0 0 1px rgba(34,197,94,0.22) inset; }
.contact-toast--err { border-color: rgba(239,68,68,0.55); box-shadow: 0 0 0 1px rgba(239,68,68,0.22) inset; }

.contactos-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: start;
}
.contactos-left,
.contactos-right {
    min-width: 0;
}
.contactos-datos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.contacto-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 14px;
}
.contacto-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: rgba(255,255,255,0.95);
}
.contacto-label i {
    color: #0ea5e9;
    filter: drop-shadow(0 0 10px rgba(14,165,233,0.28));
}
.contacto-value {
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.9);
}
.contactos-map {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.contactos-map iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.contactos-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.contactos-form .form-row {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}
.contactos-form label {
    font-weight: 900;
    color: rgba(255,255,255,0.92);
}
.contactos-form input,
.contactos-form textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(10,12,20,0.55);
    color: #fff;
    outline: none;
}
.contactos-form input:focus,
.contactos-form textarea:focus {
    border-color: rgba(34,197,94,0.6);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.16);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.contactos-submit {
    padding: 12px 16px;
    border-radius: 14px;
    border: 0;
    background: #22c55e;
    color: #07210f;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.15s, filter 0.2s;
}
.contactos-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.contactos-hint {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Popup épico de envío de contacto */
.contact-result-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 10000110;
    opacity: 0;
    background: radial-gradient(circle at 50% 30%, rgba(34,197,94,0.18), rgba(0,0,0,0.72) 55%, rgba(0,0,0,0.82));
    transition: opacity 0.25s ease;
}
.contact-result-overlay.show { opacity: 1; }
.contact-result-modal {
    width: min(520px, 92vw);
    border-radius: 22px;
    background: rgba(10, 12, 20, 0.94);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
    overflow: hidden;
    transform: translateY(16px) rotateX(18deg) rotateZ(-2deg) scale(0.9);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.25s ease;
}
.contact-result-overlay.show .contact-result-modal {
    transform: translateY(0) rotateX(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
}
.contact-result-top {
    padding: 18px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}
.contact-result-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.contact-result-title i {
    font-size: 1.2rem;
    color: #22c55e;
    filter: drop-shadow(0 0 16px rgba(34,197,94,0.35));
}
.contact-result-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
}
.contact-result-close:hover { background: rgba(255,255,255,0.1); }
.contact-result-body {
    padding: 10px 18px 18px;
}
.contact-result-msg {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.86);
}
.contact-result-actions {
    padding: 0 18px 18px;
    display: flex;
    justify-content: flex-end;
}
.contact-result-btn {
    padding: 12px 16px;
    border-radius: 14px;
    border: 0;
    background: #22c55e;
    color: #07210f;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.15s, filter 0.2s;
}
.contact-result-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.contact-result-modal.is-error .contact-result-title i { color: #ef4444; filter: drop-shadow(0 0 16px rgba(239,68,68,0.35)); }
.contact-result-modal.is-error .contact-result-btn { background: #ef4444; color: #1b0a0a; }

/* --- Bot de informes (chat) abajo derecha --- */
.info-bot-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10000120;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.22);
    background: rgba(10, 12, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(34,197,94,0.25) inset;
    display: grid;
    place-items: center;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.info-bot-fab:hover {
    transform: translateY(-2px) scale(1.03);
    background: rgba(10, 12, 20, 0.7);
    box-shadow: 0 16px 55px rgba(0,0,0,0.45), 0 0 18px rgba(34,197,94,0.25);
}
.info-bot-fab i { font-size: 1.35rem; color: #22c55e; filter: drop-shadow(0 0 12px rgba(34,197,94,0.25)); }

.info-bot-fab .info-bot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-weight: 950;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    border: 2px solid rgba(10, 12, 20, 0.9);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 16px rgba(239,68,68,0.35);
}

@keyframes info-bot-neon-pulse {
    0%, 100% {
        box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(34,197,94,0.25) inset;
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 16px 55px rgba(0,0,0,0.45), 0 0 18px rgba(34,197,94,0.35), 0 0 46px rgba(34,197,94,0.22);
        filter: brightness(1.08);
    }
}

.info-bot-fab.info-bot--attention {
    animation: info-bot-neon-pulse 1.2s ease-in-out infinite;
}

.info-bot-panel.info-bot--attention .info-bot-title i {
    animation: info-bot-neon-pulse 1.2s ease-in-out infinite;
}

.info-bot-panel {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: min(380px, calc(100vw - 44px));
    height: min(560px, calc(100vh - 140px));
    z-index: 10000125;
    border-radius: 22px;
    background: rgba(10, 12, 20, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px) rotateX(16deg) scale(0.96);
    transition: transform 0.55s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.22s ease;
    pointer-events: none;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.info-bot-panel.show {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    pointer-events: auto;
}
.info-bot-top {
    padding: 14px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}
.info-bot-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.info-bot-title i { color: #22c55e; }
.info-bot-close {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
}
.info-bot-close:hover { background: rgba(255,255,255,0.1); }
.info-bot-messages {
    padding: 12px 12px 10px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-bot-bubble {
    max-width: 92%;
    border-radius: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    line-height: 1.45;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.info-bot-bubble--user {
    align-self: flex-end;
    background: rgba(14,165,233,0.16);
    border-color: rgba(14,165,233,0.28);
}
.info-bot-bubble--bot {
    align-self: flex-start;
    background: rgba(34,197,94,0.14);
    border-color: rgba(34,197,94,0.26);
}
.info-bot-bubble strong { color: #fff; }
.info-bot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.info-bot-action-btn {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 850;
    font-size: 0.86rem;
}
.info-bot-action-btn:hover { background: rgba(255,255,255,0.1); }
.info-bot-bottom {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.04));
}
.info-bot-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(10,12,20,0.55);
    color: #fff;
    outline: none;
}
.info-bot-input:focus { border-color: rgba(34,197,94,0.6); box-shadow: 0 0 0 4px rgba(34,197,94,0.16); }
.info-bot-send {
    padding: 10px 12px;
    border-radius: 14px;
    border: 0;
    background: #22c55e;
    color: #07210f;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.15s, filter 0.2s;
}
.info-bot-send:hover { transform: translateY(-1px); filter: brightness(1.05); }

@media (max-width: 420px) {
    .info-bot-fab { right: 16px; bottom: 16px; }
    .info-bot-panel { right: 16px; bottom: 86px; }
}

@media (max-width: 980px) {
    .info-grid { grid-template-columns: 1fr; }
    .contactos-layout { grid-template-columns: 1fr; }
    .contactos-datos { grid-template-columns: 1fr; }
    .contactos-map iframe { height: 300px; }
}

.colegio-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.content--colegio {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.colegio-school-logo {
    display: block;
    margin: 0 auto 0.75rem;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.colegio-title {
    text-align: center;
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(66, 133, 244, 0.4);
}
.colegio-auth {
    text-align: center;
    margin: 0 0 2.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
}
.colegio-auth strong {
    color: #FF7A00;
}

.colegio-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.colegio-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: colegio-float 4s ease-in-out infinite;
}
.colegio-logo--drive { animation-delay: 0s; }
.colegio-logo--chat  { animation-delay: 0.6s; }
.colegio-logo--classroom { animation-delay: 1.2s; }

@keyframes colegio-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.colegio-logo:hover {
    animation: none;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 40px rgba(66, 133, 244, 0.25);
}

.colegio-logo-icon {
    display: block;
    width: 72px;
    height: 72px;
}
.colegio-logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.colegio-logo-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Botón único: acceso a la plataforma con login Google (notas/) */
.colegio-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.colegio-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(66, 133, 244, 0.3);
}
.colegio-btn-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.colegio-btn-login-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.colegio-btn-login-label {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .colegio-logos { gap: 1.5rem; }
    .colegio-logo-icon { width: 56px; height: 56px; }
    .colegio-btn-login { padding: 14px 24px; font-size: 1rem; }
    .colegio-btn-login-label { white-space: normal; }
}

/* --- Inicio: Ingresa a clases (Metaverso / Plataforma) --- */
@keyframes ingreso-heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.03); }
    20% { transform: scale(1); }
    32% { transform: scale(1.045); }
    48% { transform: scale(1); }
}

/* Nav fija 60px: evita que el contenido quede debajo y recortado arriba */
#porque.section.yellow {
    padding-top: calc(60px + 1.25rem);
    padding-bottom: 1.5rem;
    box-sizing: border-box;
}

.content--ingreso {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-height: calc(100vh - 60px - 2rem);
    box-sizing: border-box;
}
.ingreso-header {
    text-align: center;
    margin-bottom: 0;
    flex-shrink: 0;
}
.ingreso-title {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.ingreso-subtitle {
    margin: 0.35rem 0 0;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 500;
    color: #6b7280;
}
.ingreso-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 5vw, 3rem);
    width: 100%;
    margin-top: 0.25rem;
    flex: 1 1 auto;
    min-height: 0;
}
.ingreso-col {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 480px);
    max-width: min(48vw, 480px);
}
.ingreso-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
}
.ingreso-card-link:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.05);
}
.ingreso-card-link:hover .ingreso-btn-image,
.ingreso-card-link:focus-visible .ingreso-btn-image {
    animation-play-state: paused;
}
.ingreso-card-link:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 4px;
}
.ingreso-btn-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(54vh, 450px);
    display: block;
    object-fit: contain;
    object-position: center center;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
    transform-origin: center center;
    animation: ingreso-heartbeat 2.25s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ingreso-btn-image {
        animation: none;
    }
}

@media (min-width: 900px) {
    .ingreso-btn-image {
        max-height: min(63vh, 510px);
    }
    .ingreso-card-link {
        max-width: 450px;
    }
}

@media (max-width: 640px) {
    .ingreso-col {
        max-width: 85vw;
    }
    .ingreso-btn-image {
        max-height: min(48vh, 390px);
    }
}

/* --- ¿Por qué Atom School? Remodel: video + puerta (sin bordes #171717/#455a64) --- */
.content--porque {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.porque-title {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.porque-remodel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.porque-video {
    flex: 0 1 400px;
    min-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    aspect-ratio: 9/16;
    max-height: 70vh;
}

.porque-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.porque-door-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene--porque {
    perspective: 1200px;
    width: 280px;
    height: 400px;
    position: relative;
    cursor: pointer;
}

.room-inside--porque {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #fffde7 40%, #fff9c4 70%, #fbc02d 100%);
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.room-inside--porque .blinding-light {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    filter: blur(20px);
    animation: door-pulse 2s infinite alternate ease-in-out;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

@keyframes door-pulse {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(1.2); opacity: 1; }
}

.scene--porque:hover .blinding-light {
    opacity: 1;
}

.particulas--porque {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particulas--porque .particula-porque {
    position: absolute;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    animation: llover-porque linear infinite;
}

.particulas--porque .particula-porque.particula-google {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes llover-porque {
    0% { transform: translateY(-10%) rotate(0deg); }
    100% { transform: translateY(110%) rotate(360deg); }
}

.room-inside-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(66, 133, 244, 0.4);
}

.room-inside-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.room-inside-cta-icon {
    display: block;
    width: 40px;
    height: 40px;
}
.room-inside-cta-icon svg { width: 100%; height: 100%; display: block; }
.room-inside-cta-label { font-size: 1rem; }
.room-inside-cta-hint { font-size: 0.8rem; font-weight: 400; color: #555; }

.door--porque {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--door-color);
    border: 6px solid var(--frame-color);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 10px 0 20px rgba(0,0,0,0.5);
    cursor: pointer;
}

.door--porque .room-number {
    background-color: #d4af37;
    padding: 2px 10px;
    border-radius: 2px;
    font-weight: bold;
    color: #3e2723;
    margin-top: 20px;
    font-size: 0.8rem;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.door--porque .door-window {
    width: 60%;
    height: 28%;
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    margin-top: 24px;
    border: 4px solid var(--frame-color);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.door--porque .door-window::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: url("logo512.png") center/contain no-repeat;
    opacity: 0.22;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
    pointer-events: none;
}

.door--porque .door-handle {
    position: absolute;
    right: 16px;
    top: 55%;
    width: 10px;
    height: 48px;
    background: linear-gradient(to right, #9e9e9e, #616161);
    border-radius: 6px;
}

.door--porque .door-handle::after {
    content: '';
    position: absolute;
    top: 8px;
    left: -16px;
    width: 32px;
    height: 8px;
    background: #757575;
    border-radius: 5px;
}

.door--porque .door-wood {
    position: absolute;
    bottom: 16px;
    width: 80%;
    height: 80px;
    border-top: 2px solid rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.scene--porque:hover .door--porque {
    transform: rotateY(-115deg);
}

.door-hint {
    position: absolute;
    bottom: -44px;
    left: 0;
    right: 0;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
    opacity: 0.9;
}

.pension-pay-wrap {
    position: absolute;
    left: 50%;
    bottom: -102px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: max-content;
    z-index: 20;
}

.pension-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    background: #16a34a;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.45);
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
    will-change: transform, box-shadow, filter;
    cursor: pointer;
    appearance: none;
}

.pension-pay-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
}

.pension-pay-btn__icon svg {
    display: block;
    color: #ffd54a;
    filter: drop-shadow(0 0 6px rgba(255, 213, 74, 0.55));
}

.pension-pay-btn:hover {
    transform: translateX(0) translateY(-2px) scale(1.03);
    filter: brightness(1.08);
    border-color: rgba(255,255,255,0.8);
    box-shadow:
        0 0 14px rgba(34, 197, 94, 0.95),
        0 0 34px rgba(34, 197, 94, 0.65),
        0 14px 40px rgba(0,0,0,0.28);
}

.pension-pay-btn:active {
    transform: translateX(0) translateY(0) scale(0.99);
}

.pension-pay-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(250, 204, 21, 0.35),
        0 0 18px rgba(34, 197, 94, 0.95),
        0 0 42px rgba(34, 197, 94, 0.65),
        0 14px 40px rgba(0,0,0,0.28);
}

/* --- Modal Pagos (popup "Pagar pensión") --- */
.pay-modal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(34,197,94,0.15), rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.78));
    display: grid;
    place-items: center;
    z-index: 10000050;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 16px;
}
.pay-modal-overlay.show { opacity: 1; }

.pay-modal {
    width: min(920px, 94vw);
    background: rgba(10, 12, 20, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55);
    overflow: hidden;
    transform: translateY(10px) rotateY(70deg) rotateZ(-2deg) scale(0.93);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.25s ease;
    backface-visibility: hidden;
}
.pay-modal-overlay.show .pay-modal {
    transform: translateY(0) rotateY(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
}

.pay-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}
.pay-modal__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.pay-modal__brand img {
    height: 28px;
    width: auto;
    display: block;
}
.pay-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pay-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.pay-modal__close:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); transform: scale(1.05); }

.pay-modal__body {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 18px;
    padding: 14px 18px 18px;
}
.pay-modal__qr {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    place-items: center;
}
.pay-modal__qr img {
    width: min(360px, 100%);
    height: auto;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
}

.pay-modal__info {
    display: grid;
    gap: 12px;
    align-content: start;
}
.pay-info-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 14px 14px;
    display: grid;
    gap: 8px;
}
.pay-info-card__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
}
.pay-info-card__label i {
    color: #22c55e;
    filter: drop-shadow(0 0 10px rgba(34,197,94,0.35));
    font-size: 1.05rem;
}
.pay-info-card__valueRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pay-info-card__value {
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    color: #ffffff;
    user-select: all;
}
.pay-info-card__sub {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.68);
}
.pay-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(34,197,94,0.18);
    color: #eafff1;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.pay-copy-btn:hover { transform: translateY(-1px); background: rgba(34,197,94,0.24); border-color: rgba(34,197,94,0.55); }
.pay-copy-btn i { font-size: 1rem; }

.pay-modal__footer {
    padding: 0 18px 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}
.pay-modal__cta {
    padding: 12px 14px;
    border-radius: 14px;
    border: 0;
    background: #22c55e;
    color: #07210f;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s, filter 0.2s;
}
.pay-modal__cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pay-modal__ghost {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    font-weight: 800;
    cursor: pointer;
}
.pay-modal__ghost:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 860px) {
    .pay-modal__body { grid-template-columns: 1fr; }
    .pay-modal__footer { justify-content: stretch; }
    .pay-modal__cta, .pay-modal__ghost { width: 100%; }
    .pay-info-card__value { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .porque-remodel { flex-direction: column; gap: 1.5rem; }
    .porque-video { max-height: 50vh; }
    .scene--porque { width: 240px; height: 340px; }
    .door-hint { bottom: -38px; }
    .pension-pay-wrap { bottom: -92px; }
}

/* Refining Content Styling */
.content {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    text-align: left;
}

h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    text-transform: none;
    font-weight: 700;
}

.yellow h1,
.green h1,
.cyan h1 {
    color: var(--text-dark);
}

/* Grid Components */
.grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.video-placeholder {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.text-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

/* Metodología: galería de videos (3 cols) a la izquierda + cuadro de texto a la derecha */
.metodologia-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 900px) {
    .metodologia-layout {
        grid-template-columns: 1fr 320px;
        gap: 2.5rem;
    }
}
.metodologia-videos-wrap {
    min-width: 0;
}
.metodologia-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.metodologia-video-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.metodologia-video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.metodologia-video-card__title {
    margin: 0;
    padding: 0.4rem 0.5rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}
.metodologia-video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.metodologia-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.metodologia-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
.metodologia-video-card__play::after {
    content: '';
    width: 48px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23f00' d='M66.5 7.7c-.8-2.9-2.5-5.4-5.4-6.2C55.8 .1 34 0 34 0S12.2.1 6.6 1.6C3.6 2.4 2 4.9 1.2 7.7.4 10.5 0 16 0 24s.4 13.5 1.2 16.3c.8 2.9 2.5 5.4 5.4 6.2C12.2 47.9 34 48 34 48s21.8-.1 27.4-1.6c2.9-.8 4.5-3.3 5.4-6.2 1-2.8 1.2-8.3 1.2-16.3s-.2-13.5-1.2-16.3z'/%3E%3Cpath fill='%23fff' d='M45 24L27 14v20'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Cuadro de texto metodología (derecha) */
.metodologia-text-box {
    background: #fff;
    color: #1a1a1a;
    padding: 1.75rem;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.metodologia-text-box p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
@media (max-width: 899px) {
    .metodologia-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .metodologia-videos-grid {
        grid-template-columns: 1fr;
    }
}
/* Popup galería metodología: ventana emergente con bordes redondeados */
.video-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.video-gallery-overlay.show {
    opacity: 1;
}
.video-gallery-modal {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 95vw;
    width: min(560px, 92vw);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    transform: scale(0.9);
    transition: transform 0.25s ease;
}
.video-gallery-overlay.show .video-gallery-modal {
    transform: scale(1);
}
.video-gallery-modal .video-gallery-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ff7a00;
}
.video-gallery-modal .video-gallery-container {
    margin: 1rem 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}
.video-gallery-modal .video-gallery-container iframe {
    width: 100%;
    height: 315px;
    border: none;
}
.video-gallery-close {
    background: #ff7a00;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    margin-top: 0.75rem;
}
.video-gallery-close:hover {
    background: #e66a00;
    transform: translateY(-2px);
}

/* Testimonios: reproductor grande izquierda + miniatura derecha */
.content--testimonios {
    width: 100%;
    max-width: 100%;
}
.testimonios-title {
    margin-bottom: 1rem;
}
.testimonios-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    align-items: start;
    height: calc(100vh - 8rem);
    max-height: 520px;
}
.testimonios-player-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}
.testimonios-player {
    flex: 1;
    min-height: 0;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    position: relative;
}
.testimonios-player-inner {
    width: 100%;
    height: 100%;
    position: relative;
}
.testimonios-player-inner iframe,
.testimonios-player-inner video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}
.testimonios-player-inner video {
    object-fit: contain;
}
.testimonios-player-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}
.testimonios-player-nombre {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
}
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    overflow-y: auto;
    padding-right: 4px;
}
.testimonios-thumb {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    transform: scale(0.8);
    transform-origin: center center;
}
.testimonios-thumb:hover {
    transform: scale(0.82);
}
.testimonios-thumb.active {
    box-shadow: 0 0 0 3px #FF7A00;
}
.testimonios-thumb .testimonios-thumb-logo {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    inset: auto;
}
.testimonios-thumb > img:first-of-type,
.testimonios-thumb > div:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.testimonios-thumb-placeholder {
    background: linear-gradient(135deg, #444 0%, #222 100%);
}
.testimonios-thumb-nombre {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}
.testimonios-thumb-logo {
    background: #fff;
}

/* Specific Section Styles */
.testimonials-cards,
.icon-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Staff / Maestros: mismos profesores que metodologia.html — foto circular con borde naranja */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.staff-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.staff-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FF7A00;
    background: #f0f0f0;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo .placehold {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.staff-info h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

.staff-info p {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.3;
}

.staff-info strong {
    color: #FF7A00;
}

/* Fotos de maestros clickeables */
.staff-photo {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.staff-photo:hover {
    transform: scale(1.05);
}
.staff-photo:active {
    transform: scale(0.98);
}

/* Popup de video del profesor (esquinas redondeadas + animación) — autocontenido para hosting */
.profesor-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.profesor-video-overlay.show {
    opacity: 1;
}
.profesor-video-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 95vw;
    width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 3px solid #FF7A00;
}
.profesor-video-overlay.show .profesor-video-modal {
    transform: scale(1);
}
.profesor-video-title {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF7A00;
}
.profesor-video-container {
    margin: 16px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.profesor-video-container iframe,
.profesor-video-container > div {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}
.profesor-video-close {
    background: #FF7A00;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    margin-top: 16px;
}
.profesor-video-close:hover {
    background: #e66a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.3);
}
.profesor-video-close:active {
    transform: translateY(0);
}

.profesor-video-aviso {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}
.profesor-video-link {
    display: inline-block;
    background: #FF7A00;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}
.profesor-video-link:hover {
    background: #e66a00;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    color: var(--text-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.icon-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content--admision .content { max-width: 100%; }
.content--admision h1 { margin-bottom: 0.75rem; }
.admission-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    max-height: calc(100vh - 6rem);
    overflow: auto;
    color: #1f2937;
}
.admission-subtitle { font-size: 1.25rem; margin: 0 0 0.75rem; color: #fff; }
.admission-form-wrap { min-width: 0; }
.admission-pagos-wrap { min-width: 0; }

/* Acordeón pagos */
.accordion-pagos { display: flex; flex-direction: column; gap: 0; }
.accordion-pagos-item { background: rgba(255,255,255,0.95); border-radius: 16px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.accordion-pagos-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 0;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    text-align: left;
    border-radius: 16px;
    transition: background 0.2s;
}
.accordion-pagos-header:hover { background: #f8f8f8; }
.accordion-pagos-item:not(:last-child) .accordion-pagos-header { border-radius: 16px 16px 0 0; }
.accordion-pagos-icon { flex-shrink: 0; transition: transform 0.25s ease; color: #FF7A00; }
.accordion-pagos-item.is-open .accordion-pagos-icon { transform: rotate(180deg); }
.accordion-pagos-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.accordion-pagos-content.is-open { max-height: 800px; }
.accordion-pagos-content .costos-container { margin: 0 12px 12px; padding-top: 0; }
.accordion-pagos-content .qr-container { margin: 12px; }
.accordion-qr-inner { padding: 0 12px 12px; }
.accordion-qr-inner .metodos-pago { margin-top: 12px; margin-bottom: 0; }

/* Formulario vacante (copiado de app, autocontenido) */
.card--vacante { padding: 1.25rem; margin: 0; }
.step { display: none; }
.step--active { display: block; }
.step__title { margin: 0 0 12px; color: #FF7A00; font-size: 1rem; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 15px; box-sizing: border-box; }
.field select:disabled { background: #f5f5f5; color: #999; cursor: not-allowed; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.btn { border: 0; border-radius: 10px; padding: 10px 14px; background: #eee; color: #111; font-weight: 700; cursor: pointer; font-size: 0.95rem; }
.btn--primary { background: #FF7A00; color: #fff; }
.checkbox { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 0.9rem; }
.contract { margin-bottom: 12px; }
.contract__scroll { max-height: 220px; overflow: auto; background: #f7f7f7; padding: 12px; border-radius: 12px; font-size: 0.85rem; line-height: 1.4; }
.contract-disclaimer { font-size: 0.8rem; color: #555; margin: 10px 0; font-style: italic; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 9999; }
.modal { background: #fff; color: #111; border-radius: 16px; padding: 20px; width: min(92vw, 380px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.modal__title { margin: 0 0 8px; color: #FF7A00; }
.modal__body { margin: 0 0 16px; }
.modal__btn { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #FF7A00; color: #fff; font-weight: 700; cursor: pointer; }

/* Popup selección de micrófono */
.voice-mic-modal .voice-mic-modal__box {
    background: #fff;
    color: #1f2937;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    width: min(92vw, 400px);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.voice-mic-modal__title { margin: 0 0 0.25rem; font-size: 1.25rem; color: #0ea5e9; }
.voice-mic-modal__hint { margin: 0 0 1rem; font-size: 0.9rem; color: #6b7280; }
.voice-mic-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    overflow-y: auto;
    max-height: 220px;
}
.voice-mic-list li {
    margin: 0 0 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}
.voice-mic-list li:hover { border-color: #0ea5e9; background: #f0f9ff; }
.voice-mic-list li.selected { border-color: #0ea5e9; background: #e0f2fe; }
.voice-mic-list li .voice-mic-label { font-weight: 500; }
.voice-mic-list li .voice-mic-id { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; }
.voice-mic-list li.voice-mic-empty { cursor: default; color: #6b7280; }
.voice-mic-list li.voice-mic-empty:hover { border-color: #e5e7eb; background: transparent; }
.voice-mic-modal__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.voice-mic-modal__btn { flex: 1; padding: 0.75rem 1rem; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 0.95rem; border: none; }
.voice-mic-modal__btn--primary { background: #0ea5e9; color: #fff; }
.voice-mic-modal__btn--primary:hover { background: #0284c7; }
.voice-mic-modal__btn--secondary { background: #e5e7eb; color: #374151; }
.voice-mic-modal__btn--secondary:hover { background: #d1d5db; }

/* Pagos (copiado de app, autocontenido) */
.costos-container { display: grid; gap: 10px; margin-bottom: 1rem; }
.costo-item {
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.costo-icon { color: #FF7A00; flex-shrink: 0; }
.costo-info h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: #111; }
.costo-precio { margin: 0; font-size: 1.25rem; font-weight: 800; color: #FF7A00; }
.plin-item { border: 2px solid #FF7A00; background: linear-gradient(135deg, #fff, #fff8f0); }
.plin-number, .interbank-number { margin: 0; font-size: 1.1rem; font-weight: 800; cursor: pointer; padding: 6px 10px; border-radius: 8px; background: rgba(255,122,0,0.1); color: #FF7A00; }
.plin-number:hover, .interbank-number:hover { background: rgba(255,122,0,0.2); }
.plin-hint, .interbank-hint { display: block; margin-top: 4px; font-size: 0.75rem; color: #666; }
.interbank-item { border: 2px solid #28a745; background: linear-gradient(135deg, #fff, #f0fff4); }
.interbank-number { color: #28a745; background: rgba(40,167,69,0.1); }
.interbank-number:hover { background: rgba(40,167,69,0.2); }
.qr-container { text-align: center; margin: 1rem 0; }
.qr-code { display: inline-block; background: #fff; padding: 12px; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.qr-code img { width: 120px; height: 120px; border-radius: 12px; display: block; }
.metodos-pago { text-align: center; margin-bottom: 1rem; }
.metodos-digitales { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.metodo-item { background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.metodo-logo { width: 48px; height: 48px; object-fit: contain; display: block; }

/* Alertas copiar (pagos) */
.alert-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 10000090; opacity: 0; transition: opacity 0.3s; }
.alert-overlay.show { opacity: 1; }
.alert-modal { background: #fff; border-radius: 16px; padding: 24px; max-width: 90vw; width: 360px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); border: 3px solid #FF7A00; transform: scale(0.9); transition: transform 0.3s; }
.alert-overlay.show .alert-modal { transform: scale(1); }
.alert-title { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; color: #111; }
.alert-message { margin: 0 0 16px; font-size: 0.95rem; color: #555; line-height: 1.5; }
.alert-button { background: #FF7A00; color: #fff; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* --- NAVEGACIÓN PREMIUM ATOMIC --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000000;
    border-bottom: 2px solid rgba(147, 51, 234, 0.5);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 30px !important;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.8));
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: #facc15 !important;
    text-shadow: 0 0 15px rgba(147, 51, 234, 1);
    transform: scale(1.1);
}

/* --- FLECHAS NEÓN --- */
#nav-arrows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* El contenedor no bloquea */
    z-index: 999999;
}

.arrow {
    position: absolute;
    color: #fff;
    font-size: 5rem;
    font-weight: 900;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
}

.arrow.visible {
    opacity: 0.15;
}

.arrow:hover {
    opacity: 0.6 !important;
    transform: scale(1.3);
}

.arrow-up {
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-down {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-left {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-right {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Control por voz (micrófono) --- */
.voice-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.35);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.voice-btn:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.6);
}
.voice-btn__icon {
    display: block;
    opacity: 0.85;
}
.voice-btn__slash {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,80,80,0.95);
    opacity: 1;
    transition: opacity 0.2s;
}
/* Apagado: icono con alpha, raya visible */
.voice-btn--off .voice-btn__icon { opacity: 0.5; }
.voice-btn--off .voice-btn__slash { opacity: 1; }
/* Encendido: sin raya, icono normal */
.voice-btn--on .voice-btn__slash { opacity: 0; pointer-events: none; }
.voice-btn--on .voice-btn__icon { opacity: 1; }
.voice-btn--on { border-color: rgba(255,255,255,0.7); }
/* Escuchando / detectando audio: parpadeo verde */
.voice-btn--listening .voice-btn__slash { opacity: 0; }
.voice-btn--listening .voice-btn__icon { color: #22c55e; }
.voice-btn--listening {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.25);
    animation: voice-btn-blink 0.6s ease-in-out infinite;
}
@keyframes voice-btn-blink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

/* --- Asistente de voz: arriba derecha, guiña, se señala, clic para que hable --- */
.voice-assistant {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000001;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.voice-assistant * {
    pointer-events: auto;
}

.voice-assistant-bubble {
    max-width: 280px;
    padding: 14px 36px 14px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(107, 127, 215, 0.3);
    position: relative;
    animation: assistant-bubble-in 0.4s ease-out, assistant-bubble-pulse 2.5s ease-in-out 0.4s infinite;
}
.voice-assistant-bubble.is-hidden {
    display: none !important;
}
.voice-assistant-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}
.voice-assistant-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.voice-assistant-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
}

.voice-assistant-bot {
    width: 70px;
    height: 70px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    animation: assistant-bot-float 2.8s ease-in-out infinite;
    transition: transform 0.2s;
    box-shadow: 0 6px 28px rgba(107, 127, 215, 0.45);
}
.voice-assistant-bot:hover {
    transform: scale(1.06);
    animation: assistant-bot-float 2.8s ease-in-out infinite, assistant-bot-bounce 0.5s ease-in-out;
}
.voice-assistant-bot-icon {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: visible;
}
.voice-assistant-bot-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Guiño del ojo derecho */
.voice-assistant-bot-icon .assistant-eye-wink {
    transform-origin: 50% 50%;
    animation: assistant-wink 3s ease-in-out infinite;
}
@keyframes assistant-wink {
    0%, 85%, 100% { transform: scaleY(1); }
    90%, 92% { transform: scaleY(0.1); }
}

/* Brazo que se señala a sí mismo (mueve hacia el cuerpo) */
.voice-assistant-bot-icon .assistant-point-arm {
    transform-origin: 72px 50px;
    animation: assistant-point-self 2.2s ease-in-out infinite;
}
@keyframes assistant-point-self {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5px, 3px); }
}

@keyframes assistant-bubble-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes assistant-bubble-pulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(107, 127, 215, 0.3); }
    50% { box-shadow: 0 10px 36px rgba(107, 127, 215, 0.25), 0 0 0 1px rgba(107, 127, 215, 0.4); }
}
@keyframes assistant-bot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
@keyframes assistant-bot-bounce {
    0%, 100% { transform: scale(1.06) translateY(0); }
    50% { transform: scale(1.06) translateY(-4px); }
}

/* Pie legal (portada desktop index.php / index.html) */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999990;
    padding: 8px 16px 10px;
    text-align: center;
    font-size: 0.65rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.site-footer p {
    margin: 0 auto;
    max-width: 56rem;
}