/* ==========================================
   1. VARIABLES Y ESTILOS BASE
   ========================================== */
:root {
    --wcbc-navy: #0b1d3a;
    --wcbc-blue-light: #1a365d;
    --wcbc-gold: #c5a059;
    --wcbc-gold-hover: #b08c46;
    --bg-light: #f8fafc;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    --box-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* ==========================================
   2. BARRA SUPERIOR Y HEADER (GLOBAL)
   ========================================== */
.top-bar {
    background-color: var(--wcbc-navy);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--wcbc-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--white);
}

header {
    background-color: var(--wcbc-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--white);
}

.logo-text .subtitle {
    font-size: 0.75rem;
    color: var(--wcbc-gold);
    letter-spacing: 0.05em;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--wcbc-gold);
}

.mobile-btn-container {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 5px;
}

.btn-gold {
    display: inline-block;
    background-color: var(--wcbc-gold);
    color: var(--wcbc-navy);
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--wcbc-gold);
    text-align: center;
}

.btn-gold:hover {
    background-color: var(--wcbc-gold-hover);
    color: var(--white);
    border-color: var(--wcbc-gold-hover);
}

/* ==========================================
   3. HERO Y BANNERS DE PÁGINA
   ========================================== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.9) 0%, rgba(11, 29, 58, 0.75) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-body {
    max-width: 650px;
    padding: 40px 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-tag {
    color: var(--wcbc-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--wcbc-navy) 0%, var(--wcbc-blue-light) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--wcbc-gold);
}

.page-banner-content h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin: 10px 0;
}

.page-banner-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   4. BARRA DE ACCIÓN RÁPIDA
   ========================================== */
.action-bar {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: var(--wcbc-navy);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
    overflow: hidden;
}

.action-item {
    padding: 24px 20px;
    text-decoration: none;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-item:last-child {
    border-right: none;
}

.action-item:hover {
    background-color: var(--wcbc-blue-light);
    transform: translateY(-2px);
}

.action-item h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--wcbc-gold);
    margin-bottom: 6px;
}

.action-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* ==========================================
   5. TARJETAS Y SECCIONES
   ========================================== */
.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--wcbc-navy);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.wcbc-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.wcbc-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.wcbc-card-border-gold {
    border-top: 4px solid var(--wcbc-gold);
}

.wcbc-card-border-navy {
    border-top: 4px solid var(--wcbc-navy);
}

.wcbc-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wcbc-card-tag {
    display: inline-block;
    color: var(--wcbc-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.wcbc-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--wcbc-navy);
    margin-bottom: 10px;
}

.wcbc-card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.wcbc-card-link {
    color: var(--wcbc-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    margin-top: auto;
}

.wcbc-card-link:hover {
    color: var(--wcbc-gold-hover);
}

.wcbc-card-image {
    margin: -28px -28px 20px -28px;
    height: 200px;
    overflow: hidden;
}

.wcbc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon, .value-icon {
    font-size: 2rem;
    color: var(--wcbc-gold);
    margin-bottom: 15px;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--wcbc-navy);
    margin-bottom: 8px;
}

.value-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.card-quote {
    font-style: italic;
    color: var(--wcbc-gold);
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 600;
}

