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

body{
	background: #D4D4D4;
	font-family: 'Open sans';
}

.wrap{
	width: 800px;
	max-width: 90%;
	margin: 30px auto;
}

ul.tabs{
	width: 100%;
	background: #363636;
	list-style: none;
	display: flex;
}

ul.tabs li{
	width: 18%;
}

ul.tabs li a{
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	text-align: center;

	display: block;
	padding: 20px 0px;
}

.active{
	background: #0984CC;
}

ul.tabs li a .tab-text{
	margin-left: 8px;
}

.secciones{
	width: 100%;
	background: #fff;
}

.secciones article{
	padding: 30px;
}

.secciones article p{
	text-align: justify;
}


@media screen and (max-width: 700px){
	ul.tabs li{
		width: none;
		flex-basis: 0;
		flex-grow: 1;
	}
}

@media screen and (max-width: 450px){
	ul.tabs li a{
		padding: 15px 0px;
	}

	ul.tabs li a .tab-text{
		display: none;
	}

	.secciones article{
		padding: 20px;
	}
}
/* Header Image */
.header-image {
    width: 80%; /* Set default width to 80% */
    max-width: 1200px; /* Limit maximum width */
    margin: 20px auto 0; /* Center horizontally and add margin to the top */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image img {
    width: 100%; /* Make image fill the container */
    height: auto; /* Maintain aspect ratio */
    max-height: 400px; /* Ensure it doesn't become too tall */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
}
.slider {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slider img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: none; /* todas ocultas */
}

.slider img.active {
    display: block; /* la activa se muestra */
}


/* News Container */
.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between ;
    margin: 20px auto;
    width: 80%; /* Set default width to 80% */
    max-width: 1200px; /* Limit maximum width */

    
}

/* News Header */
.news-header {
    width: 100%;
    margin-bottom: autopx; /* Space below the title */
    font-family: 'Georgia', serif; /* Fuente formal */
    text-align: center;
}

.news-header h2 {
    font-size: 28px; /* Font size of the title */
    font-weight: bold; /* Bold for the title */
    color: #333; /* Text color of the title */
}

/* News Item */
.news-item {
    width: 23%; /* Four items per row with some margin */
    margin-bottom: 20px;
    border: 1px solid #ddd; /* Border around news items */
    border-radius: 5px; /* Rounded corners */
    overflow: hidden;
    background-color: #fff; /* Background color of news items */
}

.news-item img {
    width: 100%; /* Image should take the full width of the container */
    height: 280px; /* Maintain aspect ratio */
    object-fit: fill;
    display: block;
    border-radius: 6px;
}

.news-text {
    padding: 15px;
}

.news-text p {
    margin-bottom: 10px;
}

.news-text .read-more {
    color: #007bff; /* Color of the "Ver más" link */
    text-decoration: none;
    font-weight: bold;
}

.news-text .read-more:hover {
    text-decoration: underline;
}


/* Video Container */
.video-container {
    text-align: center;
    margin: 20px auto;
}

.video-container video {
    width: 80%;
    max-width: 800px;
    height: auto;
}

/* Footer */
footer {
    background-color: #000000; /* Color de fondo del footer */
    color: #fff; /* Color del texto del footer */
    padding: 20px;
    text-align: center;
    width: 100%;
    
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px; /* Limitar el ancho máximo */
    margin: 0 auto;
}

.footer-section {
    flex: 1; /* Cada sección ocupa un espacio igual */
    margin: 10px;
    padding: 10px;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 1px solid #444; /* Línea debajo del título */
    padding-bottom: 5px;
}

.footer-section p {
    margin: 5px 0;
}

.footer-section a {
    color: #fff; /* Color del texto del enlace */
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline; /* Subrayar en hover */
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre iconos */
}

.social-icon img {
    width: 30px; /* Tamaño de los iconos */
    height: 30px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
    }
}


@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        background-color: #18067a; /* Same as navbar for consistency */
        position: absolute;
        top: 80px; /* Adjust according to new navbar height */
        left: 0;
        padding: 10px 0;
        z-index: 1000; /* Ensure it's above other content */
        text-align: center; /* Center text in dropdown menu */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 15px 0; /* Increase space between menu items in mobile view */
    }

    .menu-toggle {
        display: block; /* Show menu toggle button */
    }

    .header-image {
        width: 100%; /* Make image full width on small screens */
        max-width: none; /* Remove max-width limitation */
    }

    .header-image img {
        max-height: 300px; /* Reduce height for smaller screens */
    }

    .video-container video {
        width: 90%;
    }

z

    .news-container {
        width: 80%; /* Full width on small screens */
        padding: 0 10px; /* Add some padding */
    }

    .news-item {
        width: 100%; /* Make each news item full width on small screens */
        margin-bottom: 15px; /* Reduce margin for better fit on small screens */
    }
}

@media (max-width: 480px) {
    .news-item {
        width: 100%; /* Make each news item full width on very small screens */
    }

    .nav-links a {
        font-size: 18px; /* Increase font size for small screens */
    }

    .navbar .logo img {
        height: 50px; /* Adjust logo size for very small screens */
    }
}

