
:root {
  /* Colores institucionales*/
  --color-azul-principal: #004C97;
   --color-azul-principal-degradado: linear-gradient(135deg, #4a90e2, #357ABD);;
  --color-azul-principal-degradado-intenso:linear-gradient(135deg, var(--color-azul-principal), #4d8dcd);
  --color-azul-claro: #007ACC;
  --color-azul-claro-transparente: #0a9cfd54;
  --color-azul-brillo: #5ABEFF;

  /* Colores complementarios */
  --color-naranja: #FF9E1B;
  --color-amarillo: #FFD700;
  --color-alerta: #E60026;
  --color-rosa-suave: rgba(225, 9, 9, 0.874);
  --color-rosa-suave-transparente: rgba(225, 9, 9, 0.238);
  --color-amarillo-suave: #e1ca48;
  /* Colores neutros */
  --color-blanco: #ffffff;
  --color-gris-claro: #f4f4f4;
  --color-gris-medio: #ccc;
  --color-gris-transparente: rgba(126, 126, 121, 0.4);
  --color-negro-suave: #333;
  --color-gris-suave:rgba(160, 159, 159, 0.8);

  /* Fondos especiales */
  --fondo-amanecer: rgba(255, 204, 153, 0.4);
  --fondo-noche: rgba(10, 20, 40, 0.85);
  --fondo-menu: rgba(255, 255, 255, 0.95);

  /* Verdes*/
  --color-verde: #28a745;
  --color-verde-oscuro:#176128;;
}


/* ==== BASE ==== */

 body, html  {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-gris-claro);
  color: var(--color-negro-suave);
  overflow-x: hidden; /* Evita scroll horizontal */
  max-width: 100vw;    /* Evita que el contenido se salga del viewport horizontal */
  box-sizing: border-box;
}

#content-container {
  min-height: 100vh;
  width: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;

}


/* ==== ENCABEZADO ==== */
.header-tabs {
  display: flex;
  align-items: center;
  justify-content: left;
  background: var( --color-azul-principal);
  color: var(--color-blanco);
  width: 100%;
  padding: 1% 5%;
  box-shadow: 0px 3px 8px #00000090;
    
}

.logo {
  width: 4%;
  height: auto;

}

h1 {
  color: var(--color-blanco);
  margin: 0;
  padding: 0;
  font-size: 150%;
  

}

h2 {
  color: var(--color-azul-claro);
  margin: 20px auto;
  font-family: Poppins, Geneva, Tahoma, sans-serif;
  padding: 1% 0;
  font-weight: 900;
  font-size: 150%;
}



.subtitle {
  font-size: small;
  color: var(--color-amarillo);
  margin: 0;
}

/* Agrupador del título y subtítulo */
.title-block {
  display: flex;
  flex-direction: column;
  margin-left: 1%;
  margin-right: 1%;

}


/* Estilo resumen del tiempo */
.weather-summary {
  background-color: rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  margin-right: 10%;
  width: auto;
  padding: 1% 1%;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0px 1px 4px #00000050;
  color: var(--color-blanco);
   margin-left: 4px; /* Corregido */
}


.clock {
  width: 80px; /* ancho fijo que se ajuste a tu formato de hora */
}


#btnToggleMenu {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 12px;
  border: none;
  border-radius: 6px;
  background: var(--color-azul-principal-degradado);
  color: var(--color-blanco);
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(53, 122, 189, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#btnToggleMenu:hover {
  background: linear-gradient(135deg, #357ABD, #2a5d8f);
  box-shadow: 0 6px 12px rgba(42, 93, 143, 0.6);
}

/* ==== NOMBRE APP ==== */

.nombreW {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 270%;
  font-weight: 700;
  color: var(--color-blanco);
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, color 0.3s ease;
}

.nombreW:hover {
  transform: scale(1.05);
}

@keyframes oceanShine {
  0% { background-position: 200% 0; filter: brightness(1); }
  50% { background-position: 100% 0; filter: brightness(1.8); }
  100% { background-position: 0% 0; filter: brightness(1); }
}



#nombre.shine-dia {
 background: linear-gradient(
    90deg,
    #ffffff 10%,
    #e3cd90 30%,
    #FFB800 45%,
    #e3cd90 60%,
    #ffffff 80%
  );
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: oceanShine 2.5s ease forwards;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}

#nombre.shine-noche {
background: linear-gradient(
  90deg,
  #ffffff 10%,
  #a899d0 30%,     /* lila claro */
  #bca4ff 45%,     /* lila brillante */
  #a18cd1 60%,     /* violeta suave tipo niebla */
  #ffffff 80%
);

  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: oceanShine 2.5s ease forwards;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}








/* ==== BOTONES GENERALES ==== */


.logout-btn {
  position: absolute;
  left: 10px;
  background-color: var(--color-alerta);
  border-radius: 25px;
}

.logout-btn:hover {
  background-color: #ff4c4c;
  transform: translateY(-2px);
}

.logout-btn:active {
  background-color: #e04343;
  transform: translateY(0);
}

.index-toggle-btn,
.suggestions-btn {
  position: fixed;
  z-index: 1001;
  background-color: var(--color-gris-transparente);
  color: var(--color-blanco);
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.index-toggle-btn {
  right: 2%;
}

.index-toggle-btn:hover,
.suggestions-btn:hover {
  background-color: var(--color-gris-suave);
}

.suggestions-btn {
  left: 2%;
}





/* ==== MENÚ LATERAL ==== */
#index-menu {
  font-family: 'Poppins', sans-serif;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 30vw;
  background-color: var(--fondo-menu);
  backdrop-filter: blur(8px); /* Efecto vidrio */
  z-index: 100000;
  overflow-y: auto;
  padding: 10px;
  border-radius: 4px;
}

