/* =============================================================
   1. Tokens (mismos que la landing principal de Wolf Automations)
   ============================================================= */
@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  --bg:        #07080b;
  --bg-2:      #0d0f15;
  --bg-3:      #14161f;
  --ink:       #f4f6f9;
  --ink-soft:  #c7cbd6;
  --ink-mute:  #838a99;
  --accent:    #5ee1ff;
  --accent-2:  #8b6bff;
  --accent-3:  #22d3a5;
  --danger:    #ef6a6a;
  --line:      rgba(244,246,249,0.10);
  --line-soft: rgba(244,246,249,0.06);

  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono:   "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1180px;
  --radius: 16px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--ink-soft);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip; overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--display); color: var(--ink); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

/* =============================================================
   3. Buttons
   ============================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #06070a; box-shadow: 0 8px 30px -8px rgba(94,225,255,0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px -12px rgba(94,225,255,0.55); }

/* =============================================================
   4. Header — solo marca, sin menú
   ============================================================= */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7,8,11,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: center; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 36px; height: 36px; flex: none; object-fit: contain; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); }

/* =============================================================
   5. VSL player (idéntico a la landing principal)
   ============================================================= */
.vsl {
  position: relative; max-width: 820px; margin: clamp(2rem, 5vw, 3rem) auto 0;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(94,225,255,0.06);
  aspect-ratio: 16 / 9; background: var(--bg-2);
}
.vsl-media { position: absolute; inset: 0; }
.vsl-poster { width: 100%; height: 100%; object-fit: cover; }
.vsl video { width: 100%; height: 100%; object-fit: cover; }
.vsl-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,11,0.05) 0%, rgba(7,8,11,0.55) 100%); }
.vsl-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: transparent; }
.vsl-play-btn {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(7,8,11,0.55); border: 1px solid rgba(244,246,249,0.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .45s var(--ease-soft), background .3s, box-shadow .45s;
}
.vsl-play-btn svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ink); }
.vsl:hover .vsl-play-btn, .vsl-play:focus-visible .vsl-play-btn {
  transform: scale(1.08); background: rgba(94,225,255,0.16); box-shadow: 0 0 0 10px rgba(94,225,255,0.08);
}
.vsl-caption {
  position: absolute; left: 1.3rem; bottom: 1.1rem; z-index: 2;
  font-family: var(--mono); font-size: .74rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: .5rem;
}
.vsl-caption .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); }
.vsl.is-playing .vsl-play, .vsl.is-playing .vsl-poster, .vsl.is-playing .vsl-scrim, .vsl.is-playing .vsl-caption { opacity: 0; pointer-events: none; }
.vsl.is-playing .vsl-play, .vsl.is-playing .vsl-poster { transition: opacity .5s; }

/* =============================================================
   6. Reveal on scroll
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   7. Página de gracias — hero de confirmación
   ============================================================= */
.hero {
  position: relative; padding-top: clamp(7.5rem, 14vw, 10rem); padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: clip; isolation: isolate;
}
.hero-gradient {
  position: absolute; inset: -20% -10%; z-index: -1;
  background:
    radial-gradient(circle 620px at var(--mx, 50%) var(--my, 40%), rgba(94,225,255,0.20) 0%, transparent 55%),
    radial-gradient(circle 720px at calc(var(--mx, 50%) + 18%) calc(var(--my, 40%) + 22%), rgba(139,107,255,0.18) 0%, transparent 55%),
    radial-gradient(circle 560px at calc(var(--mx, 50%) - 22%) calc(var(--my, 40%) - 10%), rgba(34,211,165,0.10) 0%, transparent 55%);
  filter: blur(50px) saturate(140%);
}
.hero-inner { text-align: center; max-width: 760px; margin-inline: auto; }

.ty-check {
  width: 84px; height: 84px; margin: 0 auto 1.6rem; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 35%, rgba(94,225,255,0.22), rgba(94,225,255,0.05));
  border: 1px solid var(--line);
}
.ty-check::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(94,225,255,0.35); animation: tyPulse 2.8s var(--ease-soft) infinite;
}
.ty-check svg { width: 40px; height: 40px; color: var(--accent); }
.ty-check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tyDraw .9s .35s var(--ease-out) forwards; }
@keyframes tyDraw { to { stroke-dashoffset: 0; } }
@keyframes tyPulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.4); opacity: 0; } 100% { opacity: 0; } }

.hero-title { font-size: clamp(2.2rem, 5.6vw, 3.6rem); max-width: 20ch; margin-inline: auto; margin-top: 1.2rem; }
.hero-title em {
  font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 1.3rem auto 0; max-width: 54ch; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink-mute); }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.vsl-note { margin-top: 1.1rem; text-align: center; font-size: .94rem; color: var(--ink-mute); max-width: 52ch; margin-inline: auto; }
.vsl-note strong { color: var(--ink); }

