body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.header-wrapper {
    position: relative;
    width: 100%;
}

.header-wrapper img {
    filter: none;
}

.header-content img {
    max-width: 80px;
    height: auto;
    margin-left: 20px;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    color: #ffffff;
    z-index: 1;
    margin-top: -170px;
}

.header-content h1,
.header-content h2,
.header-content h3 {
    margin: 0;
    animation: fadeIn 2s ease-in-out;
}

.header-content h2,
.header-content h3 {
    animation: fadeIn 2s ease-in-out 1s;
}

.curves {
    position: relative;
    width: 100%;
    height: 200px;
    background: #0078D7;
    overflow: hidden;
    z-index: -3;
}

.curve,
.curve2,
.curve3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -3;
}

.curve {
    height: 80px;
    background: #0056A0;
    border-top-left-radius: 90% 30px;
    border-top-right-radius: 90% 40px;
}

.curve2 {
    height: 65px;
    background: red;
    border-top-left-radius: 90% 20px;
    border-top-right-radius: 90% 30px;
}

.curve3 {
    height: 55px;
    background: white;
    border-top-left-radius: 50% 20px;
    border-top-right-radius: 50% 20px;
}

.image-slide.active {
    opacity: 1;
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.image-container img {
    width: 150px;
    height: auto;
    border-radius: 10px;
}

footer {
    background-color: #0078D7;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    width: 100%;
    margin: 0;
    height: 45px;
    margin-top: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.social-item {
    text-align: center;
    margin: 0;
}

.social-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.social-name {
    font-size: 12px;
    margin: 2px 0;
}

.social-image img {
    width: 40px;
    height: 40px;
    margin: 0;
}

nav {
    background-color: #030303;
    color: rgba(255, 255, 255, 0.689);
    padding: 15px 0;
    text-align: center;
    margin-top: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline;
    margin: 0 20px;
}

nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #5a6268;
}

.header-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-title h0 {
    font-size: 2rem;
    font-weight: bold;
    padding-top: 30px;
    color: blue;
}

#actividades h5 {
    margin-top: 35px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2rem;
    color: #3761ec;
    font-weight: bold;
}



/* Asegura que no se vean elementos encima de otros */
#noticias,
#admin-panel {
    clear: both;
}

.activities {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
    padding: 0 5%;
}

.activity {
    width: calc(30% - 10px);
    height: 300px;
    margin-bottom: 20px;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    box-sizing: border-box;
    border: 1px solid #000000;
    padding: 10px;
    text-align: center;
}



.activity:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.activity img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


.activity-title {
    position: absolute;
    top: auto;
    left: auto;
    color: white;
    font-size: 0.5em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.activity img:hover {
    opacity: 1;
}

.activity-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0);
    color: #000000;
    text-align: justify;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.6;
}

.activity h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.activity h3:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

form {
    z-index: 25;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Estilo del panel de administración */
#admin-panel {
    width: 96%;
    height: auto;
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease;
}

#admin-panel form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#admin-panel input[type="text"],
#admin-panel textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

#admin-panel input[type="text"]:focus,
#admin-panel textarea:focus {
    border-color: #990000;
}

input[type="url"],
textarea {
    display: block;
    margin: 10px 0;
}

label {
    font-weight: bold;
}


.buttons-container {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}


.editar-btn,
.eliminar-btn {
    background-color: #006699;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 48%;
}

.editar-btn:hover,
.eliminar-btn:hover {
    background-color: #005577;
}





/* Estilos específicos para el formulario de edición */
form[id^="editForm"] {
    background-color: #f4f4f9;
    /* Fondo gris claro */
    border-radius: 8px;
    /* Bordes redondeados */
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    position: fixed;
    /* Fijado en la pantalla */
    top: 50%;
    /* Centrado vertical */
    left: 50%;
    /* Centrado horizontal */
    transform: translate(-50%, -50%);
    /* Ajuste para centrar */
    z-index: 9999;
    /* Estará por delante de todo */
    width: 90%;
    /* Ancho máximo */
    max-width: 600px;
    /* Ancho máximo de 600px */
    height: auto;
    /* Ajusta la altura automáticamente */
    max-height: 80vh;
    /* La altura máxima es el 80% de la altura de la ventana */
    overflow-y: auto;
    /* Permite desplazarse verticalmente si el contenido excede la altura */
    display: none;
    /* Inicialmente oculto */
}

