/* Para datos frios */
.datosFrio {
    z-index: 4;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 140, 255, 0.3), rgba(255, 255, 255, 0.1)); 
    padding: 20px;
    border-radius: 12px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 140, 255, 0.5); 
    border: 2px solid rgba(255, 255, 255, 0.6); 
    color: #00bfff;
    
}

.datosFrio::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.6); 
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    /* Picos de hielo */
    box-shadow: 
    4px 5px 10px rgba(255, 255, 255, 0.5), 
    -6px -6px 10px rgba(255, 255, 255, 0.4),
    6px -8px 10px rgba(255, 255, 255, 0.5), 
    -8px 7px 8px rgba(255, 255, 255, 0.3);
}

.datosFrio::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
     /* background: url('../../public/multimedia/img/fondoFrio.webp'); */
    background-size: cover;
    opacity: 0.3; 
    z-index: 0;
}

/*  Para datos calidos*/
.datosCalido {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.3), rgba(255, 200, 100, 0.2));
    border-radius: 12px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(255, 120, 0, 0.5);
    color: #ff6600;
    animation: calorBrillo 4s ease-in-out infinite;
}

/* Marco exterior */
.datosCalido::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    box-shadow: 
        4px 5px 10px rgba(255, 255, 255, 0.5), 
        -6px -6px 10px rgba(255, 255, 255, 0.4),
        6px -8px 10px rgba(255, 255, 255, 0.5), 
        -8px 7px 8px rgba(255, 255, 255, 0.3);
}

/* Capa de distorsión térmica */
.datosCalido::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: radial-gradient(circle at top left, rgba(255, 160, 0, 0.3), transparent 70%),
                radial-gradient(circle at bottom right, rgba(255, 80, 0, 0.3), transparent 70%);
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
    animation: ondaCalor 3s ease-in-out infinite;
    mix-blend-mode: screen;
    border-radius: 10px;
}

/*  Efecto de aire caliente vibrando */
@keyframes ondaCalor {
    0% {
        transform: scale(1) skewX(0deg) skewY(0deg);
        filter: blur(0px);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.02) skewX(1deg) skewY(1deg);
        filter: blur(1px);
        opacity: 0.35;
    }
    100% {
        transform: scale(1) skewX(0deg) skewY(0deg);
        filter: blur(0px);
        opacity: 0.3;
    }
}

/*  Calor pulsante del contenedor */
@keyframes calorBrillo {
    0% {
        box-shadow: 0 0 10px rgba(255, 120, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 100, 0, 0.7);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 120, 0, 0.4);
    }
}



/* Datos normales */
.datosNorm {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.25), rgba(255, 255, 255, 0.2));
    border-radius: 12px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.4);
    color: #2ecc71;
    animation: glowSuave 6s ease-in-out infinite;
}

/* Borde exterior suave */
.datosNorm::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    box-shadow:
        4px 5px 10px rgba(255, 255, 255, 0.5),
        -6px -6px 10px rgba(255, 255, 255, 0.4),
        6px -8px 10px rgba(255, 255, 255, 0.5),
        -8px 7px 8px rgba(255, 255, 255, 0.3);
}

/* Luz en movimiento radial */
.datosNorm::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
    animation: luzSolar 10s linear infinite;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

/* Contenedor de partículas flotantes */
.datosNorm .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Partículas individuales */
.datosNorm .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(0, 255, 128, 0.15);
    border-radius: 50%;
    animation: flotar 12s ease-in-out infinite;
    opacity: 0.5;
}

/* Variaciones en posición y tiempo */
.datosNorm .particle:nth-child(1) {
    top: 80%; left: 10%; animation-delay: 0s;
}
.datosNorm .particle:nth-child(2) {
    top: 60%; left: 30%; animation-delay: 2s;
}
.datosNorm .particle:nth-child(3) {
    top: 70%; left: 60%; animation-delay: 4s;
}
.datosNorm .particle:nth-child(4) {
    top: 90%; left: 80%; animation-delay: 6s;
}
.datosNorm .particle:nth-child(5) {
    top: 75%; left: 50%; animation-delay: 8s;
}

