/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}
/* Para prevenir el desbordamiento horizontal: */
html, body {
    overflow-x: hidden; /* Esto previene el scroll horizontal */
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px; /* Asegura padding interno sin causar desbordamiento */
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    color: #1f4fa2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    text-align: center;
    color: #1f4fa2;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Botones */
.btn {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: #cc5200;
}

/* Tarjetas */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    gap: 2rem;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar #nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding-left: 9rem;
}

.navbar #nav-menu ul li a {
    text-decoration: none;
    color: #1f4fa2;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #1f4fa2;
    margin: 4px 0;
    border-radius: 5px;
}

/* Banner/Carousel Styles */
.banner {
    margin: 0;
    padding: 0;
}

.banner .carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.banner .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.banner .carousel-item {
    min-width: 100%;
    position: relative;
}

.banner .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner .carousel-caption {
    position: absolute;
    top: 20px;
    left: 20px;
    text-align: left;
    color: #fff;
    max-width: 50%;
    padding: 1rem;
    border-radius: 8px;
}

.banner .carousel-caption h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.banner .carousel-caption p {
    font-size: 1.5em;
    margin-bottom: 1em;
}

.banner .carousel-control-prev,
.banner .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.5em;
    cursor: pointer;
    font-size: 2em;
}

.banner .carousel-control-prev {
    left: 10px;
}

.banner .carousel-control-next {
    right: 10px;
}

/* Main Content */
.main-content {
    text-align: center;
}

.main-content h1 {
    color: #ff093c;
    font-size: 2.5rem;
    font-weight: 900;
}

.main-content .slogan {
    color: #00107b;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Sección Líder con fondo e íconos */
.lider-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    text-align: center;
}