/* Estilos específicos para el formulario de eliminación */
form[id^="deleteForm"] {
    background-color: #fce4e4;
    /* Fondo suave rojo claro */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    /* Fijado en la pantalla */
    top: 50%;
    /* Centrado vertical */
    left: 50%;
    /* Centrado horizontal */
    transform: translate(-50%, -50%);
    /* Ajuste para centrar */
    z-index: 9999;
    /* Estará por delante de todo */
    width: 90%;
    /* Ancho máximo */
    max-width: 600px;
    /* Ancho máximo de 600px */
    height: auto;
    /* Ajusta la altura automáticamente */
    max-height: 80vh;
    /* La altura máxima es el 80% de la altura de la ventana */
    overflow-y: auto;
    /* Permite desplazarse verticalmente si el contenido excede la altura */
    display: none;
    /* Inicialmente oculto */
}

/* Estilo de los labels dentro de los formularios */
form label {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Estilo de los inputs y textarea dentro de los formularios */
form input[type="text"],
form input[type="url"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    /* Espaciado entre los campos */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
    /* Asegura que el padding no afecte el tamaño total */
}

/* Estilo del botón de submit dentro del formulario de edición */
form[id^="editForm"] input[type="submit"],
form[id^="deleteForm"] input[type="submit"] {
    background-color: #005b99;
    /* Color de fondo azul oscuro */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;

}

form[id^="editForm"] input[type="submit"]:hover,
form[id^="deleteForm"] input[type="submit"]:hover {
    background-color: #004080;
    /* Cambio de color en hover */
}

/* Estilo del botón de cancelación en el formulario de eliminación */
form[id^="deleteForm"] button {
    background-color: #f0ad4e;
    /* Color naranja para el botón de cancelación */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

form[id^="deleteForm"] button:hover {
    background-color: #ec971f;
    /* Cambio de color en hover */
}

.conocer-mas-btn {
    background-color: #0d21fa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.conocer-mas-btn:hover {
    background-color: #005c9961;
}

/* Estilos para el Modal */
.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    /* Fija el modal en la pantalla */
    z-index: 1000;
    /* Asegura que esté por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro translúcido */
    justify-content: center;
    /* Centrado horizontal */
    align-items: center;
    /* Centrado vertical */
    text-align: center;
    /* Centra el texto dentro del modal */
}

/* Estilos del contenido del modal */
.modal-content {
    background-color: #fff;
    padding: 30px;
    /* Espacio interno para que no toque los bordes */
    border-radius: 15px;
    width: 400px;
    /* Ancho fijo del modal */
    max-width: 80%;
    /* Ancho máximo del 80% del tamaño de la ventana */
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
    /* Animación de deslizamiento */
}

/* Estilo para el encabezado del modal */
.modal-content h6 {
    font-size: 18px;
    color: #333;
    /* Color del texto */
    margin-bottom: 20px;
}

/* Estilo para el campo de la contraseña */
.modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    /* Borde gris claro */
    border-radius: 4px;
    /* Bordes redondeados */
    font-size: 16px;
}

/* Estilo para el botón de verificar */
#verificarContrasena {
    background-color: #007bff;
    /* Fondo azul */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    /* Bordes redondeados */
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Transición para el hover */
}

#verificarContrasena:hover {
    background-color: #0056b3;
    /* Cambio de color al pasar el cursor */
}

/* Estilo para el botón de cerrar */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Cambio de color cuando el usuario pasa el cursor sobre el botón de cerrar */
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilo para cuando el modal se cierra haciendo click fuera de él */
.modal:hover {
    display: flex;
}

/* Agregar estilo para pantallas pequeñas */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        /* Reduce el ancho en pantallas pequeñas */
        padding: 15px;
        /* Ajusta el padding */
    }

    .modal-content h6 {
        font-size: 16px;
        /* Ajusta el tamaño del texto */
    }

    #verificarContrasena {
        width: 100%;
        /* Hace que el botón sea más grande en pantallas pequeñas */
    }
}



/* Estilos para el Panel de Administración */
#admin-panel {
    display: none;
    /* Oculto por defecto */
    background-color: rgba(0, 0, 0, 0.1);
    /* Fondo suave */
    padding: 20px;
    text-align: center;
    /* Centra el texto dentro del panel */
}

/* Estilos del contenido del panel */
#admin-panel form {
    background-color: #fff;
    /* Fondo blanco */
    border-radius: 8px;
    /* Bordes redondeados */
    padding: 20px;
    width: 100%;
    max-width: 700px;
    /* Ancho máximo del formulario, ajusta aquí el tamaño */
    margin: 0 auto;
    /* Centra el formulario */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra alrededor del panel */
    display: flex;
    flex-direction: column;
    /* Coloca los elementos dentro en columna */
    gap: 15px;
    /* Espaciado entre los elementos */
    font-family: Arial, sans-serif;
    /* Fuente clara y moderna */
}


/* Estilo para el encabezado del panel */
#admin-panel h2 {
    font-size: 22px;
    color: #333;
    /* Color del texto */
    margin-bottom: 20px;
}

