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;
}

.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;
}

nav {
    background-color: #343a40;
    color: white;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #5a6268;
}


.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;
}

#actividades h5 {
    margin-top: 35px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2rem;
    color: #3761ec;
    font-weight: bold;
}



nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

#actividades,
#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: #ffd500;
    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;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#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: #006699;
}

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;
}

form[id^="editForm"] {
    background-color: #f4f4f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

form[id^="deleteForm"] {
    background-color: #fce4e4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

form label {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

form input[type="text"],
form input[type="url"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
}

form[id^="editForm"] input[type="submit"],
form[id^="deleteForm"] input[type="submit"] {
    background-color: #005b99;
    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;
}

form[id^="deleteForm"] button {
    background-color: #f0ad4e;
    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;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    max-width: 80%;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

.modal-content h6 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#verificarContrasena {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#verificarContrasena:hover {
    background-color: #0056b3;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal:hover {
    display: flex;
}

@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .modal-content h6 {
        font-size: 16px;
    }

    #verificarContrasena {
        width: 100%;
    }
}

#passwordModal input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

#passwordModal button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}



body.mobile nav {
    display: none;
}

body.mobile nav.show {
    display: block;
    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 ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;

}

body.mobile nav li {
    display: block;
    margin: 0;
    width: 100%;

}

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 {
    padding-top: 1px;
}

#menuToggle {
    transition: background-color 0.3s ease;
}

#menuToggle:hover {
    background-color: #0056b3;
}


input[name="fecha"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 18px;
    font-size: 1rem;
    border: 2px solid #007bff;
    /* azul vivo */
    border-radius: 12px;
    background-color: #f0f8ff;
    /* azul muy claro */
    color: #004085;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 123, 255, 0.1);
    cursor: pointer;
    font-weight: 600;
}

input[name="fecha"]:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 10px #0056b3aa;
    background-color: #e0f0ff;
}

.flatpickr-calendar {
    border-radius: 15px;
    border: 2px solid #007bff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.25);
}

.flatpickr-day:hover {
    background: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #bbb;
    background: transparent;
    cursor: not-allowed;
    opacity: 0.6;
}