body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #fff;
}
p
{
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* Estilo de la galería de imágenes */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.legend .label {
    color:black;
}
.image-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin-bottom: 20px; /* Conserva el espaciado inferior */
}

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Asegura la proporción adecuada */
    border-radius: 0.5rem;
    margin-bottom: 10px;
}

/* Texto debajo de cada imagen */
.image-container p {
    margin: 5px 0;
    color: #7a7a7a;
    font-size: 0.9em;
}

/* Modal de imagen en tamaño completo */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: 50px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
}

.modal-content img.zoom {
    transform: scale(1.5);
}

/* Estilo del botón de cierre del modal */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Botones y formularios */
.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.delete-button {
    background-color: #dc3545;
}

.submit:hover, .delete-button:hover {
    opacity: 0.8;
}

.submit, .delete-button {
    text-decoration: none;
    color: white;
}

input[type="file"], input[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* Headers y títulos */
h1, h2, h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #333;
}

.navbar-brand{
    color: white; 
}

/* Enlace de cambio */
.cambio {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.cambio:hover {
    background-color: #0056b3;
}

/* Estilo para los mensajes */
.message {
    text-align: center;
    font-size: 1rem;
    color: #333;
    margin-top: 20px;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

/* Contenedor de texto */
.texto-container {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
    white-space: pre-wrap;
    border: 1px solid #ccc;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
}

.modal-image {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
.modal-image-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
.modal-image-caption {
    text-align: center;
    color: #ccc;
    padding: 10px;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-text {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: auto;
}
.modal-text-content {
    margin: auto;
    padding: 20px;
    background-color: #fff;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 8px;
}
.modal-text-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #888;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.modal-text-close:hover,
.modal-text-close:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

.select-container {
    display: block; /* Asegúrate de que los selectores estén siempre visibles */
}

/* ---------- Botones con estética unificada ---------- */
a[class*="btn"],
button[class*="btn"],
input[type="submit"],
.meno-item,
.briefing-item,
.geo-link,
.sat-item,
.geo-back,
.sat-back {

    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 36, 107, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    transform-origin: center;
    will-change: transform;
}

a[class*="btn"]:hover,
a[class*="btn"]:focus-visible,
button[class*="btn"]:hover,
button[class*="btn"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
.meno-item:hover,
.meno-item:focus-visible,
.briefing-item:hover,
.briefing-item:focus-visible,
.geo-link:hover,
.geo-link:focus-visible,
.sat-item:hover,
.sat-item:focus-visible,
.geo-back:hover,
.geo-back:focus-visible,
.sat-back:hover,
.sat-back:focus-visible {

    transform: scale(1.05);
    box-shadow: 0 10px 22px rgba(0, 36, 107, 0.2);
    filter: brightness(1.03);
    outline: none;
}

a[class*="btn"]:focus-visible,
button[class*="btn"]:focus-visible,
input[type="submit"]:focus-visible,
.meno-item:focus-visible,
.briefing-item:focus-visible,
.geo-link:focus-visible,
.sat-item:focus-visible,
.geo-back:focus-visible,
.sat-back:focus-visible {

    outline: 3px solid rgba(0, 36, 107, 0.25);
    outline-offset: 2px;
}