/* Destacados Específicos */
.about-highlight {
    background-color: var(--wcbc-navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-highlight i {
    font-size: 2.5rem;
    color: var(--wcbc-gold);
    margin-bottom: 15px;
}

.about-highlight h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.about-highlight p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Profesores */
.teacher-subject-list {
    list-style: none;
    margin-top: 10px;
    padding: 0;
}

.teacher-subject-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-subject-list i {
    color: var(--wcbc-gold);
    font-size: 0.85rem;
}

/* ==========================================
   6. ESTILOS DE CONTACTO Y FORMULARIO
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.contact-column-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background-color: #25D366;
    color: #ffffff;
    border-color: #25D366;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #1eb956;
    border-color: #1eb956;
    color: #ffffff;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon-box {
    background-color: var(--wcbc-navy);
    color: var(--wcbc-gold);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wcbc-navy);
}

.contact-text, .contact-text a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--wcbc-gold);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: var(--wcbc-navy);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--wcbc-gold);
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.map-card {
    margin-top: 32px;
    overflow: hidden;
    border-top: 4px solid var(--wcbc-gold);
    padding: 0;
}

.map-header {
    padding: 24px;
    background-color: var(--wcbc-navy);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.map-header h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 4px;
}

.map-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.map-wrapper {
    width: 100%;
    height: 380px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   7. FOOTER (GLOBAL)
   ========================================== */
footer {
    background-color: var(--wcbc-navy);
    color: var(--white);
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-wrapper img {
    height: 40px;
    width: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.footer-logo-text .subtitle {
    font-size: 0.7rem;
    color: var(--wcbc-gold);
}

.footer-socials a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--wcbc-gold);
}

.footer-col h4 {
    color: var(--wcbc-gold);
    font-family: var(--font-serif);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--wcbc-gold);
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--wcbc-gold);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ==========================================
   8. ADAPTACIONES RESPONSIVAS
   ========================================== */

@media (min-width: 992px) {
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: stretch;
    }

    .contact-column-left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
    }

    .contact-column-right {
        display: flex;
        flex-direction: column;
    }

    .contact-column-right .wcbc-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Formato unificado para las tarjetas de la izquierda y la derecha */
.contact-column-left .wcbc-card,
.contact-column-right .wcbc-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-column-left .wcbc-card:hover,
.contact-column-right .wcbc-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-3px);
}

