/* =========================================================
   Secuencia — Landing "en construcción"
   Identidad: RadioGrotesk (sans) + NymphaTrial Italic (serif)
   Paleta: carbón #1A1A1D · rojo frambuesa #F23C52 · blanco
   ========================================================= */

/* ---------- Fuentes de marca ---------- */
@font-face {
  font-family: "Radio Grotesk";
  src: url("../assets/fonts/RadioGrotesk-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nympha";
  src: url("../assets/fonts/NymphaTrial-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink:        #1A1A1D;   /* carbón / fondo */
  --ink-soft:   #242427;
  --paper:      #F6F4F1;   /* blanco cálido */
  --paper-dim:  #A7A5AB;   /* texto secundario */
  --red:        #F23C52;   /* acento */
  --red-soft:   #ff6274;

  --sans: "Radio Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Nympha", "Times New Roman", Georgia, serif;

  --maxw: 960px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Una sola pantalla: sin scroll en ninguna dirección */
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   Fondo animado
   ========================================================= */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob--1 {
  width: 46vmax; height: 46vmax;
  top: -14vmax; left: -10vmax;
  background: radial-gradient(circle at 30% 30%, var(--red), transparent 70%);
  animation: drift1 22s var(--ease) infinite alternate;
}
.blob--2 {
  width: 40vmax; height: 40vmax;
  bottom: -16vmax; right: -12vmax;
  background: radial-gradient(circle at 60% 40%, #7a1f2c, transparent 70%);
  opacity: 0.45;
  animation: drift2 28s var(--ease) infinite alternate;
}
@keyframes drift1 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate3d(0,0,0) scale(1.1); }
  to   { transform: translate3d(-7vmax, -5vmax, 0) scale(1); }
}

/* constelación neuronal (canvas) */
.constellation {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
/* grano */
.noise {
  position: absolute; inset: 0; opacity: 0.03; mix-blend-mode: overlay;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Layout
   ========================================================= */
.page {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: clamp(1.1rem, 3.2vh, 2.4rem) clamp(1.25rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-mark__text {
  font-family: var(--sans);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.brand-mark__text em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}
.status-pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(242,60,82,0.6);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242,60,82,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(242,60,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,60,82,0); }
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  min-height: 0;                 /* permite encoger dentro del flex sin desbordar */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.6rem, 1.6vh, 1.4rem);
  padding: clamp(1rem, 3vh, 2.5rem) 0;
}
.eyebrow {
  margin: 0;
  font-size: clamp(0.68rem, 1.6vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* Wordmark: Secuenc + ia (réplica del logo) */
.wordmark {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  /* Escala con el ancho pero limitada por el alto para que nunca desborde */
  font-size: clamp(3rem, min(13.5vw, 17vh), 9rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.wordmark__base { display: inline-block; }

/* Revelado letra por letra: "secuencia" en secuencia */
.wm-l {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(6deg);
  filter: blur(6px);
  animation: letterIn 0.75s var(--ease) forwards;
  animation-delay: calc(0.28s + var(--n) * 0.065s);
}
@keyframes letterIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* "ia" — entrada, shimmer del degradado y glow pulsante */
.wordmark__ia {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  background: linear-gradient(110deg, var(--red) 22%, #ff9aa6 45%, var(--red) 68%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    iaIn 0.8s var(--ease) 0.72s both,
    iaShimmer 4.5s linear 1.6s infinite,
    iaGlow 3.4s ease-in-out 1.6s infinite;
}
@keyframes iaIn {
  from { opacity: 0; transform: translateY(0.35em) scale(0.88); }
  to   { opacity: 1; transform: none; }
}
@keyframes iaShimmer {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}
@keyframes iaGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(242,60,82,0.20)); }
  50%      { filter: drop-shadow(0 0 28px rgba(242,60,82,0.55)); }
}

/* Secuenciador (motivo de barras animadas) */
.sequencer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: clamp(26px, 5vh, 40px);
  margin: 0;
}
.sequencer span {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(var(--red), #7a1f2c);
  transform-origin: bottom;
  opacity: 0.85;
  animation: seq 1.4s var(--ease) infinite;
}
.sequencer span:nth-child(1)  { animation-delay: 0.00s; }
.sequencer span:nth-child(2)  { animation-delay: 0.08s; }
.sequencer span:nth-child(3)  { animation-delay: 0.16s; }
.sequencer span:nth-child(4)  { animation-delay: 0.24s; }
.sequencer span:nth-child(5)  { animation-delay: 0.32s; }
.sequencer span:nth-child(6)  { animation-delay: 0.40s; }
.sequencer span:nth-child(7)  { animation-delay: 0.48s; }
.sequencer span:nth-child(8)  { animation-delay: 0.56s; }
.sequencer span:nth-child(9)  { animation-delay: 0.64s; }
.sequencer span:nth-child(10) { animation-delay: 0.72s; }
.sequencer span:nth-child(11) { animation-delay: 0.80s; }
.sequencer span:nth-child(12) { animation-delay: 0.88s; }
.sequencer span:nth-child(13) { animation-delay: 0.96s; }
.sequencer span:nth-child(14) { animation-delay: 1.04s; }
.sequencer span:nth-child(15) { animation-delay: 1.12s; }
@keyframes seq {
  0%, 100% { transform: scaleY(0.18); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

.tagline {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.25rem, min(4.6vw, 3.4vh), 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.tagline em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red);
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--paper-dim);
}
.lede .hl { color: var(--paper); font-style: italic; font-family: var(--serif); }

/* ---------- CTA (mailto) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #fff;
  background: var(--red);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.cta:hover {
  transform: translateY(-2px);
  background: var(--red-soft);
  box-shadow: 0 10px 30px -8px rgba(242,60,82,0.6);
}
.cta:active { transform: translateY(0); }
.cta svg { transition: transform 0.25s var(--ease); }
.cta:hover svg { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding-top: clamp(0.9rem, 2vh, 1.5rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--paper-dim);
}
.social { display: flex; gap: 1.4rem; }
.social a {
  position: relative;
  color: var(--paper-dim);
  transition: color 0.2s var(--ease);
}
.social a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.social a:hover { color: var(--paper); }
.social a:hover::after { transform: scaleX(1); }
.copy { margin: 0; }

/* =========================================================
   Animación de entrada (reveal)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.9s var(--ease) forwards;
  animation-delay: calc(0.12s * var(--i, 0) + 0.15s);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 560px) {
  .cta { width: 100%; justify-content: center; }
  .site-footer { justify-content: center; text-align: center; }
  .social { justify-content: center; width: 100%; }
}

/* Pantallas bajas / horizontal: compacta al máximo y esconde lo prescindible */
@media (max-height: 560px) and (orientation: landscape) {
  .eyebrow { display: none; }
  .sequencer { display: none; }
  .lede { display: none; }
  .hero { gap: clamp(0.5rem, 1.4vh, 1rem); padding: 0.5rem 0; }
}

/* =========================================================
   Accesibilidad: reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .wm-l,
  .wordmark__ia {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
  .blob, .sequencer span, .status-pill__dot { animation: none !important; }
  .blob { opacity: 0.35; }
  .sequencer span { transform: scaleY(0.6); }
  * { scroll-behavior: auto !important; }
}
