:root {
  --bg: #f4f6f7;
  --bg-elevated: #ffffff;
  --tan: #2f6fed;
  --tan-dim: #a9c4f7;
  --text: #14181d;
  --text-dim: #667080;
  --line: rgba(20, 24, 29, 0.1);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* grain overlay, fixed, no repaint cost on scroll */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.horizonte {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.horizonte svg { width: 100%; height: 100%; display: block; }

.horizonte path {
  fill: none;
  stroke: var(--tan-dim);
  stroke-width: 1.6;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: dibujar 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes dibujar {
  to { stroke-dashoffset: 0; }
}

header {
  position: relative;
  z-index: 1;
  padding: 28px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marca {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.marca strong {
  color: var(--text);
  font-weight: 500;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(20px, 6vw, 56px) 64px;
}

.contenido {
  max-width: 620px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(18px);
  animation: entrar 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}

@keyframes entrar {
  to { opacity: 1; transform: translateY(0); }
}

.logo-marco {
  width: 108px;
  height: 108px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 4px;
  background: var(--bg-elevated);
}

.logo-marco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 em {
  font-style: italic;
  color: var(--tan);
}

p.subtexto {
  margin: 0;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--bg-elevated);
}

.estado .punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tan);
  animation: latido 2.2s ease-in-out infinite;
}

@keyframes latido {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

footer {
  position: relative;
  z-index: 1;
  padding: 22px clamp(20px, 5vw, 56px) 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .contenido { animation: none; opacity: 1; transform: none; }
  .horizonte path { animation: none; stroke-dashoffset: 0; }
  .estado .punto { animation: none; }
}
