/* ===== FIESTAS PATRIAS Index.PHP ===== */
.fiestas-patrias-banner {
  position: relative;
  background: linear-gradient(90deg, #d32f2f, #fff, #d32f2f);
  color: #000;
  font-weight: bold;
  padding: 12px 10px;
  font-size: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

#fireworks-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bandera-peru-viento {
  width: 90px;
  height: 60px;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  animation: viento-variable 6s infinite ease-in-out;
  transform-origin: left center;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.bandera-con-escudo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.animated-text {
  animation: fadeSlideIn 2s ease forwards;
  opacity: 0;
  z-index: 1;
}

@keyframes viento-variable {
  0%   { transform: perspective(800px) rotateY(0deg) skewY(0deg); }
  10%  { transform: perspective(800px) rotateY(5deg) skewY(1deg); }
  20%  { transform: perspective(800px) rotateY(-3deg) skewY(-2deg); }
  30%  { transform: perspective(800px) rotateY(6deg) skewY(1.5deg); }
  40%  { transform: perspective(800px) rotateY(-4deg) skewY(-1deg); }
  50%  { transform: perspective(800px) rotateY(3deg) skewY(0.5deg); }
  60%  { transform: perspective(800px) rotateY(-5deg) skewY(-2deg); }
  70%  { transform: perspective(800px) rotateY(4deg) skewY(1.2deg); }
  80%  { transform: perspective(800px) rotateY(-2deg) skewY(-1deg); }
  90%  { transform: perspective(800px) rotateY(3deg) skewY(0.5deg); }
  100% { transform: perspective(800px) rotateY(0deg) skewY(0deg); }
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 576px) {
  .fiestas-patrias-banner { font-size: 14px; flex-direction: column; gap: 6px; padding: 10px 6px; }
  .bandera-peru-viento { width: 60px; height: 40px; }
}

/* ===== LEVEL UP Index.PHP ===== */
#level-up-aviso {
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: center;
  width: 100%;
  height: 48px;
  max-height: 48px;
  background: linear-gradient(90deg, #b8860b, #ffd700, #daa520, #ffd700, #b8860b);
  background-size: 400% 400%;
  animation: brilloOro 5s ease infinite;
  color: #fff !important;
  font-weight: bold;
  padding: 0;
  font-size: 16px;
  text-align: center;
  font-family: "Impact", "Arial Black", sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  border-top: 1px solid #ffd700;
  border-bottom: 1px solid #ffd700;
  box-shadow: 0 0 15px rgba(255,215,0,0.7);
  cursor: pointer;
  text-decoration: none;
}

#level-up-aviso:hover {
  opacity: 0.9;
}

#level-up-aviso > div {
  display: flex;
  align-items: center; /* Centrado vertical del contenido */
  justify-content: center;
  gap: 10px;
}

.rayos-text {
  display: inline-flex;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #fff !important;
  user-select: none;
  white-space: nowrap;
}

.bordered-text {
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

#countdown {
  font-weight: bold;
  font-size: 16px;
  user-select: none;
  white-space: nowrap;
}

@keyframes brilloOro {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 480px) {
  #level-up-aviso {
    font-size: 14px;
    height: auto;
    max-height: none;
    letter-spacing: 2px;
    padding: 10px 10px;
    box-sizing: border-box;
  }

  #level-up-aviso > div {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .rayos-text,
  #countdown {
    font-size: 14px;
    line-height: 1.2;
  }
}

/* ================= PREPARENSE (BARRA ROJA) ================= */

#level-up-aviso.preparing {
  background: linear-gradient(90deg, #8b0000, #ff0000, #b22222, #ff0000, #8b0000);
  background-size: 400% 400%;
  animation: brilloRojo 5s ease infinite;
  border-top: 1px solid #ff4d4d;
  border-bottom: 1px solid #ff4d4d;
  box-shadow: 0 0 15px rgba(255,0,0,0.7);
}

@keyframes brilloRojo {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}