/*  Glow suave */
@keyframes glowSuave {
    0%   { box-shadow: 0 0 10px rgba(0, 255, 128, 0.3); }
    50%  { box-shadow: 0 0 25px rgba(0, 255, 128, 0.6); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 128, 0.3); }
}

/*  Luz solar girando */
@keyframes luzSolar {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/*  Partículas flotando suavemente */
@keyframes flotar {
    0%   { transform: translateY(0) translateX(0); opacity: 0.4; }
    50%  { transform: translateY(-60px) translateX(10px); opacity: 0.6; }
    100% { transform: translateY(0) translateX(0); opacity: 0.4; }
}



/* Animacion frio */
.datosFrio::before,
.datosFrio::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(white 2px, transparent 2px),
    radial-gradient(white 2px, transparent 2px),
    radial-gradient(white 2px, transparent 2px);
  background-size: 10px 10px, 15px 15px, 20px 20px;
  background-position: 0 0, 50px 50px, 100px 100px;
  animation: caerNieve 10s linear infinite;
  opacity: 0.8;
  pointer-events: none;
  z-index:-1;
}

.datosFrio::after {
  animation-duration: 14s; /* Capa extra para más naturalidad */
  opacity: 0.5;
}

/*  Animación de los copos cayendo */
@keyframes caerNieve {
  0% {
    background-position: 0 0, 50px 50px, 100px 100px;
  }
  100% {
    background-position: 0 600px, 50px 650px, 100px 700px;
  }
}

/* Para cuando la humedad es alta */
.humedadA {
    position: relative;
    padding: 20px;
    z-index: 3;
    background: linear-gradient(135deg, #0a516acc, #004358cc);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 100, 130, 0.7);
    color: #d0f0ff;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* Ondas sutiles en el fondo */
.humedadA::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 20%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ondasHumedad 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Gotas de agua */
.humedadA .gota {
    position: absolute;
    bottom: 100%;
    width: 8px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-iteration-count: infinite;
    opacity: 0.8;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.8));
    z-index: 1;
}

/* Varias gotas con diferentes posiciones y tiempos */
.humedadA .gota:nth-child(1) {
    left: 15%;
    animation-name: caerGota;
    animation-duration: 4s;
    animation-delay: 0s;
}

.humedadA .gota:nth-child(2) {
    left: 40%;
    width: 6px;
    height: 9px;
    animation-name: caerGota;
    animation-duration: 5.5s;
    animation-delay: 1.5s;
}

.humedadA .gota:nth-child(3) {
    left: 65%;
    width: 7px;
    height: 11px;
    animation-name: caerGota;
    animation-duration: 4.5s;
    animation-delay: 0.7s;
}

.humedadA .gota:nth-child(4) {
    left: 85%;
    width: 5px;
    height: 8px;
    animation-name: caerGota;
    animation-duration: 5s;
    animation-delay: 2.5s;
}

/* Animación de caída */
@keyframes caerGota {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0.8;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(150px) scaleY(1.3);
        opacity: 0;
    }
}

/* Animación de ondas sutiles */
@keyframes ondasHumedad {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
}


/* Para cuando la humedad es normal */
.humedadN {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #8fd3e9cc, #a4f0c1cc); /* mezcla azul-verde suave */
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px rgba(100, 200, 180, 0.4);
    color: #2e8b8b;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* Ondas suaves */
.humedadN::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 20%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ondasHumedadNormal 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Gotas pequeñas y menos notorias */
.humedadN .gota {
    position: absolute;
    bottom: 100%;
    width: 5px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    opacity: 0.5;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.5));
    z-index: 1;
}

/* Menos gotas, más espaciadas */
.humedadN .gota:nth-child(1) {
    left: 30%;
    animation-name: caerGotaNormal;
    animation-duration: 6s;
    animation-delay: 0s;
}
.humedadN .gota:nth-child(2) {
    left: 60%;
    width: 4px;
    height: 6px;
    animation-name: caerGotaNormal;
    animation-duration: 7s;
    animation-delay: 1.5s;
}
.humedadN .gota:nth-child(3) {
    left: 80%;
    width: 5px;
    height: 7px;
    animation-name: caerGotaNormal;
    animation-duration: 6.5s;
    animation-delay: 3s;
}

