/* Importar la fuente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Aplicar la fuente a todo el documento */
body {
    font-family: 'Poppins', sans-serif;
}


.bg-rojo {
    background-color: #a0223f; 
}

.text-gold {
    color: #b6915f; 
    font-weight: bold; 
}

.text-allrojo {
    color: #a0223f; 
    font-weight: bold; 
}

.bg-SLM {
    color: #a0223f;
    font-size: 50px;
    font-weight: 600;
}

/* Color guinda para el header */
.bg-guinda {
    background-color: #ffffff;
}

.logo {
    width: 50px; /* Ajusta según sea necesario */
    height: auto;
}

.social-icon {
    width: 25px; /* Tamaño uniforme para los íconos sociales */
    height: 25px;
}
/* Botones con efecto */
.btn-efecto {
    background-color: #fff;
    color: #a0223f;
    border: none;
    padding: 10px 20px;
    font-size: 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(175, 6, 48, 0.5);
    align-items: center;
}

.btn-efecto2 {
    background-color: #a0223f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(175, 6, 48, 0.5);
    align-items: center;
}

.btn-efecto3 {
    background-color: #b6915f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(255, 211, 36, 0.5);
    align-items: center;
}

.btn-efecto4 {
    background-color: #fff;
    color: #a0223f;
    border: none;
    padding: 10px 20px;
    font-size: 16;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(175, 6, 48, 0.5);
    align-items: center;
}

.btn-efecto5 {
    background-color: #b6915f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(255, 211, 36, 0.5);
    align-items: center;
}
/* Estilos base para el dropdown */
.nav-item.dropdown {
    position: relative;
}

/* Mostrar el menú al hacer hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Estilos del menú desplegable */
.dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0; /* Elimina el espacio entre el enlace y el menú */
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mantener los estilos existentes para los items */
.dropdown-item {
    color: #333;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
    padding: 8px 20px;
}

/* Hover en los links */
.dropdown-item:hover {
    background-color: #800020;
    color: white;
    border-left: 5px solid rgb(255, 166, 0);
    padding-left: 15px;
    transition: all 0.3s ease-in-out;
}

/* Mantener los estilos del botón de efecto */
.btn-efecto:hover {
    background-color: #7e0505;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(170, 59, 86, 0.8);
    color: #fff;
    align-items: center;
}

.btn-efecto2:hover {
    background-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(170, 59, 86, 0.8);
    color: #b31010;
    align-items: center;
}
.btn-efecto3:hover {
    background-color: #b6915f;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(226, 186, 64, 0.8);
    color: #fff;
    align-items: center;
}

.btn-efecto4:hover {
    background-color: #7e0505;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(170, 59, 86, 0.8);
    color: #fff;
    align-items: center;
}

.btn-efecto5:hover {
    background-color: #b6915f;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(226, 186, 64, 0.8);
    color: #fff;
    align-items: center;
}


/* Texto blanco centrado */
.text-white {
    color: #fff;
}

/* Títulos destacados */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Aumentar tamaño del texto */
.display-4 {
    font-size: 2.5rem;
}

/* Margen en números y títulos */
.row div p {
    font-size: 1.2rem;
    margin: 0;
}

/* Sección del campus */
.campus-section {
    position: relative;
    background: url('@web/assets/media/img/conalepp.png') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.campus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.255); /* Polarizado completo */
    z-index: 1; /* Asegura que el polarizado esté detrás del contenido */
}

.campus-banner {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté por encima del polarizado */
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    background-color: transparent; 
}

.campus-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.campus-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section {
    background-color: #a0223f;
    color: white;
    padding: 40px;
   
}

.text-content {
    margin-bottom: 20px;
}

.cta-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Planteles Section */
.planteles-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
}

.planteles-section h2 {
    margin-bottom: 2rem;
    color: #333;
}

.planteles-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas */
.plantel-card {
    position: relative;
    width: 300px;
    height: 350px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.plantel-card h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    margin: 0;
    background: white;
    color: #a0223f;
    font-size: 1.2rem;
    z-index: 2;
}

.plantel-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* Altura total menos el espacio del título */
}

.plantel-info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.plantel-info p {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: bottom 0.3s ease-in-out;
}

/* Estados hover */
.plantel-card:hover .plantel-info img {
    filter: grayscale(80%) brightness(0.7);
}

.plantel-card:hover .plantel-info p {
    bottom: 0;
}

