/* =============================================================
   HIPPO SCRAPPING — Página de gracias (post-envío de lead cualificado)
   Archetype: Dark Tech / Data Product (azul sobre marino) — tokens
   sampleados del logotipo real de Hippo Scrapping. Mecánica de
   interacción (splash, cursor, reveal, VSL, booking) reutilizada del
   resto de páginas de gracias del holding (Lynx Global Tax, etc.).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* Fondo: marino oscuro, sampleado del logo (nunca negro puro) */
  --bg:        #0a0f1a;
  --bg-2:      #10192b;
  --bg-3:      #17243c;   /* tarjetas */
  --bg-4:      #1f314f;   /* tarjetas hover */

  /* Azul — sampleado del funnel/wordmark del logo de Hippo Scrapping */
  --blue-1:    #d6ecff;
  --blue:      #3b8ff5;
  --blue-2:    #2563c9;
  --blue-deep: #123a73;
  --blue-grad: linear-gradient(135deg, #8fc4ff 0%, #3b8ff5 50%, #2563c9 100%);

  /* Plata — sampleada de la cabeza del hipopótamo ("dato en bruto") */
  --silver:    #b7c2cf;

  /* Texto */
  --text:      #eef2f7;
  --text-soft: #c3ccd8;
  --text-mute: #8492a3;

  /* Líneas */
  --line:      rgba(59, 143, 245, 0.18);
  --line-soft: rgba(238, 242, 247, 0.08);

  /* Sí / No */
  --yes: #6fbf8e;
  --no:  #c9756b;

  /* Tipografía — pareja sans moderna, producto técnico/de datos (no lujo) */
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "IBM Plex Mono", monospace;

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

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1240px;
  --radius: 18px;
}

/* =============================================================
   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;
  color: var(--text);
  background: var(--bg);
  -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.04; letter-spacing: -0.01em; font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #06101f; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Layout utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }

.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.section-lead {
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 60ch;
}

/* Kicker — mono */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.1rem;
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-grad);
  box-shadow: 0 0 12px rgba(59,143,245,.7);
}

/* Texto azul con brillo */
.accent-text {
  background: var(--blue-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background .35s var(--ease-out), color .35s var(--ease-out);
  will-change: transform;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue-grad);
  color: #06101f;
  box-shadow: 0 10px 30px -10px rgba(59,143,245,.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(59,143,245,.7); }
.btn-primary:disabled { opacity: .6; pointer-events: none; }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }

/* =============================================================
   5. Cursor
   ============================================================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(59,143,245,.55); transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), background .3s var(--ease-out);
}
.cursor.is-hover .cursor-ring { width: 52px; height: 52px; background: rgba(59,143,245,.08); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), visibility .7s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 1rem; }
.splash-mark { width: 110px; height: 110px; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 0 24px rgba(59,143,245,.35)); animation: markIn 1s var(--ease-out) both; }
.splash-word { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: .3em; color: var(--text); padding-left: .35em; animation: markIn 1s .15s var(--ease-out) both; }
.splash-line { width: 0; height: 1px; background: var(--blue-grad); animation: lineGrow 1.4s .3s var(--ease-out) forwards; }
@keyframes markIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { to { width: 180px; } }

/* =============================================================
   7. Brand / nav
   ============================================================= */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { width: 42px; height: 42px; flex: none; object-fit: contain; border-radius: 10px; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; color: var(--text); }
.brand-sub { font-family: var(--mono); font-size: .56rem; letter-spacing: .22em; color: var(--blue); font-weight: 500; }

/* =============================================================
   8. Vídeo (VSL)
   ============================================================= */