/* Caída suave */
@keyframes caerGotaNormal {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(150px);
        opacity: 0;
    }
}

/* Ondas suaves de humedad equilibrada */
@keyframes ondasHumedadNormal {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.25;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
}

/* Para cuando la humedad sea baja */
.humedadB {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #f9e79f, #f7dc6f);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px rgba(255, 220, 120, 0.3);
    color: #a67c00;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 0;
}

/* Grietas simuladas */
.humedadB::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(120, 90, 0, 0.3) 4.5px, transparent 5px),
        repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(120, 90, 0, 0.3) 4.5px, transparent 5px);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* Aire seco con líneas verticales */
.humedadB::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 2px,
        transparent 2px,
        transparent 4px
    );
    animation: aireSeco 8s linear infinite;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

/* Partículas flotando */
.humedadB .particula {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6); /* más visible */
    border-radius: 50%;
    animation: flotarSeco 10s ease-in-out infinite;
    opacity: 0.6;
    z-index: 2;
}


.humedadB .particula:nth-child(1) { top: 60%; left: 20%; animation-delay: 0s; }
.humedadB .particula:nth-child(2) { top: 70%; left: 50%; animation-delay: 2s; }
.humedadB .particula:nth-child(3) { top: 80%; left: 75%; animation-delay: 4s; }
.humedadB .particula:nth-child(4) { top: 65%; left: 35%; animation-delay: 6s; }
.humedadB .particula:nth-child(5) { top: 75%; left: 60%; animation-delay: 1s; }

