body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  color: #005bac;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* Fondo bandera flameando */
.fondo-bandera {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: -1;
  animation: flamear-bandera 6s infinite ease-in-out;
  pointer-events: none; /* no interfiere con clicks */
}

.fondo-bandera .franja {
  flex: 1;
}

.fondo-bandera .franja.celeste {
  background-color: #74acdf;
}

.fondo-bandera .franja.blanca {
  background-color: white;
  position: relative;
}

/* Sol más realista con rayos */
.fondo-bandera .sol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at center, #f6b100 45%, #e0a200 90%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 15px rgba(246, 177, 0, 0.6),
    inset 0 0 20px #fff7a1;
  z-index: 1;
}

/* Rayos principales largos (8) */
.fondo-bandera .sol::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #f6b100 0deg 6deg,
      transparent 6deg 12deg
    );
  box-shadow: 0 0 20px rgba(246,177,0,0.5);
  z-index: -1;
  filter: drop-shadow(0 0 4px #f6b100);
}

/* Rayos secundarios cortos (16) */
.fondo-bandera .sol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 6deg,
      #f6b100 0deg 3deg,
      transparent 3deg 6deg
    );
  opacity: 0.7;
  z-index: -1;
  filter: drop-shadow(0 0 3px #e0a200);
}

/* Animación flameo de la bandera */
@keyframes flamear-bandera {
  0% { transform: scaleX(1) scaleY(1) rotate(0deg); }
  25% { transform: scaleX(1.03) scaleY(1.05) rotate(0.3deg); }
  50% { transform: scaleX(1) scaleY(1) rotate(0deg); }
  75% { transform: scaleX(1.03) scaleY(1.05) rotate(-0.3deg); }
  100% { transform: scaleX(1) scaleY(1) rotate(0deg); }
}

/* Contenedor principal de contenido encima */
.container {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 91, 172, 0.2);
  position: relative;
  z-index: 10;
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  color: #005bac;
}

.slogan {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 10px;
  color: #f6b100;
}

.texto {
  font-size: 1.1em;
  margin-top: 20px;
  color: #333;
}

/* Bandera fija animada (si usás) */
.bandera-container {
  padding: 10px;
  position: relative;
  z-index: 10;
}

.bandera {
  max-height: 100px;
  animation: flamear 2s infinite ease-in-out;
}

@keyframes flamear {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* Bandera móvil con el mouse */
#movingFlag {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 1000;
  transition: transform 0.1s ease-out;
}
