/* ---- GENERALES Y RESET ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---- ENCABEZADO (HEADER) ---- */
.main-header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 45px;
    margin-right: 15px;
}

.logo-text h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.logo-text p {
    font-size: 0.8rem;
    color: #666;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #0056b3;
}

.main-nav a i {
    margin-right: 8px;
}

/* ------------------------------------------------ */
/* ---- ESTILOS DEL CALENDARIO (ACTUALIZADOS) ---- */
/* ------------------------------------------------ */
.calendar-tag {
    color: white;
    font-weight: bold;
    display: inline-block; /* Ocupa solo el ancho del contenido */
    padding: 8px 15px; 
    margin: 10px 0; 
    border-radius: 5px;
    font-size: 1.1em;
    text-transform: uppercase;
    text-align: left; 
}

/* Color Verde para el Instituto (Calendario A) - Color de .btn-tour-virtual */
.calendar-tag-a {
    background-color: #1a9c68; 
}

/* Color Azul para el Colegio (Calendario B) - Se mantiene el azul principal */
.calendar-tag-b {
    background-color: #007bff; 
}

/* IMPORTANTE: Aumentamos la especificidad para asegurar que el icono del calendario sea blanco */
.info-box .calendar-tag i {
    margin-right: 8px;
    color: white; 
}


/* ---- CONTENEDOR PRINCIPAL Y SECCIONES DIVIDIDAS ---- */
.split-screen-container {
    display: flex;
    width: 100%;
    height: 100vh;
    padding-top: 75px; /* Altura aproximada del header */
}

.split-section {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* ---- CONTENIDO SUPERPUESTO (TEXTO, BOTONES) ---- */
.content-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.content-overlay h1, .info-box, .features-list, .btn-main {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.content-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.842);
    color: #333;
    padding: 1.5rem;
    border-radius: 15px;
    max-width: 580px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-shadow: none;
}

.info-box .quote {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-box p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Esta regla mantiene el color azul en los iconos que NO son de calendario (como el globo B2+) */
.info-box p i { 
    margin-right: 8px;
    color: #007bff;
}

.features-list {
    margin-bottom: 2rem;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
}

.features-list li i {
    font-size: 0.5rem;
    margin-right: 12px;
}

.btn-main {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-tour-virtual {
    background-color: #1a9c68;
}

.btn-tour-virtual-off {
    background-color: #8e8e8e;
}

.btn-galeria {
    background-color: #007bff;
}

.info-box .button-group {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ---- CARRUSEL DE DESLIZAMIENTO ---- */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
}

.carousel-slide.active {
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}

.carousel-slide.prev {
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
}

/* ---- NUEVO: RESPONSIVIDAD PARA MÓVILES (CORREGIDO) ---- */
@media (max-width: 768px) {
    
    .main-header {
        flex-direction: column;
        padding: 1rem;
        position: relative;
    }

    .main-header .logo-container {
        margin-bottom: 1rem; /* Espacio entre logo y nav en móvil */
    }
    
    .main-nav {
        gap: 15px;
    }

    .split-screen-container {
        flex-direction: column;
        height: auto;
        padding-top: 0;
    }

    /* ---- CAMBIOS CLAVE AQUÍ ---- */
    .split-section {
        width: 100%;
        height: auto; /* Permitimos que la altura se ajuste al contenido */
        min-height: 100vh; /* Aseguramos que ocupe al menos toda la pantalla */
        display: flex; /* Usamos flex para centrar el contenido verticalmente si sobra espacio */
        align-items: center;
    }

    /* Añadimos la separación inferior a la primera sección */
    #instituto-section {
        margin-bottom: 2rem; /* Puedes ajustar este valor (ej: 1rem, 3rem) */
    }
    /* ---- FIN DE CAMBIOS CLAVE ---- */

    .content-overlay {
        padding: 2rem;
        text-align: center;
        position: relative; /* Ajuste para que funcione bien con el nuevo flex del padre */
        height: auto; /* La altura del overlay también debe ser automática */
    }

    .content-overlay h1 {
        font-size: 2.2rem;
    }

    .info-box {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-list {
        text-align: left;
        display: inline-block;
    }
    
    .info-box .button-group {
        flex-direction: column;
        align-items: center;
    }
}