/* Estilo para las etiquetas */
#admin-panel label {
    font-size: 16px;
    color: #333;
    /* Color del texto */
    text-align: left;
    /* Alineación a la izquierda */
    margin-bottom: 8px;
    /* Espacio debajo de la etiqueta */
}

/* Estilo para los campos de texto */
#admin-panel textarea {
    width: 100%;
    max-width: 100%;
    /* Ancho máximo al 100% */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    /* Borde gris claro */
    border-radius: 4px;
    /* Bordes redondeados */
    font-size: 16px;
    min-height: 150px;
    /* Alto mínimo */
    max-height: 250px;
    /* Alto máximo */
    resize: vertical;
    /* Permite redimensionar verticalmente */
}

/* Estilo para los campos de texto */
#admin-panel input[type="url"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    /* Borde gris claro */
    border-radius: 4px;
    /* Bordes redondeados */
    font-size: 16px;
}

/* Estilo para el botón de submit */
#admin-panel input[type="submit"] {
    background-color: #28a745;
    /* Fondo verde */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    /* Bordes redondeados */
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Transición para el hover */
}

#admin-panel input[type="submit"]:hover {
    background-color: #218838;
}

#passwordModal input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

#passwordModal button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    #admin-panel form {
        width: 90%;
        padding: 15px;
    }

    #admin-panel h2 {
        font-size: 18px;
    }

    #admin-panel input[type="submit"] {
        width: 100%;
    }
}

.accessibility-menu {
    position: fixed !important;
    top: 280px;
    right: 10px;
    z-index: 1000;
    cursor: move;
}

#toggleAccessibility {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

}

#toggleAccessibility img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}


#accessibilityOptions {
    width: 200px;
    position: fixed;
    top: 180px;
    right: 50px;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#accessibilityOptions.show {
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 1;
    visibility: visible;
}

#accessibilityOptions button {
    width: 100%;
    padding: 8px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    text-align: left;
}

#accessibilityOptions button:hover {
    background: #0056b3;
}

.magnifier {
    zoom: 1.5;
}

.hidden {
    display: none;
}


.high-contrast img {
    filter: invert(100%) !important;
}

.large-text {
    font-size: 1.5em;
}

.highlight-links a {
    background-color: yellow !important;
    color: black !important;
    font-weight: bold;
    padding: 2px 5px;
}

/* ====== DISEÑO RESPONSIVO DEL NAV EN MÓVIL ====== */
/* Nav oculto en móvil inicialmente */
body.mobile nav {
    display: none;
    /* Otros estilos que ya tienes */
}

/* Cuando tenga clase 'show', se muestra */
body.mobile nav.show {
    display: block;
    /* Mantén estilos móviles que pasamos antes */
    margin-top: 50px;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}


body.mobile nav li {
    display: block;
    margin: 0;
}

body.mobile nav a {
    display: block;
    background-color: #ffffff10;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
}

body.mobile nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

body.mobile .form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 110px;
    padding: 0 60px 50px;
    width: 100%;
    box-sizing: border-box;
}

body.mobile .form-container h5 {
    color: #000000;
    font-size: 68px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-in-out;
    text-align: center;
}







body.mobile {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    padding: 0;
    margin: 0;
    padding-top: 1px;
}

/* Botón de menú */
body.mobile #menuToggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;

}

/* Navegación */
body.mobile nav ul {
    list-style: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* puedes ajustar según tu diseño */
    background-color: #003366;
}

body.mobile nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    background: #0055a5;
    border-radius: 6px;
    display: block;
    text-align: center;
    font-size: 0.95rem;
}

/* Noticias */
body.mobile #actividades {
    padding: 15px 10px;
}

body.mobile #actividades h5 {
    font-size: 1.2rem;
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
}

body.mobile .activities {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.mobile .activity {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.mobile .activity img {
    width: 100%;
    height: auto;
    display: block;
}

body.mobile .activity-text {
    padding: 10px;
}

body.mobile .activity-text p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

body.mobile .conocer-mas-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Formularios */
body.mobile form {
    padding: 10px;
    background: #eaf2ff;
    border-radius: 8px;
    margin-top: 10px;
}

body.mobile form input,
body.mobile form textarea {
    width: 100%;
    margin: 8px 0;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

body.mobile form input[type="submit"],
body.mobile form button {
    background: #0055a5;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Accesibilidad */
body.mobile .accessibility-menu {
    position: fixed;
    bottom: 80px;
    right: 10px;
    z-index: 1000;
}

body.mobile #accessibilityOptions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

body.mobile #accessibilityOptions button {
    font-size: 0.85rem;
    padding: 6px;
    background: #eee;
    border: none;
    border-radius: 5px;
}

/* Modal */
body.mobile .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.mobile .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 85%;
    max-width: 400px;
    text-align: center;
}

body.mobile .modal-content input,
body.mobile .modal-content button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}