:root{
  --brand-blue:#173A6A;    /* azul del logo */
  --brand-gold:#C9A31A;    /* dorado del logo */
  --text:#333;
  --bg:#f9f9f9;
}

html,
body{
  height:100%;
}

body{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container{
  text-align:center;
  padding:24px;
  max-width:720px;
}

/* Logo con animación de entrada */
.logo-animado{
  width:min(380px, 70vw);
  height:auto;
  margin:0 auto 16px;
  display:block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
  animation: entrada 1.5s ease-out forwards;
}

/* Logo sin animación (por si se usa después) */
.logo{
  width:min(380px, 50vw);
  height:auto;
  margin:0 auto 16px;
  display:block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
}

@keyframes entrada{
  from{
    opacity:0;
    transform:scale(0.8);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

h1{
  margin:8px 0 6px;
  font-size:clamp(1.6rem, 3.5vw, 2.2rem);
  color:var(--brand-gold);
}

p{
  margin:0 0 16px;
  font-size:clamp(1rem, 2.5vw, 1.125rem);
}

/* Tarjeta de estado */
.status{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e6e6e6;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

/* Animación de parpadeo del ícono */
.blink{
  animation: blink 1.2s ease-in-out infinite;
  transform-origin:center;
}

@keyframes blink{
  0%,100%{
    opacity:1;
    filter: drop-shadow(0 0 0 rgba(201,163,26,0));
  }
  50%{
    opacity:.45;
    filter: drop-shadow(0 0 8px rgba(201,163,26,.55));
  }
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .blink{
    animation:none;
  }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0f1115;
    --text:#e6e6e6;
  }
  .status{
    background:#12151b;
    border-color:#2a2f36;
  }
}

/* Intro pantalla completa */
#intro{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg);
  z-index:9999;
}

/* Ocultar contenido hasta terminar intro */
#content{
  opacity:0;
}