/* Menú abierto */
#index-menu.open {
  transform: translateX(0);
  
}

/* Botones generales */
#index-menu button {
  font-weight: bold;
  display: block;
  width: 100%;
  padding: 15px;
  margin: 5px 0;
  background-color: transparent;
  border: none;
  text-align: left;
  font-size: 100%;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

#index-menu button:hover{
  background-color: var(--color-gris-medio);
    transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

#index-menu button.active {
  background-color: var(--fondo-amanecer);
  border-bottom: 2px solid var(--color-azul-claro);
  color: var(--color-azul-claro);
}


/* Título de cada sección */
.menu-title {
 font-weight: bold;
  display: block;
  width: 90%;
  padding: 15px;
  margin: 5px 0;
  text-align: left;
  font-size: 120%;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.menu-title.active {
  background-color: var(--fondo-amanecer);
  border-bottom: 4px solid var(--color-azul-claro);
  color: var(--color-azul-claro);
}



/* Submenús ocultos por defecto */
.submenu {
    border-color: #333;
  max-height: 0; 
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
  opacity: 0;
  padding-left: 15px;
}

/* Mantenimiento del submenú abierto cuando el usuario está sobre el título o los botones */
.menu-section:hover .submenu,
.submenu:hover {
  max-height: auto; /* Ajusta según el contenido */
  opacity: 1;
}


.tab-button {
  display: flex;
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */
  gap: 10px; /* Espacio entre imagen y texto */
  padding: 10px;
  font-size: 110%;
  background-color: transparent;
  border: none;
  cursor: pointer;
}



/* ==== TEXTO GENERAL ==== */

p {
  text-align: justify;
  font-size: 150%;
  line-height: 1.2;
  margin-bottom: 20px;
}

p.figura {
  font-size: 100%;
  font-style: italic;
  font-weight: bold;
}

.shadow-relief {
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.4));
}






  .form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px;
}

.form-row label {
  margin-right: 5px;
  font-weight: 500;
  color: var(--color-azul-principal);
  white-space: nowrap; /* evita que el texto del label se rompa */
}

.form-row input[type="number"],
.form-row input[type="date"],
.form-row select {
  padding: 6px 10px;
  font-size: 90%;
  border-radius: 4px;
  border: 1px solid var(--color-gris-medio);
  background-color: var(--color-blanco);
  color: var(--color-negro-suave);
  transition: border-color 0.3s ease;
  white-space: nowrap; /* evita que el texto se divida en varias líneas */
  overflow: visible;   /* asegúrate que no se oculte nada */
  text-overflow: clip; /* evita el recorte con '...' */
}

/* Estilos individuales si se requiere */
.form-row input[type="number"],
.form-row select {
  width: 120px;
}
.form-row select {
  width: 120px;
  max-width: 15%;
}


.form-row input[type="date"] {
  width: auto;
}

/* Estilo para focus en todos */
.form-row input:focus,
.form-row select:focus {
  border-color: var(--color-azul-claro);
  outline: none;
}


/* ==== FOOTER ==== */

.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--color-azul-claro);
  color: var(--color-blanco);
  border-top: 1px solid #fffafa;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 60%;
}

.footer-p {
  margin: 5px 0;
  font-size: 1em;
  line-height: 1.3;
  text-align: justify;
}

.footer-left a {
  color: var(--color-amarillo);
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  white-space: nowrap;
  font-size: 0.9em;
}

.footer-right span {
  margin-right: 8px;
  font-weight: bold;
}

.social-link svg {
  background-color: white;
  border-radius: 10%;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  fill: #0A66C2;
  transition: transform 0.2s ease;
}


.social-link:hover svg {
  transform: scale(1.2);
}


  .descargarBtn {
    padding: 10px 18px;
    background-color: var(--color-verde);
    color: var(--color-blanco);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
  }

  .descargarBtn:hover {
    background-color: var(--color-verde-oscuro);
  }



  .log {
    max-height: 100px;
    font-weight: bold;
    overflow-y: auto;
    white-space: pre-wrap;
    border: 1px solid var(--color-gris-medio);
    padding: 8px;
    background-color: var(--color-blanco);
  }

  .buttonGeneral {
    background-color: var(--color-naranja);
      color: var(--color-blanco);
      border: none;
      padding: 10px 20px;
      font-size: 16px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;

    }
    .buttonGeneral:hover {
      background-color: var(--color-amarillo-suave);
    }


      .buttonGeneralMapa {
      background-color: var(--color-naranja);
      color: var(--color-blanco);
      border: none;
      padding: 5px 5px;
      font-size: 12px;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      margin: 1%;

    }
    .buttonGeneralMapa:hover {
      background-color: var(--color-amarillo-suave);
    }




    /* Estilos del toast centrado */
  .toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--fondo-noche);
    color:var(--color-amarillo) ;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;

    display: flex;
    flex-direction: column; /* Cambiado para columna */
    gap: 10px;
    max-width: 400px;
  }

/* Fila superior: texto + botón alineados horizontalmente */
.toast-top-row {
  font-size: 160%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bolder;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Texto debajo en fila separada */
  .toast-bottom-row {
    font-size: 110%;
    text-align: justify;
    opacity: 0.8;
    color: var(--color-blanco);
  }

.toast button {
  background: var(--boton-noche, #444);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

.toast button:hover {
  color: var(--color-rosa-suave);
}

  #windyFrame{
 display: block;  visibility: visible; width: 40%; height: 115px; max-width: 700px; border: none; border-radius: 8px;
}