/* Sello Educativo Container */
.sello-educativo-container {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Georgia', serif; /* Fuente formal */
}

.sello-educativo-header {
    margin-bottom: 20px;
}

.sello-educativo-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center; /* Centra el título */
}

/* Sello Educativo Content */
.sello-educativo-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sello-icon {
    flex: 1 1 30%; /* Ajusta el espacio de cada bloque */
    text-align: center;
    margin-bottom: 20px;
    padding: 10px; /* Añade padding alrededor de cada icono */
}

.sello-icon img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.sello-text-container {
    margin: 0 auto;
    padding: 10px;
    text-align: justify; /* Justifica el texto */
}

.sello-icon p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sello-educativo-content {
        flex-direction: column;
        align-items: center;
    }

    .sello-icon {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    .sello-icon img {
        width: 80px;
    }

    .sello-text-container {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sello-icon img {
        width: 60px;
    }

    .sello-text-container {
        font-size: 12px;
    }
}

/* Contenedor de la rectora */
.rectora-container {
    display: flex;
    align-items: stretch; /* Asegura que los elementos hijos se estiren a la altura máxima */
    background-color: #4d9df1;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px auto;
    width: 80%;
    max-width: 1500px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.rectora-image {
    flex: 1;
}

.rectora-image img {
    width: 100%;
    height: 100%; /* Asegura que la imagen ocupe todo el contenedor */
    object-fit: cover; /* Mantiene la proporción de la imagen sin distorsionar */
}

.rectora-text {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rectora-text h1, .rectora-text h3 {
    margin-bottom: 10px; /* Ajusta el margen entre los encabezados */
}

.rectora-text p {
    margin-bottom: 20px;
}



/* Estilo del botón "Leer Más" */
.read-more-button {
    display: inline-block;
    background-color: #f5c116; /* Color de fondo del botón */
    color: #fff; /* Color del texto del botón */
    text-decoration: none;
    padding: 10px 20px; /* Tamaño del botón */
    border-radius: 5px; /* Bordes redondeados */
    font-size: 16px; /* Tamaño de la fuente */
    text-align: center; /* Centra el texto en el botón */
    transition: background-color 0.3s ease; /* Transición suave para el hover */
}

.read-more-button:hover {
    background-color: #0056b3; /* Color de fondo más oscuro en hover */
}


/* Responsive Styles */
@media (max-width: 768px) {
    .rectora-container {
        flex-direction: column; /* Apilar imagen y texto verticalmente en pantallas pequeñas */
    }

    .rectora-image, .rectora-text {
        width: 100%; /* Asegurar que ambos elementos ocupen el ancho completo */
    }
}

/* Contenedor de la Galería */
/* Contenedor de la galería */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Título */
.gallery-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #004080;
}

/* Contenedor de imágenes en cuadrícula */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* ordena en filas */
    gap: 20px; /* espacio entre las imágenes */
}

/* Cada ítem de la galería */
.gallery-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Imágenes con tamaño uniforme */
.gallery-item img {
    width: 100%;
    height: 200px; /* todas las imágenes tendrán la misma altura */
    object-fit: cover; /* recorta la imagen sin deformarla */
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Descripción */
.gallery-description {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Botones dentro de la galería */
.gallery-item .btn {
    display: inline-block;
    margin-top: 5px;
}


.gallery-buttons {
    text-align: center; /* Alinear los botones al centro */
}

.btn-primary {
    background-color: #4d9df1; /* Color del botón primario */
    color: #fff; /* Color del texto para el botón primario */
}

.btn-primary:hover {
    background-color: #e8ac15; /* Tonalidad más oscura al pasar el ratón */
}

.btn-secondary {
    background-color: #072a4f; /* Color del botón secundario */
    color: #fff; /* Color del texto para el botón secundario */
    text-decoration: none;
    padding: 17px 20px;
    font-weight: bold;
    
}

.btn-secondary:hover {
    background-color: #dc1212; /* Tonalidad más oscura al pasar el ratón */
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .gallery-images {
        flex-direction: column; /* Apilar las imágenes verticalmente en pantallas pequeñas */
        align-items: center; /* Alinear las imágenes al centro */
    }

    .gallery-item {
        margin-bottom: 20px; /* Añadir espacio entre imágenes cuando están apiladas */
    }

    .gallery-buttons {
        display: flex; /* Usar flexbox para alinear los botones */
        flex-direction: column; /* Apilar los botones verticalmente */
        align-items: center; /* Alinear los botones al centro */
    }

    .btn {
        margin: 10px 0; /* Espacio entre los botones */
    }
}


/* Contenedor de Mapas */
.map-container {
    display: flex;
    justify-content: space-between; /* Espacio entre los mapas */
    gap: 20px; /* Espacio entre los mapas */
    margin: 20px auto;
    width: 90%;
    max-width: 1200px; /* Ancho máximo */
}

/* Estilos individuales para cada mapa */
.map {
    flex: 1;
    max-width: 48%; /* Ajustar para diseño responsivo y espaciado */
    position: relative;
    overflow: hidden; /* Ocultar el desbordamiento */
    border-radius: 8px; /* Opcional: esquinas redondeadas para un aspecto moderno */
}

/* Estilo para el iframe dentro del contenedor de mapas */
.map iframe {
    width: 100%;
    height: 300px; /* Establecer una altura fija para el mapa */
    border: 0; /* Eliminar borde alrededor del mapa */
}

/* Estilos para los encabezados dentro del contenedor de mapas */
.map h3 {
    margin: 0 0 10px 0; /* Margen en la parte inferior para el encabezado */
    padding: 0;
    font-size: 18px; /* Ajustar el tamaño de fuente según sea necesario */
    color: #ffffff; /* Ajustar el color del texto */
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column; /* Apilar los mapas verticalmente en pantallas pequeñas */
    }

    .map {
        max-width: 100%; /* Ancho completo para cada mapa */
    }

    .map iframe {
        height: 200px; /* Ajustar la altura para pantallas más pequeñas */
    }
}

@media (max-width: 480px) {
    .map h3 {
        font-size: 16px; /* Ajustar el tamaño de fuente para pantallas muy pequeñas */
    }

    .map iframe {
        height: 180px; /* Ajustar aún más la altura para pantallas muy pequeñas */
    }
}/* List Container Styles */

/* Estilos generales para el menú desplegable */
.nav-links .dropdown-content {
    display: none;
    position: absolute;
    background-color: #361cc8;;
    min-width: 200px;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links .dropdown-content {
        position: relative;
        min-width: 100%; /* Expande el menú al 100% del contenedor */
        box-shadow: none;
    }

    .nav-links .dropdown-content a {
        padding: 12px 16px;
        text-align: center;
    }
    
    .navbar .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }
}

/* Estilos para el formulario de contacto */
.contact-form-container {
    width: 100%;
    padding: 20px;
    background-color: #0b0259; /* Fondo gris claro */
    border-top: 2px solid #000000; /* Línea superior verde oscuro */
    box-sizing: border-box;
    
}

.contact-form-title {
    text-align: center;
    color: #ffffff; /* Color verde oscuro */
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    color: white;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    flex: 1;
    padding: 0 10px;
    box-sizing: border-box;
}

.half-width {
    flex: 1;
    min-width: 45%;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #676972; /* Botón verde oscuro */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #e8ac15;; /* Botón verde más oscuro al pasar el ratón */
}

/* Responsividad */
@media (max-width: 768px) {
    .contact-form-title {
        font-size: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .half-width {
        min-width: 100%;
    }

    .submit-button {
        font-size: 14px;
    }
}

/* Contenedor general del header */
.menu-sup {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo a la izquierda, menú al centro */
    background-color: #004080; /* fondo azul */
    padding: 10px 20px;
}

/* Logo del header */
.logo-header {
    flex: 0 0 auto; /* tamaño fijo */
}

.logo-header .logo-img {
    height: 60px;
}

/* Contenedor del menú centrado */
.menu-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center; /* menú centrado */
}

/* Lista del menú principal */
.menu-center ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px; /* aumenta espacio entre opciones */
}

