html{
    font-family: 'Montserrat', sans-serif;
    }

header {

    background-color: #2B3342;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 150px;
    border-bottom: 1px solid transparent; /* grosor */
    border-image-source: linear-gradient(to right, #F7C831, #92D050);
    border-image-slice: 1;
    border-image-width: 0 0 3px 0;         /* solo abajo */
    border-image-outset: 0;
}

#container-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#container-logo img {
    height: 120px;
    width: 120px;          /* cuadrado */
    border-radius: 25%;
    object-fit: contain;
    /*display: block;         elimina espacios extra */
    background-color: #fff;
}

#container-temporada {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#container-temporada img {
    height: 120px;
    width: 120px;          /* cuadrado */
    border-radius: 25%;
    object-fit: contain;
    /*display: block;          elimina espacios extra */
    background-color: #fff;
}

#titulo h1 {
    margin: 0;
    text-align: center;
    color: white;
    font-size: 2.0rem;
}

#titulo h2 {
    margin: 0;
    text-align: center;
    color: white;
    font-size: 1.0rem;
}

#titulo h3 {
    margin: 0;
    text-align: center;
    color: #92D050;
    font-size: 1.0rem;
}

#principal h1 {
    margin: 0;
    text-align: center;
    color: #002244;
    font-size: 1.8rem;
    margin-top: 20px;
}

#principal h2 {
    margin: 0;
    text-align: center;
    color: #002244;
    font-size: 1.8rem;
    margin-top: 20px;
}

#container-usuario {
  text-align: right;
  color: #FFFFFF;
  font-size: 0.7rem;
  margin-top: 10px;      /* espacio superior */
}

#container-usuario p {
  margin: 4px 0;         /* espacio entre líneas */
}

.usuario-nombre {
  color: #F7C831;
  font-weight: bold;
}

.empresa-nombre {
  color: #F7C831;
  font-weight: bold;
}

#logoutForm {
  margin-top: 6px;       /* espacio antes del botón */
}

.green {
    color: #A6FA00;
}

.yellow {
    color: #F7C831;
}

nav {
    background-color: #2c3844;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

nav a {
    color: #f2f2f2;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 300;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #F7C831;
}

.linea-degradada2 {
    position: fixed;
    bottom: 85px;
    height: 3px;
    width: 100%;
    background: linear-gradient(to left, #F7C831, #92D050);
    border-radius: 2px;
    z-index :1000;
}

html, body {
  height: 100%;              /* ocupa toda la altura de la ventana */
  margin: 0;                 /* elimina márgenes por defecto */
  display: flex;
  flex-direction: column;    /* organiza en columna: header, main, footer */
}

main {
    flex: 0;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2B3342;
    color: #f2f2f2;
    padding: 20px;
}

footer section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

footer a {
    color: #f2f2f2;
    text-decoration: none;
}

footer p {
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

/* Botón flotante del menú */
.menu-btn {
    background-color: #4D5874;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 165px;
    right: 20px;
    z-index: 1001;
    border-radius: 6px;
    font-size: 1rem;
}

/* Menú desplegable flotante */
.floating-menu {
    position: fixed;
    top: 210px;
    right: 20px;
    background-color: #4D5874;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.floating-menu a {
    color: #f6f6f7;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #92D050;
    font-weight: 300;
}

.floating-menu a:hover {
    background-color: #92D050;
}

/* Depuración adicional */
.subtitulo form,
.subtitulo p {
    margin: 5px 0;
}

.modal-content h3 {
    margin-bottom: 10px;
}


/* Modal login */
.modal {
    display: none; /* Se cambia a block por JS o estilo inline */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px; 
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Asegura que el contenido no toque los bordes del modal blanco */
    box-sizing: border-box; 
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #4D5874;
    text-align: center;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    color: #4D5874;
    font-weight: bold;
    font-size: 0.9rem;
}

.modal-content input {
    width: 100%;
    box-sizing: border-box; /* Esto evita que el input se salga del modal */
    padding: 12px;
    margin-bottom: 20px; /* Corregido: solo un valor */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Contenedor de botones para que queden uno al lado del otro */
.botonera {
    display: flex !important; /* Forzamos el comportamiento flex */
    flex-direction: row;      /* Aseguramos dirección horizontal */
    justify-content: space-between;
    gap: 15px;                /* Espacio entre botones */
    margin: 10px auto 0 auto;
    width: 80%;
}

.modal-content button {
    flex: 1;                 /* Ambos crecen por igual */
    padding: 12px 5px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;   /* Evita que se comporte como bloque completo */
}

/* Colores específicos con mayor prioridad */
.modal-content .btn-ingresar {
    background-color: #92D050 !important;
    color: #002244 !important;
}

.modal-content .btn-regresar {
    background-color: #354452 !important;
    color: #ffffff !important;
}

.modal-content button:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -15px;
}

.construccion {
    width: 100%;
    display: flex; 
    justify-content: center;
/*    align-items: center;*/
    padding: 20px 0; /* Espaciado para que el efecto hover no se corte */
}

/* Contenedor de la imagen */
.image-container {
    width: 90%;
    max-width: 1200px;
    height: clamp(400px, 70vh, 800px);
/*    height: 70vh;
    min-height: 500px;*/
    border-radius: 2rem;
    overflow: hidden; /* Recorta la imagen dentro del borde */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
    border: 1px solid #e0e0e0; /* gris muy claro */
    position: relative; /* Indispensable  Contenedor relativo para que el botón se posicione dentro*/
    background-color: #f9f9f9; /* Fondo blanco por si el plano tarda en cargar */
}

/* Imagen dentro del contenedor */
.image-container iframe,
.image-container img {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
}

/* Efecto al pasar el cursor */
.image-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Sombra flotante */
    transform: translateY(-5px); /* Se eleva ligeramente */
    border-color: #c0c0c0; /* el borde se oscurece ligeramente */
}

/* El iframe hereda el comportamiento de la imagen */
.image-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Estilo del botón de pantalla completa */
.btn-fullscreen {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    background-color: rgba(43, 51, 66, 0.8); /* Azul ITB con transparencia */
    color: #92D050; /* Verde ITB */
    border: 1px solid #92D050;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
/*    font-size: 0.9rem;*/
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-fullscreen:hover {
    background-color: #92D050;
    color: #2B3342;
/*    transform: scale(1.05);*/
}

/* Estilo del Spinner (Efecto de cargando) */
.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Fondo blanco mientras carga */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #92D050; /* Color verde ITB */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    color: #2B3342;
    font-weight: bold;
}

/* Ajuste cuando el contenedor entra en modo FULLSCREEN */
#main-view-container:fullscreen {
    width: 100vw;
    height: 100vh;
    background-color: white;
    border-radius: 0; /* Quitamos bordes redondeados en pantalla completa */
}

#main-view-container:fullscreen iframe {
    height: 100vh !important; /* El plano ocupa toda la pantalla */
}