/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Evitar scroll: usamos 100dvh (mejor en móviles), y contenemos tamaños con clamp() */
html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  background: linear-gradient(135deg, #00d4ff 0%, #7dd957 50%, #ffeb3b 100%);

  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;

  /* padding pequeño para no forzar scroll */
  padding: 12px;

  position: relative;
  overflow: hidden; /* clave para que no haya scroll */
}

/* Fondo animado */
body::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
  background-size: 40px 40px;
  animation: moveBackground 20s linear infinite;
  pointer-events: none;
}

@keyframes moveBackground {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Contenedor: limita altura para que siempre entre */
.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;

  /* padding adaptable para pantallas pequeñas */
  padding: clamp(18px, 3.5vw, 44px) clamp(16px, 3vw, 40px);

  max-width: 600px;
  width: min(600px, 100%);

  /* evita scroll incluso si el viewport es pequeño */
  max-height: calc(100dvh - 24px);
  overflow: hidden;

  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Espaciados compactos */
.logo { margin-bottom: clamp(4px, 1vw, 10px); }
.icon { margin-bottom: clamp(10px, 2.2vw, 22px); }

/* Imágenes responsivas para que no se salgan */
.logo img {
  width: clamp(78px, 10vw, 110px);
  height: auto;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.icon img {
  width: clamp(110px, 22vw, 170px);
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-14px); }
}

/* Tipografía con clamp para no provocar scroll */
h1 {
  color: #333;
  font-size: clamp(18px, 3.2vw, 28px);
  line-height: 1.25;
  margin-bottom: clamp(10px, 2vw, 16px);
}

p {
  color: #666;
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.5;
  margin-bottom: clamp(12px, 2.2vw, 20px);
}

/* Pastilla de fecha: también adaptable */
.date {
  display: inline-block;
  background: linear-gradient(135deg, #00d4ff 0%, #7dd957 100%);
  color: white;

  padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 26px);
  border-radius: 999px;

  font-size: clamp(14px, 2.6vw, 20px);
  font-weight: 700;

  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
  animation: glow 2s ease-in-out infinite;

  /* por si el texto es largo en pantallas angostas */
  max-width: 100%;
  white-space: normal;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4); }
  50%      { box-shadow: 0 5px 25px rgba(0, 212, 255, 0.6); }
}

/* Ajuste extra para pantallas MUY pequeñas */
@media (max-height: 520px) {
  .icon img { width: clamp(90px, 18vw, 140px); }
  .container { border-radius: 16px; }
}