/* Links del menú principal */
.menu-center ul li a {
    text-decoration: none;
    color: #fff; /* letras blancas */
    padding: 12px 18px; /* más espacio alrededor de cada opción */
    display: block;
    font-weight: 500;
    font-size: 18px; /* tamaño de letra más grande */
    transition: color 0.3s;
}

.menu-center ul li a:hover {
    color: #FFD700;
}

/* Submenú */
.menu-center ul li {
    position: relative;
}

.menu-center ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    background: #004080;
    padding: 10px 0;
    min-width: 180px;
    z-index: 10;
}

.menu-center ul li ul li a {
    color: #fff;
    padding: 8px 15px;
    display: block;
}

.menu-center ul li:hover ul {
    display: block;
}

/* Menú móvil */
.menu-sup-movil {
    display: none;
    background-color: #004080;
    padding: 10px 15px;
}

.menu-sup-movil .logo img {
    height: 50px;
}

.menu-sup-movil .area-boton button {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
}

.menu-sup-movil .collapse ul li a {
    color: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.menu-sup-movil .collapse ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .menu-sup { display: none; }
    .menu-sup-movil { display: block; }
}

/* ===== AVISO ===== */

.aviso-container {
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    padding: 40px 20px;
    margin: 50px auto;
    border-radius: 12px;
}

.aviso-box {
    margin-top: 30px;
}

.aviso-texto {
    font-size: 16px;
    line-height: 1.6;
    border-left: 5px solid #0d6efd;
    padding-left: 20px;
}

.pdf-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pdf-card h4 {
    text-align: center;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .aviso-texto {
        border-left: none;
        padding-left: 0;
        margin-bottom: 20px;
    }
}