.vsl-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(59,143,245,.32);
  background: radial-gradient(120% 120% at 50% 0%, var(--bg-3), var(--bg));
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(59,143,245,.08) inset;
}
.vsl-poster { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.vsl-emblem { position: absolute; width: 40%; max-width: 220px; opacity: .16; filter: blur(.3px); pointer-events: none; border-radius: 16px; }
.vsl-play {
  position: relative; z-index: 2; width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #06101f; background: var(--blue-grad);
  box-shadow: 0 14px 40px -10px rgba(59,143,245,.6);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.vsl-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(59,143,245,.4); animation: vslPulse 2.6s var(--ease-soft) infinite; }
.vsl-play svg { width: 42%; margin-left: 8%; }
.vsl-poster:hover .vsl-play { transform: scale(1.07); box-shadow: 0 18px 50px -10px rgba(59,143,245,.8); }
@keyframes vslPulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.35); opacity: 0; } 100% { opacity: 0; } }
.vsl-badge { position: absolute; bottom: 1rem; right: 1rem; z-index: 2; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .02em; color: var(--text); background: rgba(10,15,26,.6); backdrop-filter: blur(8px); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; }
.vsl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vsl-frame.is-playing .vsl-poster { display: none; }
.vsl-frame.has-video-error .vsl-play { opacity: .45; box-shadow: none; }
.vsl-frame.has-video-error .vsl-play::before { animation: none; opacity: 0; }
.vsl-error {
  position: absolute; z-index: 3; left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
  margin: 0; padding: .8rem 1rem; border-radius: 12px; text-align: left;
  font-size: .82rem; line-height: 1.45; color: var(--text);
  background: rgba(10,15,26,.86); backdrop-filter: blur(8px);
  border: 1px solid rgba(59,143,245,.32);
}

/* =============================================================
   9. Reunión / Formulario de reserva
   ============================================================= */
.reunion { overflow: hidden; }
.reunion-glow { position: absolute; inset: auto 50% -40% 50%; width: 80vw; max-width: 900px; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(59,143,245,.16), transparent 65%); filter: blur(80px); pointer-events: none; }
.reunion-card { position: relative; z-index: 2; padding: clamp(1.8rem, 5vw, 3.4rem); border-radius: 26px; 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,.8); }
.reunion-head { text-align: center; margin-inline: auto; }
.reunion-head .kicker { justify-content: center; }
.reunion-head .section-lead { margin-inline: auto; }

.lead-form { margin-top: 2.4rem; display: grid; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.field label { font-size: .82rem; font-weight: 500; color: var(--text-soft); letter-spacing: .02em; }
.field .optional { color: var(--text-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-soft); color: var(--text);
  font-family: inherit; font-size: .98rem; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,143,245,.14); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233B8FF5' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field select:disabled { opacity: .55; }
.field textarea { resize: vertical; min-height: 80px; }

.booking-hint { font-size: .84rem; color: var(--text-mute); }

.form-error { display: none; font-size: .86rem; color: var(--no); background: rgba(201,117,107,.1); border: 1px solid rgba(201,117,107,.3); border-radius: 12px; padding: .8rem 1rem; }
.form-error.is-visible { display: block; }

.form-fallback { display: none; font-size: .9rem; color: var(--text-soft); background: rgba(59,143,245,.08); border: 1px dashed var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.form-fallback.is-visible { display: block; }

.btn-check { width: 20px; height: 20px; opacity: 0; max-width: 0; transition: opacity .3s, max-width .3s; }
.lead-form.is-sending .btn-label { opacity: .7; }
.lead-form.is-sent .btn-check { opacity: 1; max-width: 24px; }

.form-foot { text-align: center; font-size: .8rem; color: var(--text-mute); }

.form-success { display: none; text-align: center; padding: 2rem 1rem; animation: markIn .6s var(--ease-out) both; }
.form-success.is-visible { display: block; }
.success-mark { width: 56px; height: 56px; margin: 0 auto 1.2rem; padding: 12px; border-radius: 50%; color: #06101f; background: var(--blue-grad); box-shadow: 0 12px 30px -10px rgba(59,143,245,.6); }
.form-success h3 { font-family: var(--display); font-size: 1.7rem; margin-bottom: .6rem; }
.form-success p { color: var(--text-soft); max-width: 44ch; margin-inline: auto; }
.form-success .success-note { margin-top: .8rem; font-size: .86rem; color: var(--text-mute); }

@media (min-width: 640px) {
  .field-row-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 560px) {
  .field-row-2 { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   10. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.2rem); background: var(--bg-2); text-align: center; }
.footer-brand { font-family: var(--display); font-weight: 700; letter-spacing: .18em; color: var(--text-soft); margin-bottom: .5rem; font-size: .95rem; }
.footer p { color: var(--text-mute); font-size: .82rem; }

/* =============================================================
   11. Reveal (scroll)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   12. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-mark, .splash-word { animation-duration: .4s; }
  .vsl-play::before { animation: none; }
}