/* Animaciones */
@keyframes aireSeco {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes flotarSeco {
    0%   { transform: translateY(0) translateX(0); opacity: 0.5; }
    50%  { transform: translateY(-20px) translateX(5px); opacity: 0.75; }
    100% { transform: translateY(0) translateX(0); opacity: 0.5; }
}

/* Para cuando la lluvia es poca (chispeando) */
.lluviaB {
  position: relative;
 
  background: linear-gradient(to bottom, #dbe3e7, #cfd8dc);
  border-radius: 12px;
  padding: 20px;
  color: #333;
  overflow: hidden;
  display: inline-block;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

/* Contenido en primer plano */
.lluviaB .contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 30px;
}

/* Gotas cayendo desde lo alto */
.lluviaB .gota {
  position: absolute;
  top: 0;
  width: 4px;
  height: 10px;
  background: rgba(0, 0, 255, 0.4);
  border-radius: 50%;
  animation: lluviaCaer 2s linear infinite;
  opacity: 0.6;
  z-index: 0;
}

/* Varias gotas con diferentes posiciones y retardos */
.lluviaB .gota:nth-child(2) {
  left: 30px;
  animation-delay: 0s;
}

.lluviaB .gota:nth-child(3) {
  left: 80px;
  animation-delay: 0.5s;
}

.lluviaB .gota:nth-child(4) {
  left: 130px;
  animation-delay: 1s;
}

.lluviaB .gota:nth-child(5) {
  left: 180px;
  animation-delay: 1.5s;
}

/* Animación de caída */
@keyframes lluviaCaer {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  100% {
    transform: translateY(320px);
    opacity: 0;
  }
}

/* Para cuando las lluvias sean normales */
.lluviaN {
  position: relative;
  width: 250px;
  height: 150px;
  background: linear-gradient(to bottom, #cbdbe6, #b0c9d9);
  border-radius: 12px;
  padding: 20px;
  color: #222;
  overflow: hidden;
  display: inline-block;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

/* Contenido visible encima del fondo */
.lluviaN .contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 30px;
}

/* Gotas */
.lluviaN .gota {
  position: absolute;
  top: 0;
  width: 4px;
  height: 12px;
  background: rgba(0, 0, 255, 0.5);
  border-radius: 50%;
  animation: lluviaNormalCaer 1.5s linear infinite;
  opacity: 0.7;
  z-index: 0;
}

/* Varias gotas con diferentes posiciones y retardos */
.lluviaN .gota:nth-child(2) { left: 20px; animation-delay: 0s; }
.lluviaN .gota:nth-child(3) { left: 50px; animation-delay: 1.8s; }
.lluviaN .gota:nth-child(4) { left: 80px; animation-delay: 1.5s; }
.lluviaN .gota:nth-child(5) { left: 110px; animation-delay: 0.9s; }
.lluviaN .gota:nth-child(6) { left: 140px; animation-delay: 1.2s; }
.lluviaN .gota:nth-child(7) { left: 170px; animation-delay: 0.6s; }
.lluviaN .gota:nth-child(8) { left: 200px; animation-delay: 0.3s; }

/* Animación de gotas cayendo */
@keyframes lluviaNormalCaer {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  100% {
    transform: translateY(320px);
    opacity: 0;
  }
}

/* Para cuando la lluvia es fuerte */
.lluviaF {
  position: relative;
  width: 250px;
  height: 150px;
  background: linear-gradient(to bottom, #b0c4de, #a2b8cf);
  border-radius: 12px;
  padding: 20px;
  color: #111;
  overflow: hidden;
  display: inline-block;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

/* Contenido en primer plano */
.lluviaF .contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 30px;
}

/* Gotas de lluvia intensa */
.lluviaF .gota {
  position: absolute;
  top: 0;
  width: 3px;
  height: 20px;
  background: rgba(0, 0, 255, 0.7);
  border-radius: 50%;
  animation: lluviaIntensaCaer 1s linear infinite;
  opacity: 0.9;
  z-index: 0;
}

/* Muchas gotas distribuidas */
.lluviaF .gota:nth-child(2)  { left: 10px;  animation-delay: 0s; }
.lluviaF .gota:nth-child(3)  { left: 25px;  animation-delay: 0.2s; }
.lluviaF .gota:nth-child(4)  { left: 40px;  animation-delay: 0.4s; }
.lluviaF .gota:nth-child(5)  { left: 55px;  animation-delay: 0.1s; }
.lluviaF .gota:nth-child(6)  { left: 70px;  animation-delay: 0.3s; }
.lluviaF .gota:nth-child(7)  { left: 85px;  animation-delay: 0.6s; }
.lluviaF .gota:nth-child(8)  { left: 100px; animation-delay: 0.2s; }
.lluviaF .gota:nth-child(9)  { left: 115px; animation-delay: 0.5s; }
.lluviaF .gota:nth-child(10) { left: 130px; animation-delay: 0.3s; }
.lluviaF .gota:nth-child(11) { left: 145px; animation-delay: 0.4s; }
.lluviaF .gota:nth-child(12) { left: 160px; animation-delay: 0.1s; }
.lluviaF .gota:nth-child(13) { left: 175px; animation-delay: 0.2s; }
.lluviaF .gota:nth-child(14) { left: 190px; animation-delay: 0.3s; }
.lluviaF .gota:nth-child(15) { left: 205px; animation-delay: 0.6s; }
.lluviaF .gota:nth-child(16) { left: 220px; animation-delay: 0.4s; }

/* Animación rápida y continua */
@keyframes lluviaIntensaCaer {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  100% {
    transform: translateY(330px);
    opacity: 0;
  }
}

/* Para lluvias muy intensas :o */
.lluviaMF {
  position: relative;
  width: 250px;
  height: 150px;
  background: linear-gradient(to bottom, #a0b9d6, #90a9c0);
  border-radius: 12px;
  padding: 20px;
  color: #111;
  overflow: hidden;
  display: inline-block;
  font-weight: bold;
  font-family: Arial, sans-serif;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);

  /* Animación de relámpagos */
  animation: relampagosIrregulares 10s infinite;
}
@keyframes relampagosIrregulares {
  0%, 2%, 10%, 20%, 35%, 55%, 75%, 100% {
    background: linear-gradient(to bottom, #a0b9d6, #90a9c0);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
  }

  /* Destellos muy cortos en momentos inesperados */
  1% {
    background: linear-gradient(to bottom, #ffffff, #d0e4f4);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.9);
  }

  9% {
    background: linear-gradient(to bottom, #eaf6ff, #cde4f0);
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.7);
  }

  19% {
    background: linear-gradient(to bottom, #f0faff, #d6ecff);
    box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.85);
  }

  34% {
    background: linear-gradient(to bottom, #e0f4ff, #d4ecff);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
  }

  54% {
    background: linear-gradient(to bottom, #ffffff, #cbe5ff);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 1);
  }

  74% {
    background: linear-gradient(to bottom, #f3fbff, #d0e4f4);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.8);
  }
}


.lluviaMF .contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 30px;
}

.lluviaMF .gota {
  position: absolute;
  top: 0;
  width: 2px;
  height: 25px;
  background: rgba(0, 0, 255, 0.75);
  border-radius: 1px;
  animation: lluviaTorrencialCaer 0.8s linear infinite;
  opacity: 0.9;
  z-index: 0;
}

/* Gotas distribuidas horizontalmente con delays */
.lluviaMF .gota:nth-child(2)  { left: 18px;  animation-delay: 0.3s; }
.lluviaMF .gota:nth-child(3)  { left: 95px;  animation-delay: 0.1s; }
.lluviaMF .gota:nth-child(4)  { left: 52px;  animation-delay: 0.6s; }
.lluviaMF .gota:nth-child(5)  { left: 190px; animation-delay: 0.2s; }
.lluviaMF .gota:nth-child(6)  { left: 130px; animation-delay: 0.7s; }
.lluviaMF .gota:nth-child(7)  { left: 75px;  animation-delay: 0.15s; }
.lluviaMF .gota:nth-child(8)  { left: 25px;  animation-delay: 0.5s; }
.lluviaMF .gota:nth-child(9)  { left: 160px; animation-delay: 0.05s; }
.lluviaMF .gota:nth-child(10) { left: 200px; animation-delay: 0.25s; }
.lluviaMF .gota:nth-child(11) { left: 40px;  animation-delay: 0.4s; }
.lluviaMF .gota:nth-child(12) { left: 115px; animation-delay: 0.1s; }
.lluviaMF .gota:nth-child(13) { left: 60px;  animation-delay: 0.35s; }
.lluviaMF .gota:nth-child(14) { left: 5px;   animation-delay: 0.6s; }
.lluviaMF .gota:nth-child(15) { left: 140px; animation-delay: 0.2s; }
.lluviaMF .gota:nth-child(16) { left: 170px; animation-delay: 0.55s; }
.lluviaMF .gota:nth-child(17) { left: 210px; animation-delay: 0.1s; }
.lluviaMF .gota:nth-child(18) { left: 100px; animation-delay: 0.3s; }
.lluviaMF .gota:nth-child(19) { left: 35px;  animation-delay: 0.05s; }
.lluviaMF .gota:nth-child(20) { left: 85px;  animation-delay: 0.45s; }
.lluviaMF .gota:nth-child(21) { left: 150px; animation-delay: 0.15s; }
.lluviaMF .gota:nth-child(22) { left: 10px;  animation-delay: 0.5s; }
.lluviaMF .gota:nth-child(23) { left: 120px; animation-delay: 0.65s; }
.lluviaMF .gota:nth-child(24) { left: 185px; animation-delay: 0.05s; }


@keyframes lluviaTorrencialCaer {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  100% {
    transform: translateY(350px);
    opacity: 0;
  }
}
/* Para cuando no halla viento 0km/h */
.velVientoNulo {
    position: relative;
    padding: 20px;
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 1;
    text-align: center;
}
/* Para cuando el viento sea nulo */
.velVientoCasiNulo {
    position: relative;
    padding: 20px;
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 1;
    text-align: center;
}
/* Hojas verdes del viento */
.velVientoCasiNulo .hoja {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 3px;
    animation-name: caerBrisa;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    z-index: -1;
}

/* Animación caída vertical y desplazamiento más hacia la derecha */
@keyframes caerBrisa {
    0%   { top: -20px; transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { top: 70px; transform: translateX(70px) rotate(20deg); opacity: 0.8; }
}

/* Hojas más separadas y posiciones iniciales variadas */
.velVientoCasiNulo .hoja.h1 { left: -20%; animation-duration: 10s; animation-delay: 0s; }
.velVientoCasiNulo .hoja.h2 { left: 0%; animation-duration: 11s; animation-delay: 1s; }
.velVientoCasiNulo .hoja.h3 { left: 20%; animation-duration: 10.5s; animation-delay: 2s; }
.velVientoCasiNulo .hoja.h4 { left: 40%; animation-duration: 11.5s; animation-delay: 1.5s; }




/* Para cuando el viento sea normal */
    .velVientoN {
    position: relative;
    padding: 20px;
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 1;
    text-align: center;
}

/* Hojas verdes del viento */
.velVientoN .hoja {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 3px;
    animation-name: caerBrisa;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    z-index: -1;
}

/* Animación caída vertical y desplazamiento más hacia la derecha */
@keyframes caerBrisa {
    0%   { top: -40px; transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { top: 180px; transform: translateX(180px) rotate(20deg); opacity: 0.8; }
}

/* Hojas más separadas y posiciones iniciales variadas */
.velVientoN .hoja.h1 { left: -20%; animation-duration: 6s; animation-delay: 0s; }
.velVientoN .hoja.h2 { left: 0%; animation-duration: 7s; animation-delay: 1s; }
.velVientoN .hoja.h3 { left: 20%; animation-duration: 6.5s; animation-delay: 2s; }
.velVientoN .hoja.h4 { left: 40%; animation-duration: 7.5s; animation-delay: 1.5s; }

/* Etiqueta dentro del div */
.velVientoN .label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    pointer-events: none;
    color: #034f8c;
}


/* Para cuando el viento sea fuerte 31-60 km/h*/
.velVientoF {
    position: relative;
    padding: 20px;
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 1;
    text-align: center;
}

/* Hojas verdes del viento fuerte */
.velVientoF .hoja {
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 3px;
    animation-name: caerVientoFuerte;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    z-index: -1;
}

/* Animación caída rápida y desplazamiento lateral fuerte */
@keyframes caerVientoFuerte {
    0%   { top: -50px; transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { top: 250px; transform: translateX(250px) rotate(50deg); opacity: 0.8; }
}

/* Posiciones horizontales muy separadas y velocidades distintas */
.velVientoF .hoja.h1 { left: -20%; animation-duration: 4s; animation-delay: 0s; }
.velVientoF .hoja.h2 { left: 0%; animation-duration: 4.5s; animation-delay: 0.5s; }
.velVientoF .hoja.h3 { left: 20%; animation-duration: 4.2s; animation-delay: 1s; }
.velVientoF .hoja.h4 { left: 40%; animation-duration: 4.8s; animation-delay: 0.3s; }
.velVientoF .hoja.h5 { left: 60%; animation-duration: 4.3s; animation-delay: 0.7s; }


/* Etiqueta */
.velVientoF .label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    pointer-events: none;
    color: #034f8c;
}
 /* Para cuando el viento sea muy fuerte 61-90 km/h */
 .velVientoMF {
    position: relative;
    padding: 20px;
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 1;
    text-align: center;
}

/* Hojas verdes grandes para viento muy fuerte */
.velVientoMF .hoja {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4CAF50, #1B5E20);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 3px;
    animation-name: caerVientoMF;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    z-index: -1;
}

/* Animación caída rápida y desplazamiento lateral muy fuerte */
@keyframes caerVientoMF {
    0%   { top: -50px; transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { top: 350px; transform: translateX(350px) rotate(70deg); opacity: 0.8; }
}

/* Posiciones horizontales muy separadas y duraciones variadas */
.velVientoMF .hoja.h1 { left: -20%; animation-duration: 3.5s; animation-delay: 0s; }
.velVientoMF .hoja.h2 { left: 0%; animation-duration: 3.7s; animation-delay: 0.4s; }
.velVientoMF .hoja.h3 { left: 20%; animation-duration: 3.6s; animation-delay: 0.8s; }
.velVientoMF .hoja.h4 { left: 40%; animation-duration: 3.8s; animation-delay: 0.2s; }
.velVientoMF .hoja.h5 { left: 60%; animation-duration: 3.9s; animation-delay: 1s; }


/* Etiqueta */
.velVientoMF .label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    pointer-events: none;
    color: #034f8c;
}

/* Para cuando el viento sea extremo 91-120 km/h */
.velVientoEx {
    position: relative;
    padding: 20px;
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 1;
    text-align: center;
}

/* Hojas verdes grandes para viento extremo */
.velVientoEx .hoja {
    position: absolute;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #4CAF50, #1B5E20);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 3px;
    animation-name: caerVientoEx;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
    z-index: -1;
}

/* Animación caída rápida y desplazamiento lateral extremo */
@keyframes caerVientoEx {
    0%   { top: -60px; transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { top: 450px; transform: translateX(450px) rotate(90deg); opacity: 0.8; }
}

/* Posiciones iniciales separadas y duraciones variadas */
.velVientoEx .hoja.h1 { left: -20%; animation-duration: 3s; animation-delay: 0s; }
.velVientoEx .hoja.h2 { left: 0%; animation-duration: 3.2s; animation-delay: 0.4s; }
.velVientoEx .hoja.h3 { left: 20%; animation-duration: 3.1s; animation-delay: 0.6s; }
.velVientoEx .hoja.h4 { left: 40%; animation-duration: 3.3s; animation-delay: 0.2s; }
.velVientoEx .hoja.h5 { left: 60%; animation-duration: 3.4s; animation-delay: 0.8s; }

/* Etiqueta */
.velVientoEx .label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    pointer-events: none;
    color: #034f8c;
}


/* Para vientos huracanados */
.velVientoH {
    position: relative;
    padding: 20px;
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 1;
    text-align: center;
}

/* Hojas verdes grandes para viento huracanado */
.velVientoH .hoja {
    position: absolute;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #4CAF50, #1B5E20);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 3px;
    animation-name: moverHuracan;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    z-index: -1;
}

/* Animación: casi horizontal */
@keyframes moverHuracan {
    0%   { top: 0px; transform: translateX(0) rotate(0deg); opacity: 1; }
    25%  { top: 28px; transform: translateX(60px) rotate(30deg); }
    50%  { top: 42px; transform: translateX(120px) rotate(60deg); }
    75%  { top: 69px; transform: translateX(180px) rotate(80deg); }
    100% { top: 85px; transform: translateX(250px) rotate(100deg); opacity: 0.8; }
}

/* Hojas con posiciones iniciales y velocidades variadas */
.velVientoH .hoja.h1 { left: -20%; animation-duration: 0.5s; animation-delay: 0s; }
.velVientoH .hoja.h2 { left: 0%; animation-duration: 0.7s; animation-delay: 0.3s; }
.velVientoH .hoja.h3 { left: 20%; animation-duration: 0.6s; animation-delay: 0.6s; }
.velVientoH .hoja.h4 { left: 40%; animation-duration: 0.8s; animation-delay: 0.1s; }
.velVientoH .hoja.h5 { left: 60%; animation-duration: 0.9s; animation-delay: 0.4s; }

/* Etiqueta */
.velVientoH .label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    pointer-events: none;
    color: #034f8c;
}

/* Para la direccion del viento */
.brujulaContainer {
    position: relative;
    width: 250px;
    height: 150px;
    padding: 20px;
    background: linear-gradient(135deg, #cce7ff, #a0d8ff);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 12px rgba(160, 220, 255, 0.3);
    color: #0366a6;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    overflow: hidden;
    text-align: center;
}

.brujula {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    border: 3px solid #333;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 90%, #ddd 100%);
}

/* Aguja más fina */
.aguja {
    position: absolute;
    width: 3px; /* más fina */
    height: 50px;
    background: red;
    top: 50%;
    left: 50%;
    transform-origin: bottom center; 
    transform: translate(-50%, -100%) rotate(0deg); 
    border-radius: 2px;
    transition: transform 0.5s ease-out;
}

/* Marcas cardinales */
.brujula::before,
.brujula::after,
.brujula .marcaN,
.brujula .marcaE,
.brujula .marcaS,
.brujula .marcaW {
    position: absolute;
    font-weight: bold;
    color: #333;
    font-size: 12px;
}

/* Cardinales dentro del div de brújula */
.brujula .marcaN { top: 5px; left: 50%; transform: translateX(-50%); content: "N"; }
.brujula .marcaS { bottom: 5px; left: 50%; transform: translateX(-50%); content: "S"; }
.brujula .marcaE { top: 50%; right: 5px; transform: translateY(-50%); content: "E"; }
.brujula .marcaW { top: 50%; left: 5px; transform: translateY(-50%); content: "W"; }

.brujulaContainer .label {
    width: 200px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #034f8c;
}


/* Para las presiones */
.presionContainer {
    position: relative;
    width: 250px;
    height: 150px;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.1);
    color: #111;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-align: center;
    overflow: hidden;
}

/* Baja presión */
.presionBaja {
    background: linear-gradient(135deg, #f9b0b0, #f76c6c);
    box-shadow: inset 0 0 12px rgba(200,0,0,0.2);
}

/* Presión media */
.presionMedia {
    background: linear-gradient(135deg, #f9e79f, #f7dc6f);
    box-shadow: inset 0 0 12px rgba(255, 220, 120, 0.3);
}

/* Alta presión */
.presionAlta {
    background: linear-gradient(135deg, #b0f9b5, #6cf76c);
    box-shadow: inset 0 0 12px rgba(0, 200, 0, 0.2);
}


/* Etiqueta dentro del div */
.presionContainer .label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    pointer-events: none;
}

/* Para cuando el agua sea poca */


.aguaB {
    position: relative;
    width: 250px;
    height: 150px;
    /* background: linear-gradient(135deg, #0a516acc, #004358cc); */
    background-color: rgb(207, 207, 207);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 100, 130, 0.7);
    overflow: hidden;
    display: inline-block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    position: relative;
    color: black;
}


.agua {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;  /* Agua medio llena, ajusta esta propiedad si deseas más o menos agua */
    background: rgb(27, 133, 255);
    background-size: 100% 100px;  /* Ajustamos la textura para que se vea más realista */
    animation: movimientoAgua 6s ease-in-out infinite;
    opacity: 0.4;  /* Hace que el agua sea semi-translúcida */
}
.agua1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;  /* Agua medio llena, ajusta esta propiedad si deseas más o menos agua */
    background: rgb(27, 133, 255);
    background-size: 100% 100px;  /* Ajustamos la textura para que se vea más realista */
    animation: movimientoAgua 6s ease-in-out infinite;
    opacity: 0.4;  /* Hace que el agua sea semi-translúcida */
}
.agua2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;  /* Agua medio llena, ajusta esta propiedad si deseas más o menos agua */
    background: rgb(27, 133, 255);
    background-size: 100% 100px;  /* Ajustamos la textura para que se vea más realista */
    animation: movimientoAgua 6s ease-in-out infinite;
    opacity: 0.4;  /* Hace que el agua sea semi-translúcida */
}
.agua3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 99%;  /* Agua medio llena, ajusta esta propiedad si deseas más o menos agua */
    background: rgb(27, 133, 255);
    background-size: 100% 100px;  /* Ajustamos la textura para que se vea más realista */
    animation: movimientoAgua 6s ease-in-out infinite;
    opacity: 0.4;  /* Hace que el agua sea semi-translúcida */
}
@keyframes movimientoAgua {
    0% {
        transform: translateY(0) scaleX(1);
    }
    50% {
        transform: translateY(5px) scaleX(1.02);
    }
    100% {
        transform: translateY(0) scaleX(1);
    }
}