/* Tarjeta de aviso de llamada — el elemento nº1 de la página */
.call-alert {
  position: relative; max-width: 820px; margin: clamp(2.2rem, 6vw, 3rem) auto 0;
  padding: clamp(1.6rem, 5vw, 2.4rem); border-radius: 22px; text-align: left;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.85); overflow: hidden;
}
.call-alert::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.call-alert-glow { position: absolute; top: -30%; right: -10%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(94,225,255,.16), transparent 65%); filter: blur(50px); pointer-events: none; }
.call-alert-top { display: flex; align-items: center; gap: 1.1rem; position: relative; z-index: 2; }
.call-phone {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #06070a; position: relative;
  box-shadow: 0 12px 30px -10px rgba(94,225,255,.6);
}
.call-phone svg { width: 28px; height: 28px; animation: ring 2.2s var(--ease-soft) infinite; transform-origin: 50% 80%; }
@keyframes ring { 0%,60%,100% { transform: rotate(0); } 5% { transform: rotate(-14deg); } 10% { transform: rotate(12deg); } 15% { transform: rotate(-10deg); } 20% { transform: rotate(8deg); } 25% { transform: rotate(0); } }
.call-phone::after { content: ""; position: absolute; inset: -8px; border-radius: 22px; border: 1px solid rgba(94,225,255,.4); animation: tyPulse 2.4s var(--ease-soft) infinite; }
.call-alert-top .call-tag { display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.call-alert-top h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.1; }
.call-body { position: relative; z-index: 2; margin-top: 1.2rem; color: var(--ink-mute); font-size: clamp(.98rem, 1.5vw, 1.05rem); line-height: 1.65; }
.call-body strong { color: var(--ink); font-weight: 600; }
.call-body .accent-text { color: var(--accent); }

.call-meta {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 1.6rem;
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: var(--line-soft);
}
.call-meta-item { background: var(--bg-3); padding: 1rem 1.2rem; }
.call-meta-item .cm-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.call-meta-item .cm-value { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.call-meta-item .cm-value .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(34,211,165,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34,211,165,.55); } 70% { box-shadow: 0 0 0 9px rgba(34,211,165,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,165,0); } }

.keep-phone {
  position: relative; z-index: 2; display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.4rem;
  padding: .95rem 1.1rem; border-radius: 12px; background: rgba(94,225,255,.06); border: 1px dashed var(--line);
}
.keep-phone .kp-ico { color: var(--accent); flex: 0 0 auto; font-size: 1.1rem; line-height: 1.4; }
.keep-phone p { font-size: .92rem; color: var(--ink-mute); }
.keep-phone strong { color: var(--ink); }

/* Secciones genéricas */
.ty-section { padding-block: clamp(3rem, 8vw, 5.5rem); position: relative; }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: clamp(1.8rem, 5vw, 2.8rem); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-top: .8rem; }
.section-head p { margin-top: .9rem; color: var(--ink-mute); font-size: 1rem; max-width: 52ch; margin-inline: auto; }

/* Checklist qué hacer / qué evitar */
.ty-cols { display: grid; gap: 1.2rem; max-width: 960px; margin-inline: auto; }
@media (min-width: 780px) { .ty-cols { grid-template-columns: 1fr 1fr; } }
.ty-col { padding: clamp(1.5rem, 4vw, 2rem); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-soft); }
.ty-col h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.ty-col h3 .badge { font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; padding: .3rem .65rem; border-radius: 999px; }
.ty-col.do h3 .badge { background: rgba(34,211,165,.14); color: var(--accent-3); border: 1px solid rgba(34,211,165,.3); }
.ty-col.dont h3 .badge { background: rgba(239,106,106,.12); color: var(--danger); border: 1px solid rgba(239,106,106,.28); }
.ty-col ul { display: grid; gap: .85rem; }
.ty-col li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); font-size: .95rem; }
.ty-col li .mk { flex: 0 0 auto; margin-top: .1rem; font-weight: 700; }
.ty-col.do li .mk { color: var(--accent-3); }
.ty-col.dont li .mk { color: var(--danger); }

/* Timeline de la llamada */
.timeline { max-width: 700px; margin: 0 auto; display: grid; gap: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; padding-bottom: 1.9rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-rail { position: relative; display: grid; justify-items: center; }
.tl-node {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.05rem; color: #06070a;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); position: relative; z-index: 2;
  box-shadow: 0 8px 20px -8px rgba(94,225,255,.6);
}
.tl-item:not(:last-child) .tl-rail::after { content: ""; position: absolute; top: 40px; bottom: -1.9rem; width: 1px; background: linear-gradient(var(--accent), var(--line-soft)); }
.tl-body h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.tl-body p { color: var(--ink-mute); font-size: .94rem; }
.tl-body .tl-time { display: inline-block; margin-top: .45rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Banda de disponibilidad */
.urgency {
  max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(1.6rem, 5vw, 2.4rem);
  border-radius: 22px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.urgency-glow { position: absolute; inset: auto 50% -50% 50%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(94,225,255,.14), transparent 65%); filter: blur(60px); pointer-events: none; }
.urgency h2 { position: relative; z-index: 2; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.urgency p { position: relative; z-index: 2; max-width: 52ch; margin: .9rem auto 0; color: var(--ink-mute); }
.urgency .seats {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.4rem;
  padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(7,8,11,.5);
  font-size: .88rem; color: var(--ink);
}

/* Footer mínimo, sin enlaces */
.footer { border-top: 1px solid var(--line-soft); padding-block: 2.4rem; }
.footer-inner { display: flex; flex-direction: column; gap: .9rem; align-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer .brand-mark { width: 26px; height: 26px; }
.footer .brand-word { font-size: .92rem; }
.footer-legal { font-size: .76rem; color: var(--ink-mute); max-width: 46ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; }
  .ty-check::before, .call-phone svg, .call-phone::after, .live-dot { animation: none; }
}