/* Espaciado interno de la lista de contacto */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon-box {
    width: 42px;
    height: 42px;
    background-color: rgba(11, 29, 58, 0.08);
    color: var(--wcbc-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Estructura del Mapa y Encabezado */
.map-card {
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-header {
    padding: 24px 30px;
    background-color: var(--wcbc-navy);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-wrapper {
    width: 100%;
    height: 420px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .top-bar-container {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--wcbc-navy);
        flex-direction: column;
        padding: 10px 0 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-btn-container {
        display: block;
        padding: 15px 20px 5px 20px;
    }

    .mobile-btn-container .btn-gold {
        display: block;
        width: 100%;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn-gold {
        width: 100%;
    }

    /* Action Bar */
    .action-bar {
        margin-top: -20px;
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-item {
        padding: 14px 10px;
        text-align: center;
        align-items: center;
    }

    .action-item h3 {
        font-size: 0.88rem;
    }

    .action-item p {
        font-size: 0.72rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-logo-wrapper, .footer-contact-info li {
        justify-content: center;
    }
}

/* ==========================================
   9. PANTALLA DE CARGA (LOADER / PRELOADER)
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--wcbc-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-logo {
    width: 120px;
    height: auto;
    animation: logoPulse 1.8s infinite ease-in-out;
}

.preloader-spinner {
    width: 45px;
    height: 45px;
    margin-top: 25px;
    border: 3px solid rgba(197, 160, 89, 0.2);
    border-top-color: var(--wcbc-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes logoPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================
   10. SECCIÓN DE GALERÍA DE FOTOS
   ========================================== */
.gallery-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 45px;
}

.gallery-subtitle {
    color: var(--wcbc-gold, #c5a059);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-title {
    color: var(--wcbc-navy, #0b1d3a);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 10px 0;
}

.gallery-divider {
    width: 60px;
    height: 3px;
    background-color: var(--wcbc-gold, #c5a059);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grilla Adaptable */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background-color: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Capa flotante con texto en hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 29, 58, 0.2) 0%, rgba(11, 29, 58, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
    text-align: center;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--wcbc-gold, #c5a059);
    margin-bottom: 10px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

/* Efectos al pasar el cursor (Hover) */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i,
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* MODAL LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 29, 58, 0.92);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    border: 2px solid var(--wcbc-gold, #c5a059);
    animation: zoomIn 0.3s ease;
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--wcbc-gold, #c5a059);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =================================================================================================================================
AJUSTES ESTETICOS DE LA PAGINA
   ================================================================================================================================= */

/* ==========================================
   ALINEACIÓN A LA IZQUIERDA EN PC
   ========================================== */
@media (min-width: 993px) {
    /* Si la sección tiene un contenedor centrado por margen */
    .hero-content,
    .banner-content,
    .main-banner .container {
        margin-left: 0 !important;
        margin-right: auto !important;
        max-width: 100% !important; /* Permite que ocupe desde la izquierda */
        padding-left: 40px !important; /* Margen de distancia con el borde de la pantalla */
        text-align: left !important;
    }

    /* Asegura que los elementos internos (logo, título, subtítulo) se alineen a la izquierda */
    .hero-content *,
    .banner-content * {
        text-align: left !important;
        margin-left: 0 !important;
    }
}

/* ==========================================
   OPTIMIZACIÓN DE GALERÍA EN CELULARES
   ========================================== */
@media (max-width: 768px) {
    .gallery-section {
        padding: 35px 15px; /* Reduce espacio superior e inferior */
    }

    .gallery-header {
        margin-bottom: 25px; /* Menos espacio entre el título y la grilla */
    }

    .gallery-title {
        font-size: 1.5rem; /* Tamaño de título adecuado para móviles */
    }

    .gallery-subtitle {
        font-size: 0.75rem;
    }

    /* Grilla de 2 columnas más compacta */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Reducción de separación entre fotos */
    }

    .gallery-item {
        border-radius: 8px;
        aspect-ratio: 1 / 1; /* Formato cuadrado para no ocupar mucho alto */
    }

    /* En celulares, la capa con texto se vuelve visible fijamente abajo */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 40%, rgba(11, 29, 58, 0.88) 100%);
        justify-content: flex-end;
        padding: 10px 8px;
    }

    /* Ocultamos el icono para no saturar el espacio reducido */
    .gallery-overlay i {
        display: none;
    }

    .gallery-overlay h3 {
        font-size: 0.85rem;
        margin-bottom: 2px;
        transform: translateY(0);
        font-weight: 600;
    }

    .gallery-overlay p {
        font-size: 0.7rem;
        transform: translateY(0);
        opacity: 0.9;
        display: -webkit-box;
        /*-webkit-line-clamp: 1;  Recorta texto a 1 sola línea */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Botón de cerrar Lightbox accesible para dedos */
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }
}
/* ==========================================
   CARRUSEL DE ÁLBUMES
   ========================================== */

/* Insignia de varias fotos */
.album-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 29, 58, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 5;
    backdrop-filter: blur(2px);
}

/* Modal y Contenedor del Carrusel */
.lightbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 1.8rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000000;
}

.lightbox-arrow:hover {
    background: var(--wcbc-gold, #c5a059);
    color: var(--wcbc-navy, #0b1d3a);
}

.lightbox-arrow.prev { left: 15px; }
.lightbox-arrow.next { right: 15px; }

.lightbox-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    color: #ffffff;
    font-size: 0.95rem;
}

.lightbox-counter {
    color: var(--wcbc-gold, #c5a059);
    font-weight: 600;
}

/* Optimización compacta para Celular */
@media (max-width: 768px) {
    .gallery-section {
        padding: 35px 15px;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        border-radius: 8px;
        aspect-ratio: 1 / 1;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 40%, rgba(11, 29, 58, 0.88) 100%);
        justify-content: flex-end;
        padding: 8px;
    }

    .gallery-overlay i {
        display: none;
    }

    .gallery-overlay h3 {
        font-size: 0.85rem;
        margin-bottom: 2px;
        transform: translateY(0);
    }

    .gallery-overlay p {
        font-size: 0.7rem;
        transform: translateY(0);
        display: -webkit-box;
        /*-webkit-line-clamp: 1;*/
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .lightbox-arrow {
        padding: 8px 14px;
        font-size: 1.2rem;
    }

    .lightbox-arrow.prev { left: 8px; }
    .lightbox-arrow.next { right: 8px; }
}
/* Bloquear scroll nativo de iOS dentro del lightbox para permitir el swipe */
.lightbox {
    touch-action: none; /* Desactiva el scroll vertical en iOS mientras arrastras */
    -webkit-overflow-scrolling: touch;
}

.lightbox-content {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none; /* Evita que al mantener presionado en iPhone salga el menú de guardar imagen */
}


/* ==========================================
   ESTILOS DE LA PÁGINA DE CLASES 
   ========================================== */

.btn-back {
    color: var(--wcbc-gold, #c5a059);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #ffffff;
}

.classes-hero {
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.95), rgba(18, 44, 86, 0.9)), url('imagen/rondalla.jpeg') center/cover no-repeat;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.classes-hero p {
    max-width: 600px;
    margin: 10px auto 0;
    color: #d1d5db;
    font-size: 0.95rem;
}

.classes-main-container {
    max-width: 1100px;
    margin: -30px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* BARRA DE CONTROLES Y BÚSQUEDA */
.controls-bar {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    color: #9ca3af;
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: var(--wcbc-navy, #0b1d3a);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--wcbc-navy, #0b1d3a);
    background: transparent;
    color: var(--wcbc-navy, #0b1d3a);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--wcbc-navy, #0b1d3a);
    color: var(--wcbc-gold, #c5a059);
}

/* GRILLA DE MATERIAS */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.class-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid var(--wcbc-gold, #c5a059);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.class-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.class-info h3 {
    font-size: 1.05rem;
    color: var(--wcbc-navy, #0b1d3a);
    margin-top: 8px;
}

.badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.year-badge {
    background: #eef2ff;
    color: var(--wcbc-navy, #0b1d3a);
}

.duration-badge {
    background: #fef3c7;
    color: #92400e;
    margin-left: 5px;
}

.toggle-icon {
    color: var(--wcbc-gold, #c5a059);
    transition: transform 0.3s ease;
}

.class-card.active .toggle-icon {
    transform: rotate(180deg);
}

.class-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    background: #f9fafb;
    padding: 0 20px;
    border-top: 1px solid transparent;
}

.class-card.active .class-body {
    max-height: 300px;
    padding: 15px 20px;
    border-top-color: #f3f4f6;
}

.class-body p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

/* MODO MÓVIL */
@media (max-width: 768px) {
    .classes-grid {
        grid-template-columns: 1fr;
    }
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-buttons {
        justify-content: center;
    }
}
/* ==========================================
   ESTILOS DEL BANNER HERO
   ========================================== */

.classes-hero {
    position: relative;
    background: url('imagen/rondalla.jpeg') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 20px 90px;
    text-align: center;
    overflow: hidden;
}

/* Capa oscura de sobreposición para legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.92), rgba(11, 29, 58, 0.82));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: block;
    color: var(--wcbc-gold, #c5a059);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: var(--wcbc-gold, #c5a059);
    margin: 0 auto;
    border-radius: 2px;
}

/* Botón 'Volver al Inicio' ajustado para el Navbar */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wcbc-gold, #c5a059);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid var(--wcbc-gold, #c5a059);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--wcbc-gold, #c5a059);
    color: var(--wcbc-navy, #0b1d3a);
}

/* Ajustes para Pantallas Móviles */
@media (max-width: 768px) {
    .classes-hero {
        padding: 50px 15px 70px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.88rem;
    }
}
/* ==========================================
   AJUSTES UNIFICADOS DE NAVBAR
   ========================================== */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Indicador de pestaña activa */
.nav-menu ul li a.active {
    color: var(--wcbc-gold, #c5a059);
    font-weight: 700;
}

/* Botón elegante de retorno en el Navbar */
.btn-back-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wcbc-gold, #c5a059);
    border: 1px solid var(--wcbc-gold, #c5a059);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-nav:hover {
    background: var(--wcbc-gold, #c5a059);
    color: var(--wcbc-navy, #0b1d3a);
}

/* En celulares ocultamos el botón de texto para dar prioridad al menú de hamburguesa */
@media (max-width: 768px) {
    .btn-back-nav {
        display: none;
    }
}

/* ==========================================
   ESTILOS DE CUERPO DOCENTE 
   ========================================== */

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.teacher-card {
    background-color: var(--white, #ffffff);
    border-radius: var(--border-radius, 8px);
    border: 1px solid #e2e8f0;
    box-shadow: var(--box-shadow, 0 4px 6px rgba(0,0,0,0.04));
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ENCUADRA FOTOS (Muestra el rostro completo enfocando hacia arriba) */
.teacher-image-wrapper {
    width: 100%;
    height: 260px; /* Altura ideal para encuadre vertical */
    overflow: hidden;
    background-color: var(--wcbc-navy, #0b1d3a);
    position: relative;
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    object-position: top center; /* Enfoca la parte superior para mostrar cabezas y rostros completos */
    transition: transform 0.4s ease;
}

.teacher-card:hover .teacher-img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teacher-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wcbc-gold, #c5a059);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.teacher-name {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.25rem;
    color: var(--wcbc-navy, #0b1d3a);
    margin-bottom: 12px;
}

.teacher-subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.teacher-subject-list li {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-subject-list i {
    color: var(--wcbc-gold, #c5a059);
    font-size: 0.85rem;
}

/* ADAPTACIÓN MÓVIL OPTIMIZADA */
@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en celular para vista compacta */
        gap: 12px;
    }

    .teacher-image-wrapper {
        height: 180px; /* Reduce altura en móviles para ahorrar espacio */
    }

    .teacher-info {
        padding: 12px;
    }

    .teacher-name {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .teacher-role {
        font-size: 0.65rem;
    }

    .teacher-subject-list li {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==========================================
   TRADUCTOR AUTOMÁTICO OPTIMIZADO
   ========================================== */

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Ocultar barra superior molesta de Google e iconos por defecto */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-logo-link, 
.goog-te-gadget span {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

/* Estilo personalizado del selector */
.goog-te-combo {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid var(--wcbc-gold, #c5a059) !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 0.78rem !important;
    font-family: var(--font-sans, inherit) !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.goog-te-combo:hover,
.goog-te-combo:focus {
    background-color: var(--wcbc-gold, #c5a059) !important;
    color: var(--wcbc-navy, #0b1d3a) !important;
}

.goog-te-combo option {
    background-color: var(--wcbc-navy, #0b1d3a) !important;
    color: #ffffff !important;
}

/* Ocultar tooltip emergente al pasar el cursor sobre texto traducido */
#goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Adaptación para celular */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 6px;
        padding: 6px 10px;
    }

    .top-bar-right {
        gap: 10px;
    }

    .goog-te-combo {
        font-size: 0.72rem !important;
        padding: 2px 5px !important;
    }
} 
/* ==========================================
   DISEÑO DEL ICONO DE TRADUCTOR
   ========================================== */
.top-bar-right{
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-lang-selector{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255,255,255, 0.08);
    border: 1px solid rgba(197,160,89,0.5);
    color: var(--white, #ffffff);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

/* Menú Desplegable */
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--wcbc-navy, #0b1d3a);
    border: 1px solid var(--wcbc-gold, #c5a059);
    border-radius: 8px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 130px;
    z-index: 10000;
}

.lang-dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.lang-dropdown-menu li {
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-dropdown-menu li:hover {
    background-color: var(--wcbc-gold, #c5a059);
    color: var(--wcbc-navy, #0b1d3a);
}

.flag {
    font-size: 0.95rem;
}

/* Limpieza absoluta del widget por defecto de Google */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adaptación para Celular */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }

    .top-bar-right {
        gap: 12px;
    }

    .custom-lang-selector {
        padding: 3px 8px;
        font-size: 0.72rem;
    }
}
/* ==========================================
   ESTILOS GLOBALES: TRADUCTOR & MENÚ 
   ========================================== */

/* Barra Superior */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.5);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.custom-lang-selector:hover,
.custom-lang-selector.active {
    background-color: var(--wcbc-gold, #c5a059);
    color: var(--wcbc-navy, #0b1d3a);
    border-color: var(--wcbc-gold, #c5a059);
}

.lang-icon {
    color: var(--wcbc-gold, #c5a059);
    font-size: 0.85rem;
}

.custom-lang-selector:hover .lang-icon,
.custom-lang-selector.active .lang-icon {
    color: var(--wcbc-navy, #0b1d3a);
}

.lang-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.custom-lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}

/* Menú Desplegable de Idiomas */
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--wcbc-navy, #0b1d3a);
    border: 1px solid var(--wcbc-gold, #c5a059);
    border-radius: 8px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 130px;
    z-index: 10000;
}

.lang-dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.lang-dropdown-menu li {
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-dropdown-menu li:hover {
    background-color: var(--wcbc-gold, #c5a059);
    color: var(--wcbc-navy, #0b1d3a);
}

/* Limpieza del Widget Nativo de Google */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adaptaciones en Celular */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }

    .top-bar-right {
        gap: 12px;
    }

    .custom-lang-selector {
        padding: 3px 8px;
        font-size: 0.72rem;
    }
}

/* OCULTABARRA SUPERIOR DE GOOGLE TRANSLATE (IFRAME) */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* EVITA QUE GOOGLE EMPUJE EL BODY HACIA ABAJO */
body {
    top: 0px !important;
    position: static !important;
}

/* OCULTA EL TOOLTIP FLOTANTE SOBRE LOS TEXTOS TRADUCIDOS */
#goog-gt-tt, 
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}
/* ELIMINA RESALTADO Y SELECCIÓN DE TEXTO DE GOOGLE TRANSLATE */
.goog-text-highlight {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* DESACTIVA LA SELECCIÓN VISUAL AL PASAR EL CURSOR */
font[style*="background-color"] {
    background-color: transparent !important;
}

/* EVITA EL CURSOR DE TEXTO O SELECCIÓN EN ELEMENTOS INTERACTIVOS TRADUCIDOS */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* DESACTIVA EL HOVER DE TRADUCCIÓN NATIVO DE GOOGLE */
body {
    top: 0px !important;
}

span[font-size], 
font[font-size] {
    border: none !important;
    box-shadow: none !important;
}
/* ==========================================
   BLOQUEO TOTAL DE RESALTADO DE TRADUCCIÓN
   ========================================== */

/* 1. Neutraliza etiquetas <font> inyectadas por Google */
font {
    background-color: transparent !important;
    box-shadow: none !important;
    position: static !important;
}

/* 2. Fuerza transparencia en cualquier elemento traducido */
.goog-text-highlight,
span.goog-text-highlight,
font.goog-text-highlight,
*[class*="goog-text-highlight"] {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
}

/* 3. Desactiva cuadros tooltip/globos flotantes al pasar el puntero */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 4. Evita que la etiqueta font cambie el cursor o capture eventos */
font[style] {
    background-color: transparent !important;
}

/* ==========================================
   SECCIÓN DE FINANZAS Y BECAS 
   ========================================== */

.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 35px auto 0;
}

.finance-plan-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.finance-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.finance-plan-card.featured {
    border: 2px solid var(--wcbc-gold, #c5a059);
}

.plan-header {
    background-color: var(--wcbc-navy, #0b1d3a);
    color: #ffffff;
    padding: 25px 20px;
    text-align: center;
}

.plan-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.plan-badge.gold {
    color: var(--wcbc-gold, #c5a059);
}

.plan-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--wcbc-gold, #c5a059);
    line-height: 1;
}

.plan-price .currency {
    font-size: 1.3rem;
    vertical-align: super;
}

.plan-price .cents {
    font-size: 1.2rem;
}

.plan-price .period {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 400;
}

.plan-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.plan-description {
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.plan-features li {
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features i {
    color: var(--wcbc-gold, #c5a059);
    width: 18px;
}

/* Tarjeta Informativa de Becas de Trabajo */
.scholarship-info-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--wcbc-gold, #c5a059);
    border-radius: 10px;
    padding: 25px 30px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.scholarship-icon {
    font-size: 2.2rem;
    color: var(--wcbc-gold, #c5a059);
    flex-shrink: 0;
}

.scholarship-content h3 {
    color: var(--wcbc-navy, #0b1d3a);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.scholarship-content p {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.scholarship-note {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scholarship-note i {
    color: var(--wcbc-navy, #0b1d3a);
    font-size: 1rem;
}

/* Adaptación para Celulares */
@media (max-width: 768px) {
    .scholarship-info-card {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }

    .scholarship-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ==========================================
   CASA ROJA - ALTA VISIBILIDAD DE IMAGEN
   ========================================== */

.student-house-section {
    width: 100%;
    background-color: var(--wcbc-navy, #0b1d3a);
    overflow: hidden;
}

.student-house-split {
    display: flex;
    min-height: 550px;
    width: 100%;
}

/* Columna de Foto: Limpia, nítida y sin capas encima */
.student-house-photo {
    flex: 1.2; /* Ocupa más espacio para lucir la fachada en PC */
    position: relative;
    overflow: hidden;
}

.student-house-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Columna de Texto: Fondo azul sólido con tipografía dorada */
.student-house-details {
    flex: 1;
    background-color: var(--wcbc-navy, #0b1d3a);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.gold-tag {
    color: var(--wcbc-gold, #c5a059);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-house-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 2.8rem;
    color: var(--wcbc-gold, #c5a059);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-house-quote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 25px;
}

.hero-house-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-house-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.hero-house-list i {
    color: var(--wcbc-gold, #c5a059);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.btn-hero-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--wcbc-gold, #c5a059);
    color: var(--wcbc-navy, #0b1d3a);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-hero-gold:hover {
    background-color: #d4af66;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.35);
}

/* ==========================================
   ADAPTACIÓN PARA CELULARES Y TABLETS
   ========================================== */

@media (max-width: 992px) {
    .student-house-split {
        flex-direction: column;
    }

    .student-house-photo {
        width: 100%;
        height: 280px; /* Foto completa y clara en la parte superior del celular */
    }

    .student-house-details {
        padding: 35px 22px;
        align-items: center;
        text-align: center;
    }

    .hero-house-title {
        font-size: 2rem;
    }

    .hero-house-quote {
        font-size: 1rem;
    }

    .hero-house-list li {
        font-size: 0.8rem;
        text-align: left;
    }

    .btn-hero-gold {
        width: 100%;
        align-self: center;
    }
}

/* ==========================================
   ESTILOS DE ADMISIÓN Y MODAL EMERGENTE (AÑADIDOS)
   ========================================== */

/* Adaptación de la barra de acciones para 3 tarjetas de admisiones */
.action-grid-admissions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--wcbc-navy);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
    overflow: hidden;
}

/* Modal Emergente para Requisitos de Admisión */
.requirements-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 29, 58, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.requirements-modal.active {
    display: flex;
}

.requirements-modal-content {
    background: #ffffff;
    border-radius: var(--border-radius);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--wcbc-gold);
    animation: zoomIn 0.3s ease;
}

.requirements-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--wcbc-navy);
    cursor: pointer;
    transition: var(--transition);
}

.requirements-modal-close:hover {
    color: var(--wcbc-gold);
}

.modal-header h2 {
    font-family: var(--font-serif);
    color: var(--wcbc-navy);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--wcbc-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.requirements-list li i {
    color: var(--wcbc-gold);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .action-grid-admissions {
        grid-template-columns: 1fr;
    }
}