.lider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.lider-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.lider-title {
    color: white;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lider-subtitle {
    color: #c9a33a;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.separator {
    width: 100px;
    height: 3px;
    background-color: #c9a33a;
    margin: 0 auto 3rem;
}

.lider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.lider-card {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.lider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.lider-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.lider-card-title {
    color: #c9a33a;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lider-card-text {
    color: #fff;
    line-height: 1.6;
}

/* Sección Misión y Visión */
.mision-vision-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mv-text-col {
    padding-right: 2rem;
}

.mv-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mv-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mv-feature img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.mv-feature-text h4 {
    color: #1f4fa2;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.mv-feature-text p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

.mv-main-text p {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 700;
}

.mv-carousel-col {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mv-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.mv-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.mv-carousel-item {
    min-width: 100%;
}

.mv-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.mv-carousel-control-prev,
.mv-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.5em;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-carousel-control-prev {
    left: 15px;
}

.mv-carousel-control-next {
    right: 15px;
}

.mv-tab-content {
    display: none;
}

.mv-tab-content.active {
    display: block;
}

.mv-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.mv-tab {
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f4fa2;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.mv-tab.active {
    color: #c9a33a;
}

.mv-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #c9a33a;
}

/* Estilos para la sección Instalaciones */
.instalaciones-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    color: #1f4fa2;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.instalaciones-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem; /* Reducido para que las tarjetas sean más grandes */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.instalacion-card {
    background-color: white;
    border-radius: 4px; /* Reducido para coincidir con la referencia */
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 200px; /* Tamaño mínimo para asegurar que sean suficientemente grandes */
    min-height: 200px;
}

.instalacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.instalacion-icon {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Hace que el contenedor sea cuadrado */
    position: relative;
    overflow: hidden;
}

.instalacion-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin deformarse */
}

.instalacion-title {
    color: #1f4fa2;
    font-size: 0.9rem; /* Reducido para coincidir con la referencia */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8rem 0.5rem; /* Reducido para dar más espacio a la imagen */
    margin: 0;
    background-color: white;
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .instalaciones-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .instalaciones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .instalacion-title {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .instalaciones-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .instalacion-card {
        min-width: 280px;
        min-height: 280px;
    }
}

/* Contacto */
.contacto p, .contacto ul {
    margin: 0.5rem 0;
}

/* Footer */
.footer {
    background-color: #16478d;
    color: white;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 40px;
}

.footer-section {
    flex: 1 1 300px;
    min-width: 300px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-section h3 {
    color: #d6a63e;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-section hr {
    border: none;
    border-top: 2px solid #a6252d;
    width: 80%;
    margin-bottom: 15px;
}

.logos img {
    display: block;
    max-width: 300px;
    margin-bottom: 25px;
}

.contacto p, .acerca p {
    margin: 10px 0;
}

.contacto .icon {
    margin-right: 8px;
    color: white;
    font-size: 1.2rem;
}

.horario strong {
    color: #d6a63e;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin-right: 15px;
    display: inline-block;
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    vertical-align: middle;
    margin-right: 5px;
}

.copyright-bar {
    background-color: #0e3166;
    color: white;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: 30px;
    font-size: 0.9rem;
}

.copyright-bar p {
    margin: 0;
}

/* Banner Nosotros */
.nosotros-banner {
    position: relative;
    background-color: #12448d;
    color: white;
    overflow: hidden;
}

.banner-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-text {
    padding: 1rem;
    flex: 0 0 30%;
}

.banner-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-image {
    flex: 0 0 50%;
    text-align: right;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
}

/* Sección Por qué elegirnos */
.why-choose-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

/* Estilos para la columna de imagen */
.why-choose-image {
    position: relative;
}

.why-choose-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Estilos para la columna de contenido */
.why-choose-content {
    display: flex;
    flex-direction: column;
}

/* Navegación de pestañas */
.tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    padding: 1rem 1.5rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px 5px 0 0;
    margin-right: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: #1f4fa2;
    color: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1f4fa2;
}

/* Contenido de las pestañas */
.tabs-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h2 {
    color: #1f4fa2;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.tab-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: #444;
}

.tab-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tab-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

/* Media Queries */
@media (max-width: 1200px) {
    .instalaciones-grid,
    .beneficios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .valor-item {
        flex: 0 0 calc(33.333% - 1.5rem);
    }
    
    .valor-icon {
        width: 140px;
        height: 140px;
    }
    
    .valor-icon img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 992px) {
    .banner-content,
    .content-grid {
        flex-direction: column;
    }
    
    .banner-text,
    .text-column {
        flex: 1 1 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .banner-image,
    .image-column {
        flex: 1 1 100%;
        text-align: center;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .paz-content {
        flex-direction: column;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .mv-text-col {
        padding-right: 0;
        order: 2;
    }
    
    .mv-carousel-col {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    #nav-menu.open {
        display: flex;
    }

    #nav-menu ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .instalaciones-grid,
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instalacion-card,
    .beneficio-card {
        padding: 0.75rem;
    }
    
    .oferta-grid {
        grid-template-columns: 1fr;
    }
    
    .buttons-container {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .valor-item {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .valor-icon {
        width: 120px;
        height: 120px;
    }
    
    .valor-icon img {
        width: 70px;
        height: 70px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .copyright-bar {
        padding: 10px 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .instalaciones-grid,
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
    
    .valor-item {
        flex: 0 0 100%;
    }
    
    .valores-carousel {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .paz-title {
        font-size: 1.8rem;
    }
    
    .oferta-column {
        padding: 1.5rem;
    }
    
    .oferta-btn {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .oferta-icon {
        width: 60px;
        height: 60px;
    }
    
    .beneficio-title {
        font-size: 1.1rem;
    }
    
    .lider-section {
        padding: 3rem 0;
    }
    
    .lider-title {
        font-size: 2rem;
    }
    
    .lider-subtitle {
        font-size: 1.3rem;
    }
    
    .lider-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .lider-card {
        padding: 1.5rem;
    }
    
    .lider-icon {
        width: 60px;
        height: 60px;
    }
}

/* CSS para header fijo y menú activo */

/* Header fijo */
.navbar {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Cambiado de relative a fixed */
    top: 0; /* Asegura que esté en la parte superior */
    left: 0; /* Asegura que esté alineado a la izquierda */
    right: 0; /* Asegura que cubra todo el ancho */
    z-index: 1000;
    gap: 2rem;
    transition: all 0.3s ease; /* Suaviza cualquier cambio */
}

/* Añadir padding al body para compensar el header fijo */
body {
    padding-top: 80px; /* Ajustar según la altura del header */
}

/* Estilo para el elemento activo del menú */
.navbar #nav-menu ul li a.active {
    color: #a6252d; /* Color rojo para el elemento activo */
    font-weight: bold;
    position: relative;
}

/* Añadir un subrayado al elemento activo */
.navbar #nav-menu ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #a6252d;
}

/* Efecto hover para los elementos del menú */
.navbar #nav-menu ul li a:hover {
    color: #a6252d;
}

/* Clase para reducir el tamaño del header al hacer scroll */
.navbar.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Ajuste para el logo cuando el header se reduce */
.navbar.scrolled .logo img {
    max-height: 40px;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Menor padding para móviles */
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .navbar.scrolled {
        padding: 0.5rem 1rem;
    }
}

/* Estilos modificados para el banner de admisión */

/* Banner principal */
.section-banner {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Fondo azul - modificado para que solo cubra el 50% izquierdo */
.section-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Forzar 50% con !important */
    height: 100%;
    background-color: #12448d; /* Color base azul */
    z-index: 1;
}

/* Contenido del banner */
.section-banner-content {
    position: relative;
    height: 100%;
    max-width: 1700px;
    margin: 0 auto;
    z-index: 2;
}

/* Contenedor del título */
.section-title-container {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
    z-index: 3;
}

/* Título de la sección */
.section-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff093c; /* Rojo institucional */
}

/* Contenedor de la imagen - modificado para que ocupe todo el espacio disponible */
.section-banner-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 72%; /* Ocupa más de la mitad, de derecha a izquierda */
    height: 100%;
    overflow: hidden;
}

/* Imagen del banner - modificada para que cubra todo el espacio */
.section-banner-image img {
    width: 100%; /* Modificado: de max-width a width */
    height: 100%; /* Modificado: de max-height a height */
    object-fit: cover; /* Modificado: de contain a cover */
    object-position: center;
}

/* Efecto de animación para el título */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Efecto de animación para la imagen */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-banner-image img {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .section-banner {
        height: 350px; /* Reducido para pantallas medianas */
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-banner {
       height: auto;
       min-height: 400px;
    }
    
    .section-banner-content {
        flex-direction: column;
        padding: 2rem;
    }
    
    .section-title-container {
        flex: 0 0 100%;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title::after {
        left: 0;
        width: 100%;
    }
    
    .section-banner-image {
        flex: 0 0 100%;
        height: 250px; /* Altura fija para móviles */
    }
    
    /* En móviles, el fondo azul cubre todo el ancho en la parte superior */
    .section-banner-bg {
        width: 100%;
        height: 40%; /* Solo cubre la mitad superior */
    }
}


/* Ajustes estéticos para el sitio web del Colegio Franciscano Neza */

/* 1. Cambiar el color de las frases del carrusel a blanco */
.banner .carousel-caption h1 {
    color: white !important; /* Forzar color blanco */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Añadir sombra para mejorar legibilidad */
}

/* 2. Mejorar distribución de tarjetas en sección líder */
.lider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forzar 4 columnas */
    gap: 2rem; /* Aumentar espacio entre tarjetas */
    width: 100%; /* Usar todo el ancho disponible */
    max-width: 1200px; /* Limitar ancho máximo */
    margin: 0 auto; /* Centrar horizontalmente */
    padding: 0 1rem; /* Añadir padding horizontal */
}

.lider-card {
    padding: 1.5rem; /* Aumentar padding interno */
}

.lider-card-text {
    font-size: 1.1rem; /* Aumentar tamaño de texto */
    line-height: 1.6;
}

/* 3. Aumentar tamaño de iconos y textos en pestañas misión/visión */
.mv-feature img {
    width: 80px; /* Aumentar de 60px a 80px */
    height: 80px;
}

.mv-feature-text h4 {
    font-size: 1.4rem; /* Aumentar de 1.2rem a 1.4rem */
    margin-bottom: 0.7rem;
}

.mv-feature-text p {
    font-size: 1.1rem; /* Aumentar de 1rem a 1.1rem */
}

.mv-main-text p {
    font-size: 1.5rem; /* Aumentar de 1.3rem a 1.5rem */
}

.mv-tab {
    font-size: 1.4rem; /* Aumentar de 1.2rem a 1.4rem */
}

/* 4. Mejorar visibilidad del título "Nuestras instalaciones" */
.instalaciones-section .section-title {
    color: #1f4fa2; /* Azul institucional */
    font-size: 2.5rem; /* Aumentar tamaño */
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: none; /* Eliminar cualquier sombra que pueda afectar */
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.instalaciones-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #a6252d; /* Rojo institucional */
}

/* Mejorar distribución y tamaño de tarjetas de instalaciones */
.instalaciones-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem; /* Aumentar espacio entre tarjetas */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Añadir padding horizontal */
}

.instalacion-card {
    padding: 1.5rem; /* Aumentar padding interno */
}

.instalacion-icon img {
    width: 100%;
    height: auto;
    max-height: 180px; /* Aumentar altura máxima */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.instalacion-title {
    font-size: 1.2rem; /* Aumentar tamaño de texto */
    line-height: 1.4;
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .lider-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instalaciones-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lider-grid {
        grid-template-columns: 1fr;
    }
    
    .instalaciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mv-feature img {
        width: 60px;
        height: 60px;
    }
}