.plantel-card:hover {
    transform: translateY(-5px);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #8e1c4a 0%, #5c0f30 100%);
    color: #fff;
    padding: 2rem 0 1rem 0; /* Reducido de 4rem a 2rem arriba */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -500px; /* Reducido de -50px */
    left: 0;
    right: 0;
    height: 90px; /* Reducido de 100px */
    background: #f6f6f6;
    transform: skewY(-3deg);
}

.footer-container {
    max-width: 800px; /* Reducido de 1200px */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem; /* Reducido de 2rem */
}

.contact-info {
    flex: 1;
    min-width: 250px; /* Reducido de 300px */
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem; /* Reducido de 2rem */
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-title {
    font-size: 1.25rem; /* Reducido de 1.5rem */
    margin-bottom: 1rem; /* Reducido de 1.5rem */
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-numbers, .address-info {
    margin-bottom: 0.8rem; /* Reducido de 1rem */
}

.phone-number {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0.4rem 0; /* Reducido de 0.5rem */
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.phone-number:hover {
    color: #4dd0e1;
}

.address-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-bottom {
    margin-top: 2rem; /* Reducido de 3rem */
    padding-top: 1rem; /* Reducido de 1.5rem */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    width: 120px; /* Reducido de 150px */
    margin-bottom: 0.8rem; /* Reducido de 1rem */
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem; /* Reducido de 0.9rem */
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        width: 90%; /* Ajustado para móviles */
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .planteles-container {
        flex-direction: column;
        align-items: center;
    }

    .campus-section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 20px;
    }

    .footer img {
        width: 60px;
    }
}

/*CSS VISTAS ALTERNAS */

.conalep-historia-section { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem; 
    font-family: 'Poppins', sans-serif; 
}

.conalep-historia-container { 
    display: flex; 
    align-items: stretch; 
    gap: 2rem; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    border-radius: 10px; 
    overflow: hidden; 
}

.conalep-historia-content { 
    flex: 1; 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
}

.conalep-historia-image-wrapper { 
    flex: 1; 
    max-width: 50%; 
    position: relative; 
}

.conalep-historia-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.conalep-historia-title { 
    color: #a0223f; 
    border-bottom: 3px solid #a0223f; 
    padding-bottom: 0.5rem; 
    margin-bottom: 1rem; 
}

.conalep-historia-subtitle { 
    color: #a0223f; 
    margin-top: 1rem; 
}

.conalep-valores-list {
    list-style-type: disc;
    padding-left: 30px;
    max-width: 600px;
}

.conalep-valores-list li {
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.5;
}

.conalep-politica-section { 
    background-color: #f9f9f9; 
    padding: 1rem; 
    border-left: 4px solid #a0223f; 
    font-style: italic; 
}

.team-title { 
    color: #000000; 
    border-bottom: 3px solid #a0223f; 
    padding-bottom: 0.5rem; 
    margin-bottom: 1rem; 
}

.team-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.team-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.team-image {
    width: 70%;
    height: auto;
    margin: 0 auto;
    transition: transform 0.3s;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    margin-top: 1rem;
}

.team-role {
    font-size: 1rem;
    color: #6c757d;
}


/* Contenedor de la imagen con tamaño fijo */
.image-container {
    width: 400px; /* Aumenta el ancho según lo que necesites */
    height: 560px; /* Ajusta según tu diseño */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    margin-left: -50px; /* Ajusta para moverlo hacia la izquierda sin afectar el contenedor de información */
}

/* Imagen dentro del contenedor */
.info-img {
    width: 100%; /* La imagen se ajusta al ancho del contenedor */
    height: 100%; /* La imagen se ajusta a la altura del contenedor */
    object-fit: cover; /* Evita deformaciones y mantiene la proporción */
}

/* Contenedor de la tarjeta de información */
.info-container {
    flex: 1;
    margin-left: 20px; /* Espacio entre la imagen y el contenido */
}

/* Contenedor del banner */
.banner-container {
    width: 90%; /* Hace que el contenedor ocupe el 90% del ancho de la página */
    max-width: 1200px; /* Ajusta según tus necesidades para que no se haga demasiado grande */
    height: 50%;
    margin: 0 auto; /* Centra el banner */
    overflow: hidden; /* Evita desbordes */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Imagen del banner */
.banner-img {
    width: 100%; /* La imagen ocupará todo el ancho del contenedor */
    height: 100%; /* La imagen ocupará todo el alto del contenedor */
    object-fit: cover; /* La imagen cubre todo el contenedor sin perder proporciones */
}

/* Estilos para las pestañas */
.conalep-tabs {
    margin-top: 2rem;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.conalep-tabs .nav-tabs {
    border-bottom: 2px solid #e4e4e4;
    margin-bottom: 20px;
}

.conalep-tabs .nav-tabs .nav-item {
    margin-bottom: -2px;
}

.conalep-tabs .nav-tabs .nav-link {
    display: inline-block;
    padding: 10px 20px;
    color: #000; /* Color negro para pestañas inactivas */
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.conalep-tabs .nav-tabs .nav-link.active {
    color: #8B0000 !important; /* Color rojo para pestaña activa */
    border-bottom-color: #8B0000 !important;
}

.conalep-tabs .nav-tabs .nav-link:hover {
    color: #8B0000; /* Color rojo al pasar el mouse */
}

.conalep-tab-content {
    padding: 20px;
    background: #fff;
}

.conalep-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conalep-link-list li {
    margin-bottom: 12px;
}

.conalep-link-list a {
    color: #333;
    text-decoration: none;
    display: inline-block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.conalep-link-list a:hover {
    color: #8B0000; /* Color rojo al pasar el mouse */
}

/* Responsive */
@media (max-width: 768px) {
    .conalep-tabs .nav-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .conalep-tabs .nav-tabs .nav-item {
        width: 100%;
    }
    
    .conalep-tabs .nav-tabs .nav-link {
        width: 100%;
        text-align: center;
    }

}


.conalep-card-border-red {
    border: 2px solid #c8c3c3 !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.conalep-card-border-red:hover {
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
    transform: scale(1.05);
}

.card-img-top-container {
    overflow: hidden;
}

.conalep-img-hover {
    transition: transform 0.3s ease;
}

.conalep-img-hover:hover {
    transform: scale(1.1);
}


/*-----------------------------------------------------------*/





/*Responsivo moviles*/


@media (max-width: 768px) {
    /* Ajustes generales */
    body {
        font-size: 14px;
    }

    /* Ajustes de botones */
    .btn-efecto, .btn-efecto2, .btn-efecto3, .btn-efecto4, .btn-efecto5 {
        font-size: 16px;
        padding: 8px 16px;
        width: 100%;
        margin: 5px 0;
    }

    /* Ajustes de texto */
    .bg-SLM {
        font-size: 30px;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    /* Ajustes de secciones */
    .campus-section {
        padding: 40px 0;
    }

    .campus-title {
        font-size: 1.8rem;
    }

    .campus-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .cta-section {
        padding: 20px;
        text-align: center;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    /* Planteles Section */
.planteles-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
}

.planteles-section h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.planteles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.planteles-container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.plantel-card {
    flex: 0 1 calc(33.333% - 2rem);
    max-width: 350px;
    min-width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 2rem;
}

.plantel-info {
    position: relative;
    width: 100%;
    height: 250px;
}

.plantel-info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plantel-card h3 {
    color: #a0223f;
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
    background: white;
}

.plantel-info p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.plantel-card:hover {
    transform: translateY(-5px);
}

.plantel-card:hover .plantel-info p {
    transform: translateY(0);
}

/* Media queries para tablets */
@media (max-width: 992px) {
    .plantel-card {
        flex: 0 1 calc(50% - 2rem);
    }
}

/* Media queries para móviles */
@media (max-width: 768px) {
    .planteles-container .row {
        gap: 1rem;
    }
    
    .plantel-card {
        flex: 0 1 100%;
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }

    .plantel-info {
        height: 200px;
    }

    .plantel-card h3 {
        font-size: 1.1rem;
    }

    .plantel-info p {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}
    /* Ajustes de historia */
    .conalep-historia-container {
        flex-direction: column;
    }

    .conalep-historia-image-wrapper {
        max-width: 100%;
    }

    .conalep-historia-content {
        padding: 1rem;
    }

    /* Ajustes del equipo */
    .team-container {
        padding: 1rem;
    }

    .team-card {
        margin-bottom: 20px;
    }

    .team-image {
        width: 90%;
    }

    /* Ajustes de la imagen contenedor */
    .image-container {
        width: 100%;
        height: 300px;
        margin-left: 0;
        margin-bottom: 20px;
    }

    /* Ajustes del banner */
    .banner-container {
        width: 95%;
        height: auto;
    }

    /* Ajustes del footer */
    .footer-container {
        padding: 0 10px;
    }

    .contact-info {
        width: 100%;
        margin-bottom: 15px;
    }

    .footer-logo {
        width: 100px;
    }
}

/* Media queries para dispositivos muy pequeños */
@media (max-width: 480px) {
    /* Ajustes adicionales para pantallas muy pequeñas */
    .campus-title {
        font-size: 1.5rem;
    }

    .btn-efecto, .btn-efecto2, .btn-efecto3, .btn-efecto4, .btn-efecto5 {
        font-size: 14px;
    }


    .team-name {
        font-size: 1.1rem;
    }

    .team-role {
        font-size: 0.9rem;
    }


    .nav-item.dropdown:hover .dropdown-menu {
        transform: none;
    }

    /* Ajustes de padding y márgenes */
    .conalep-historia-section {
        padding: 1rem;
    }

    .conalep-tab-content {
        padding: 10px;
    }
}

/* Media queries para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
   
    .team-card {
        width: 45%;
    }

    .image-container {
        width: 300px;
        height: 400px;
    }

    .btn-efecto, .btn-efecto2, .btn-efecto3, .btn-efecto4, .btn-efecto5 {
        font-size: 18px;
    }
}

/* Estilos generales */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* Responsivo moviles */
@media (max-width: 768px) {
    /* Ajustes generales */
    body {
        font-size: 14px;
    }

    /* Ajustes de botones */
    .btn-efecto, .btn-efecto2, .btn-efecto3, .btn-efecto4, .btn-efecto5 {
        font-size: 16px;
        padding: 8px 16px;
        width: 100%;
        margin: 5px 0;
    }

    /* Ajustes de logos y botones */
    .logo-container {
        flex-direction: column; /* Coloca los logos uno debajo del otro */
        align-items: center;    /* Centra los logos */
    }

    .nav-buttons {
        flex-direction: column; /* Coloca los botones debajo */
        align-items: center;    /* Centra los botones */
        margin-top: 10px;       /* Espacio entre los logos y los botones */
    }

    /* Ajustes de texto */
    .bg-SLM {
        font-size: 30px;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    /* Ajustes de secciones */
    .campus-section {
        padding: 40px 0;
    }

    .campus-title {
        font-size: 1.8rem;
    }

    .campus-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .cta-section {
        padding: 20px;
        text-align: center;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    /* Planteles Section */
    .planteles-section {
        text-align: center;
        padding: 2rem 1rem;
        background-color: #f9f9f9;
    }

    .planteles-section h2 {
        margin-bottom: 2rem;
        color: #333;
        font-size: 2rem;
    }

    .planteles-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .planteles-container .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .plantel-card {
        flex: 0 1 calc(33.333% - 2rem);
        max-width: 350px;
        min-width: 300px;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;
        margin-bottom: 2rem;
    }

    .plantel-info {
        position: relative;
        width: 100%;
        height: 250px;
    }

    .plantel-info img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .plantel-card h3 {
        color: #a0223f;
        padding: 1rem;
        margin: 0;
        font-size: 1.2rem;
        background: white;
    }

    .plantel-info p {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        margin: 0;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    .plantel-card:hover {
        transform: translateY(-5px);
    }

    .plantel-card:hover .plantel-info p {
        transform: translateY(0);
    }
}

/* Media queries para tablets */
@media (max-width: 992px) {
    .plantel-card {
        flex: 0 1 calc(50% - 2rem);
    }
}

/* Media queries para móviles */
@media (max-width: 768px) {
    .planteles-container .row {
        gap: 1rem;
    }
    
    .plantel-card {
        flex: 0 1 100%;
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }

    .plantel-info {
        height: 200px;
    }

    .plantel-card h3 {
        font-size: 1.1rem;
    }

    .plantel-info p {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

@media only screen and (max-width: 768px) {
    .ocultar-en-movil {
      display: none;
    }
  }
  
/* Mantenemos los estilos base igual */
.row.justify-content-center.mt-4 {
    margin: 2rem auto;
    padding: 0 1rem;
}

.col-md-8.d-flex.align-items-start {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.image-container {
    width: 400px;
}

.info-container {
    flex: 1;
}

.info-img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Ajustes específicos para móvil */
@media screen and (max-width: 768px) {
    .col-md-8.d-flex.align-items-start {
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important; /* Centra los elementos */
    }

    .image-container {
        width: 100% !important;
        padding: 0 !important; /* Elimina cualquier padding */
    }

    .info-img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
        display: block !important; /* Asegura que la imagen se comporte como bloque */
        margin: 0 auto !important; /* Centra la imagen */
    }

    .info-container {
        width: 100% !important;
        margin-top: 1rem !important;
        padding: 0 !important; /* Elimina padding extra */
    }

    .card {
        width: 100% !important;
        margin: 0 !important; /* Elimina márgenes extra */
    }

    .card-body {
        padding: 1rem !important;
        text-align: left !important; /* Alinea el texto */
    }
}

/* Mantener ajustes para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .info-img {
        height: 200px !important;
    }
}
