:root {
  --color-principal: #FFD700;
  --color-secundario: #FFA500;
  --color-texto: #333333;
  --color-fondo: #f8f9fa;
  --color-acento: #007bff;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(to right, #007bff, #00aaff);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-family: 'Arial Black', sans-serif;
  font-size: 3rem;
  color: var(--color-principal);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
}



/* Botones */

.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 1rem;
}

.action-button {
  flex: 1 1 220px;
  max-width: 260px;
  min-height: 160px;
  border-radius: 18px;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 2rem 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.action-button i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Hover dinámico */
.action-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}



/* Colores institucionales para cada botón */
.button-tiempo {
  background: linear-gradient(135deg,  #de453a, hsl(0, 92%, 53%));
}

.button-estadisticas {
  background: linear-gradient(135deg, #f3703b, #d4551d); 
}

.button-mapa {
  background: linear-gradient(135deg, #00b5e2, #008db2); 
}

.button-pronostico {
  background: linear-gradient(135deg, #bfd730, #9bbf24);
}





/* ===== SECCIÓN UV MEJORADA - VERSIÓN CORREGIDA ===== */
.uv-section {
  font-family: 'Poppins', sans-serif;
  padding: 2rem 0;
}

.uv-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #007bff, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.uv-card {
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: all 0.4s ease;
  border: 4px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.uv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: currentColor;
  opacity: 0.3;
}

.uv-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Colores ajustados para mejor legibilidad */
.uv-bajo {
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  border-color: #66bb6a;
  color: #1b5e20;
}

.uv-moderado {
  background: linear-gradient(135deg, #fff9c4, #fff59d);
  border-color: #ffd54f;
  color: #ff6f00;
}

.uv-alto {
  background: linear-gradient(135deg, #ffcc80, #ffb74d);
  border-color: #ff9800;
  color: #e65100;
}

.uv-muyalto {
  background: linear-gradient(135deg, #ff8a80, #ff5252);
  border-color: #ff1744;
  color: #ffffff;
}

.uv-extremo {
  background: linear-gradient(135deg, #b39ddb, #9575cd);
  border-color: #7e57c2;
  color: #ffffff;
}

/* Indicador de nivel numérico MEJORADO */
.uv-level-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.8);
}

/* Colores específicos para los indicadores numéricos */
.uv-bajo .uv-level-indicator {
  background: #4caf50;
  color: white;
}

.uv-moderado .uv-level-indicator {
  background: #ff9800;
  color: white;
}

.uv-alto .uv-level-indicator {
  background: #ff5722;
  color: white;
}

.uv-muyalto .uv-level-indicator {
  background: #d32f2f;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.uv-extremo .uv-level-indicator {
  background: #7b1fa2;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

/* Texto mejorado para máxima legibilidad */
.uv-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.uv-bajo h4, .uv-moderado h4, .uv-alto h4 {
  color: #2c3e50;
}

.uv-muyalto h4, .uv-extremo h4 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.uv-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  font-weight: 500;
}

.uv-bajo p, .uv-moderado p, .uv-alto p {
  color: #34495e;
}

.uv-muyalto p, .uv-extremo p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Iconos mejorados */
.uv-card .icons {
  margin-top: 1rem;
}

.uv-card .icons i {
  margin: 0 5px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
  transition: all 0.3s ease;
}

.uv-bajo .icons i, .uv-moderado .icons i, .uv-alto .icons i {
  color: #2c3e50;
}

.uv-muyalto .icons i, .uv-extremo .icons i {
  color: #ffffff;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

.uv-card:hover .icons i {
  transform: scale(1.2) rotate(5deg);
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .uv-card {
    min-height: 180px;
    margin-bottom: 1rem;
  }
  
  .uv-card h4 {
    font-size: 1.3rem;
  }
  
  .uv-level-indicator {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .uv-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .uv-card {
    min-height: 170px;
    padding: 1.5rem !important;
  }
  
  .uv-card h4 {
    font-size: 1.2rem;
  }
  
  .uv-card p {
    font-size: 0.9rem;
  }
  
  .action-button {
    min-height: 140px;
    padding: 1.5rem 1rem;
  }
  
  .action-button i {
    font-size: 2.5rem;
  }
  
  .row.g-4.justify-content-center .col-6 {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}






/* Colores por nivel */
.uv-bajo {
  background-color: #b6e388; /* Verde claro */
}

.uv-moderado {
  background-color: #f9f871; /* Amarillo */
}

.uv-alto {
  background-color: #ffb84d; /* Naranja */
}

.uv-muyalto {
  background-color: #ff6961; /* Rojo */
  color: white;
}

.uv-extremo {
  background-color: #a890fe; /* Morado */
  color: white;
}



/* ===== Info Cards ===== */
.info-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.info-card h5 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}



/* ===== SECCIÓN SOLMÁFORO MEJORADA ===== */
.solmaforo-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
  margin: 3rem 0;
}

.gradient-title {
  background: linear-gradient(135deg, #007bff, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
}


/* IMAGEN CON ALTURA AUMENTADA */
.solmaforo-image-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: 400px; /* Altura aumentada */
}

.solmaforo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
}


/* MAPA OPENSTREETMAP */
.location-map {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container {
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-footer {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.system-description {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  height: 100%;
}

.feature-item {
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.feature-item:hover {
  background-color: #f8f9fa;
}

.feature-icon {
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}

/* Escala de colores */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scale-color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  border: 3px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scale-info {
  line-height: 1.2;
}

.scale-info strong {
  display: block;
  font-size: 0.9rem;
}

.scale-info small {
  color: #6c757d;
  font-size: 0.8rem;
}

/* Colores de la escala */
.uv-bajo-scale { background: #b6e388; }
.uv-moderado-scale { background: #f9f871; }
.uv-alto-scale { background: #ffb84d; }
.uv-muyalto-scale { background: #ff6961; }
.uv-extremo-scale { background: #a890fe; }




/* IMAGEN DEL SOLMÁFORO - ALTURA PARA ESCRITORIO */
.solmaforo-image-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: 500px; /* ← ALTURA PARA COMPUTADORAS */
}

.solmaforo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Responsive */
@media (max-width: 768px) {
  .solmaforo-section {
    padding: 2rem 0;
    margin: 2rem 0;
  }
  
  .gradient-title {
    font-size: 2rem;
  }
  
  .system-description {
    padding: 1.5rem;
  }
  
  .scale-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Altura reducida en móviles */
  .solmaforo-image-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .feature-item {
    padding: 0.75rem;
  }
  
  .scale-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .scale-color {
    width: 35px;
    height: 35px;
  }
  
  .solmaforo-image-container {
    height: 350px;
  }
}




/* ===== ACORDEONES INFORMATIVOS ===== */
.info-accordion {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.accordion-item {
  background: white;
  border: none;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  border-left: 5px solid #007bff;
}

.accordion-header {
  margin: 0;
}

.accordion-button {
  background: linear-gradient(135deg, #007bff, #00aaff);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1.5rem 2rem;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #0056b3, #0088cc);
  color: white;
  box-shadow: none;
}

.accordion-button:hover {
  background: linear-gradient(135deg, #0056b3, #0077b3);
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 2rem;
  background: #f8f9fa;
  font-size: 1rem;
  line-height: 1.6;
}

.accordion-body h5 {
  color: #007bff;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.accordion-body h5:first-child {
  margin-top: 0;
}

.accordion-body h6 {
  color: #495057;
  font-weight: 600;
  margin-top: 1rem;
}

.accordion-body ul {
  padding-left: 1.5rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
}

.accordion-body .table {
  margin-top: 1rem;
}

.accordion-body .alert {
  margin: 1rem 0;
}

.protection-item {
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.uv-type-card {
  transition: transform 0.3s ease;
}

.uv-type-card:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .accordion-button {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .accordion-body {
    padding: 1.5rem;
  }
  
  .info-accordion {
    margin: 2rem auto;
    padding: 0 0.5rem;
  }
}

@media (max-width: 576px) {
  .accordion-button {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }
  
  .accordion-body {
    padding: 1rem;
  }
  
  .protection-item {
    margin-bottom: 1rem;
  }
}






/* ===== CONSEJOS PRÁCTICOS ===== */
.practical-tips {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem 0;
}

.shadow-rule-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 3px solid #e9ecef;
  transition: transform 0.3s ease;
}

.shadow-rule-card:hover {
  transform: translateY(-5px);
}

.icon-container {
  background: linear-gradient(135deg, #FFA500, #FF8C00); /* Naranja como el sol */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.icon-container i {
  color: white;
}

.shadow-item {
  transition: all 0.3s ease;
}

.shadow-item:hover {
  transform: scale(1.02);
}

.quick-tips {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tip-item {
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.tip-item:hover {
  background-color: #f8f9fa;
}

.tip-icon {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .practical-tips {
    padding: 2rem 0;
  }
  
  .shadow-rule-card {
    margin-bottom: 2rem;
  }
}



/* ===== HEADER INDEX ===== */
.hero-simple {
  background: linear-gradient(135deg, #0094b5 0%, #003572 100%);
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Navbar Simple */
.navbar-simple {
  background: rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-simple .navbar-brand {
  font-size: 1.5rem;
  color: #ffffff !important;
}

.navbar-simple .navbar-brand:hover {
  color: #ecc000 !important;
}

.navbar-simple .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-simple .nav-link:hover {
  color: #ffd700 !important;
}

/* Hero Content Simple */
.hero-simple-content {
  padding: 8rem 0 4rem;
  position: relative;
  z-index: 2;
}

.hero-simple-title {
  color: #ffc61c;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-simple-subtitle {
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-simple {
    min-height: 50vh;
  }
  
  .hero-simple-content {
    padding: 6rem 0 2rem;
  }
  
  .hero-simple-title {
    font-size: 2.5rem;
  }
  
  .hero-simple-subtitle {
    font-size: 1.1rem;
  }
}



/* ===== HEADER GENERAL ===== */
.header-general {
   background: linear-gradient(135deg, #0094b5 0%, #003572  100%);
  box-shadow: 0 2px 15px rgba(15, 0, 0, 0.121);
}

.navbar-general {
  padding: 1rem 0;
}

.navbar-general .navbar-brand {
  font-size: 1.5rem;
  color: #fff !important;
  font-weight: bold;
}

.navbar-general .navbar-brand:hover {
  color: #ffd700 !important;
}

.navbar-general .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

.navbar-general .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-general .nav-link i {
  width: 20px;
  text-align: center;
}

/* Responsive para header general */
@media (max-width: 768px) {
  .navbar-general .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.125rem 0;
  }
  
  .navbar-general .navbar-collapse {
    background: rgba(110, 14, 14, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
  }
}

/* ==========================================================
   Footer Personalizado
   ========================================================== */


:root {
  --footer-bg-color: linear-gradient(135deg, #0096b7 0%, #002754 100%); 
  --footer-text-color: #ffffff;
  --footer-accent-color: #ffffff;
  --footer-border-color: rgba(255, 255, 255, 0.1);
  --footer-copyright-color: #ffffff;
  --facebook-color: #1877f2;
}

.footer {
  background: var(--footer-bg-color);
  color: var(--footer-text-color);
  border-top: 1px solid var(--footer-border-color);
  font-family: var(--default-font, Arial, sans-serif);
  padding: 20px 0;
}


.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

/* --- Logos y Facebook centrado --- */
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-logo {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* --- Ícono de Facebook centrado entre logos --- */
.footer-facebook i {
  font-size: 35px;
  color: var(--footer-accent-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-facebook:hover i {
  color: var(--facebook-color);
  transform: scale(1.1);
}

/* --- Información --- */
.footer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.contact-item i {
  color: var(--footer-accent-color);
  font-size: 17px;
}

/* --- Texto inferior --- */
.footer-text {
  font-size: 14px;
  line-height: 1.5;
}

/* --- Flecha scroll --- */
.footer-scroll {
  display: flex;
  align-items: center;
}

.scroll-top {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--footer-accent-color);
  color: var(--footer-bg-color);
  border-radius: 50%;
  text-decoration: none;
  
}

.scroll-top:hover {
  background-color: #ffffff;
  transform: translateY(-5px);
}

.scroll-top i {
  font-size: 28px;
  color: #002754; /* un azul oscuro fijo para que se vea sobre el fondo blanco */
}


/* --- Responsivo --- */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* Mantener logos y Facebook en una sola fila */
  .footer-logos {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-logo {
    width: 70px;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-scroll {
    margin-top: 10px;
  }
}


/* Botón "Me gusta" en header (estilo limpio, no rellenado hasta que se haga click) */
.btn-like-header {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.12);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute; /* Lo posicionamos en el header */
  bottom: 10px; /* Separación desde la parte inferior del header */
  left: 20px; /* Alineación a la izquierda */
  z-index: 10; /* Asegura que el botón esté por encima de otros elementos */
}

/* Alineación del icono dentro del botón */
.btn-like-header i {
  font-size: 1rem;
}

/* Hover */
.btn-like-header:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Estado "liked" (llenado/dorado) */
.btn-like-header.liked {
  background: #ffd700;    /* dorado */
  color: #002754;         /* texto oscuro */
  border-color: #ffd700;
}

/* Contadores (footer area) */
.site-stats {
  text-align: center;
  color: #258ca5;
  background: rgba(0, 0, 0, 0.121);
  padding: 14px 10px;
  margin-top: 24px;
  border-radius: 8px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}

.site-stats i {
  color: #07147a;
  margin-right: 6px;
}



/* BOTÓN FLOTANTE DE ENCUESTA */
.burbuja-encuesta {
    position: fixed;
    bottom: 60px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.2s;
}

.burbuja-encuesta:hover {
    transform: scale(1.1);
}

/* MODAL ENCUESTA */
.modal-encuesta {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.cerrar-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.btn-enviar {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    width: 100%;
    margin-top: 15px;
}

.grupo-opciones {
    margin-bottom: 12px;
}


.burbuja-encuesta {
    animation: pulso 1.6s infinite ease-in-out;
}

@keyframes pulso {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}


/* Texto debajo del botón flotante */
.texto-encuesta {
    position: absolute;
    bottom: -35px;
    right: 50%;
    transform: translateX(50%);
    font-size: 12px;
    text-align: center;
    color: #007bff;
    font-weight: bold;
    width: 100px;
    line-height: 12px;
    pointer-events: none;
}


/*-------------------realtime------------------------------------------------------------------*/

/* Termómetro */
.thermometer {
  position: relative;
  width: 60px;
  height: 250px;
  background: #eee;
  border-radius: 30px;
  margin: auto;
  overflow: hidden;
}
.thermo-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, #ff5733, #ffb199);
  transition: height 1s ease-in-out;
}
.thermo-value {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
}

/* Barra UV tipo escala */
.uv-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  text-align: center;
}
.uv-box {
  flex: 1;
  margin: 2px;
  padding: 8px 0;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  opacity: 0.3;
  transition: opacity 0.5s;
}
.uv-box.active {
  opacity: 1;
}

/* Colores según escala UV */
.uv-1, .uv-2 { background: #00c851; } /* Verde */
.uv-3, .uv-4, .uv-5 { background: #ffeb3b; color: #000; } /* Amarillo */
.uv-6, .uv-7 { background: #ff9800; } /* Naranja */
.uv-8, .uv-9, .uv-10 { background: #ff4444; } /* Rojo */
.uv-11 { background: #8e24aa; } /* Morado */

.uv-labels {
  margin-top: 10px;
  font-size: 0.9rem;
}
.status-box {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}


#uvColumn h4 {
  margin-bottom: 5px; /* Reduce el espacio bajo el título */
}

#uvChart {
  margin-top: 0;
  margin-bottom: 5px; /* más pegado a la barra */
  display: block;
  margin-left: auto;
  margin-right: auto; /* centrado */
}




/* ESTADISTICAS */

body {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h2 {
  font-weight: 700;
  color: #333;
}

.card {
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.kpi-card {
  color: white;
  border: none;
  border-radius: 12px;
  transition: transform 0.2s ease-in-out;
}
.kpi-card:hover {
  transform: scale(1.05);
}

/* Colores pastel */
.kpi-temp {
  background: linear-gradient(135deg, #fb7e7e, #fa9f9c); /* naranja pastel */
  color: #9a1a00;
}
.kpi-uv {
  background: linear-gradient(135deg, #b39ddb, #d1c4e9); /* violeta pastel */
  color: #311b92;
}

.kpi-card h6 {
  font-size: 14px;
  opacity: 0.9;
}

.kpi-card h4, 
.kpi-card h5 {
  font-weight: bold;
}


.chart-container {
  position: relative;
  min-height: 350px; /* antes 400px */
  height: 50vh;      /* antes 60vh */
  width: 100%;
}

@media (max-width: 768px) {
  .chart-container {
    min-height: 300px; /* antes 350px */
    height: 60vh;      /* antes 70vh */
  }
}


/* Botón Consultar: estilo responsivo */
.btn-consultar {
  width: auto;
  padding: 8px 20px;
  font-size: 16px;
}

/* En pantallas pequeñas, mantener tamaño moderado */
@media (max-width: 768px) {
  .btn-consultar {
    width: 70%; /* ocupa un 70% del ancho del contenedor */
    display: block;
    margin: 0 auto; /* centrado */
  }
}









/* ===== BOTÓN IR A REPORTE DIARIO ===== */
.btn-report {
  background: linear-gradient(135deg, #6fb1fc, #4364f7);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.1);
}
.btn-report:hover {
  background: linear-gradient(135deg, #5aa8f8, #3b55e6);
  transform: scale(1.05);
  color: white;
}


/* ====== ESTILO DEL BOTÓN EXCEL ====== */
.btn-excel {
  background-color: #b6e6b6; /* verde pastel */
  color: #155724;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);

  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 130px;
  max-width: 200px;
  width: auto;
}

.btn-excel:hover {
  background-color: #9fdfa0;
  transform: scale(1.05);
}

/* ====== RESPONSIVO BOTONES SUELTOS ====== */
.btn-excel-resp {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 25px;
}

/* Botón Excel responsivo en pantallas pequeñas */
@media (max-width: 576px) {
  .btn-excel {
    width: 80%;
    max-width: 250px;
  }
}


/* ====== BOTONERA (tus otros botones) ====== */
.botonera {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.botonera button {
  min-width: 130px;
  max-width: 200px;
  flex: 1 1 auto;
}

/* Botonera en celular */
@media (max-width: 576px) {
  .botonera {
    flex-direction: column;
    gap: 8px;
  }

  .botonera button {
    width: 80%;
    max-width: 250px;
  }
}




/* ====== TABLA CON SCROLL INTERNO ====== */
.tabla-scroll {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}
.tabla-scroll table {
  margin-bottom: 0;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
  .btn-excel {
    width: 100%;
    margin-top: 10px;
  }
}




/* ====== MODAL KPIs ====== */
.modal-content {
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-body {
  background-color: #f9f9f9;
  border-radius: 0 0 16px 16px;
}

.kpi-card {
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.kpi-card:hover {
  transform: scale(1.03);
}








/*pronostico*/

.pronostico-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.forecast-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin-top: 15px;
}

.nav-tabs .nav-link {
    font-weight: bold;
    color: #495057;
}

.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: #fff !important;
}

h2 {
    font-weight: bold;
    color: #333;
}



/* Mejora visual de las pestañas */
.nav-tabs .nav-link {
  color: #004080;               /* color de texto normal */
  font-weight: 600;
  background-color: #f4f9ff;    /* fondo suave */
  border: 1px solid #d0e3ff;
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  background-color: #e0efff;    /* efecto hover */
  color: #003366;
}

.nav-tabs .nav-link.active {
  background-color: #007bff;    /* pestaña activa */
  color: white !important;
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Centrar y hacer iguales las pestañas */
.nav-tabs {
  display: flex;
  justify-content: center; /* centra todo el grupo */
 
}

.nav-tabs .nav-item {
  flex: 1; /* todas ocupan el mismo espacio */
  max-width: 150px; /* controla el ancho máximo (ajústalo si quieres más) */
}

.nav-tabs .nav-link {
  width: 100%;
  text-align: center;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}
