/* 1996 Studio — estilos base */

/* Paleta: blancos cálidos (papel), tinta casi negra, un acento y pasteles suaves.
   Sin modo oscuro a propósito: la marca es clara. */
:root {
  color-scheme: light;

  --bg: #faf8f5;
  --surface: #fffefc;
  --surface-2: #f3f0ea;
  --ink: #0a0a0a;
  --muted: #6b6760;
  --line: #e8e4dc;
  --accent: #2b3bff;
  --accent-ink: #ffffff;
  --accent-soft: #e6e8ff;

  /* Pasteles (guiño a los 90, sin saturar) */
  --lilac: #e9e4f6;
  --mint: #e0f0e7;
  --butter: #faf0d2;
  --sky: #e1ecf7;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.03), 0 18px 48px rgba(10, 10, 10, 0.07);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Google Sans Code", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}

p {
  margin: 0;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

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

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: color-mix(in srgb, var(--ink) 85%, var(--bg));
  }
  .btn-accent:hover {
    background: color-mix(in srgb, var(--accent) 88%, var(--ink));
  }
  .btn-ghost:hover {
    border-color: var(--ink);
  }
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.05rem;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav .btn {
  color: var(--bg);
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 180ms ease, transform 220ms var(--ease-out);
  }

  .nav a {
    padding: 14px 0;
    font-size: 1.05rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 16px;
    border-bottom: 0;
    min-height: 48px;
  }
}

/* ---------- Secciones ---------- */

section {
  padding: 96px 0;
}

[id] {
  scroll-margin-top: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sec-head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 680px;
}

.sec-head h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.sec-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  section {
    padding: 72px 0;
  }
}

/* El hero vive en css/hero.css */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- Servicios ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.service h3 {
  font-size: 1.3rem;
  margin: 20px 0 10px;
}

.service p {
  color: var(--muted);
}

.service ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.service li {
  display: flex;
  gap: 10px;
}

.service li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  margin-top: 0.8em;
  background: var(--accent);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- Productos ---------- */

.products {
  background: var(--surface-2);
}

.product-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  margin-bottom: 16px;
}

.product-feature h3 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 14px 0 14px;
}

.product-feature > div > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 0.97rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
}

.price-note {
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-note strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .product-feature {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tag-live {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Chat del bot dentro de un teléfono */

.chat-phone {
  justify-self: center;
  width: min(300px, 100%);
  padding: 9px;
  border-radius: 48px;
  background: #121212;
  box-shadow: 0 0 0 2px #2a2a2a inset, 0 34px 60px -30px rgba(10, 10, 10, 0.45);
}

.chat-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 600px;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(10, 10, 10, 0.05) 1px, transparent 0) 0 0 / 14px 14px,
    var(--surface-2);
}

.chat-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-who {
  display: grid;
  line-height: 1.2;
  font-size: 0.92rem;
}

.chat-who small {
  font-size: 0.74rem;
  color: #16a34a;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 12px;
  font-size: 0.82rem;
  overflow: hidden;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 14px;
  padding: 9px 9px 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.chat-input span { flex: 1; }

.chat-input i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
}

.chat-body .bubble { align-self: flex-start; }
.chat-body .bubble.out { align-self: flex-end; }

/* Escribiendo… */
.bubble.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}

.bubble.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: typing 1s ease-in-out infinite;
}

.bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 0.9; }
}

/* Secuencia: con JS los pasos parten ocultos y aparecen con un spring */
.js-chat [data-step] { display: none; }

.js-chat [data-step].is-shown {
  display: block;
  animation: bubble-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.js-chat .bubble.typing.is-shown { display: inline-flex; }

.js-chat .bubble.out.is-shown { transform-origin: 100% 100%; }
.js-chat .bubble.in.is-shown { transform-origin: 0 100%; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.bubble .ok { transition: transform 160ms var(--ease-out), filter 160ms ease; }

.bubble .ok.is-pressed {
  transform: scale(0.9);
  filter: brightness(0.85);
}

@media (max-width: 900px) {
  .chat-screen { height: 580px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble.typing i { animation: none; }
}

.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.4;
}

.bubble.out {
  justify-self: end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}

.bubble.in {
  justify-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  opacity: 0.6;
}

.bubble .ok {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.82rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.mark-hogar {
  background: var(--mint);
  color: #2b6a50;
}

.mark-squad {
  background: var(--lilac);
  color: #4b3bb0;
}

.mark-sadito {
  background: #fbe1dc;
  color: #b8321f;
}

.platform a {
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.platform a:hover {
  text-decoration-color: currentColor;
}

.product h3 {
  font-size: 1.3rem;
}

.product p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Pie de la tarjeta: misma altura y posición en las tres */
.product-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product .platform {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Proceso ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.process li {
  list-style: none;
  padding: 28px 24px 0 0;
}

.process b {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.process h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.process p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
}

@media (max-width: 520px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* ---------- Por qué 1996 ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 20px;
}

.story-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.story-text + .story-text {
  margin-top: 14px;
}

.story-sign {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
}

/* Tele de tubo, en pasteles */
.tv {
  position: relative;
  padding: 22px 22px 18px;
  border-radius: 34px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.tv-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 28px / 34px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 40%, #fffefc 0%, var(--sky) 55%, var(--lilac) 100%);
  box-shadow: inset 0 0 40px rgba(10, 10, 10, 0.08);
}

/* Líneas de barrido muy suaves */
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(10, 10, 10, 0.035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.tv-year {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
}

.tv-kanji {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.tv-bug {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tv-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 254, 252, 0.8);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink);
}

.tv-knobs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 6px;
}

.tv-knobs i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--line);
}

.tv-knobs span {
  margin-left: auto;
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 7px);
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tv {
    max-width: 440px;
  }
}

/* Franja de cuadritos antes del pie */
.checker-strip {
  height: 12px;
  background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 12px 12px;
  opacity: 0.08;
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.contact .lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-mail {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  word-break: break-all;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 150ms ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-error {
  font-size: 0.88rem;
  color: var(--accent);
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Pie ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal {
  display: grid;
  gap: 4px;
}

.footer-legal strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ---------- Páginas legales ---------- */

.legal {
  padding: 64px 0 96px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 12px;
}

.legal .updated {
  color: var(--muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: color-mix(in srgb, var(--ink) 82%, var(--bg));
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 20px;
  margin: 12px 0;
  display: grid;
  gap: 6px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.94rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

.legal th {
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- Aparición al hacer scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .nav,
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition: none;
  }
}

/* ---------- Pantallas de las apps ---------- */

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.06), 0 4px 10px rgba(10, 10, 10, 0.08);
}

.shots {
  position: relative;
  height: 230px;
  margin: -6px -6px 4px;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
}

.shots-hogar { background: var(--mint); display: grid; place-items: center; }
.shots-squad { background: linear-gradient(160deg, #ece8fb, #d9d2f6); }
.shots-sadito { background: linear-gradient(160deg, #fdebe4, #f9d6c9); }

.shots-note {
  font-size: 0.82rem;
  color: #2b6a50;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.phone {
  position: absolute;
  top: 26px;
  width: 118px;
  height: auto;
  border: 4px solid #121212;
  border-radius: 20px;
  background: #121212;
  box-shadow: 0 18px 30px -12px rgba(10, 10, 10, 0.35);
  transition: transform 0.5s var(--ease-out);
}

/* Las capturas de SquadMatch ya traen el marco del teléfono */
.phone-bare {
  border: 0;
  border-radius: 0;
  background: none;
  width: 124px;
  box-shadow: none;
  filter: drop-shadow(0 18px 22px rgba(30, 20, 60, 0.3));
}

.phone:first-child { left: calc(50% - 116px); transform: rotate(-4deg); }
.phone:last-child { left: calc(50% - 4px); top: 44px; transform: rotate(3deg); }

@media (hover: hover) {
  .product:hover .phone:first-child { transform: rotate(-6deg) translateY(-6px); }
  .product:hover .phone:last-child { transform: rotate(5deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone { transition: none; }
}

/* ---------- Glitch de la TV ----------
   Calma casi todo el tiempo y un tirón corto cada 6 s (también al pasar el mouse):
   el año se separa en azul y rosado, la imagen salta y se cruza una franja de señal. */

.tv-year {
  position: relative;
  animation: tv-jitter 6s steps(1, end) infinite;
}

.tv-year::before,
.tv-year::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.tv-year::before {
  color: var(--accent);
  animation: tv-split-a 6s steps(1, end) infinite;
}

.tv-year::after {
  color: #ff4f8b;
  animation: tv-split-b 6s steps(1, end) infinite;
}

/* Franja de interferencia que baja por la pantalla */
.tv-screen::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 45%, rgba(43, 59, 255, 0.08) 55%, transparent);
  pointer-events: none;
  z-index: 1;
  animation: tv-roll 6s linear infinite;
}

.tv-screen {
  animation: tv-flash 6s steps(1, end) infinite;
}

.tv:hover .tv-year,
.tv:hover .tv-year::before,
.tv:hover .tv-year::after,
.tv:hover .tv-screen {
  animation-duration: 1.4s;
}

@keyframes tv-split-a {
  0%, 84% { opacity: 0; transform: none; clip-path: inset(0); }
  85% { opacity: 0.9; transform: translate(-6px, 0); clip-path: inset(12% 0 58% 0); }
  87% { opacity: 0.9; transform: translate(5px, 0); clip-path: inset(52% 0 18% 0); }
  89% { opacity: 0.8; transform: translate(-3px, 0); clip-path: inset(30% 0 40% 0); }
  91% { opacity: 0.6; transform: translate(-2px, 0); clip-path: inset(0); }
  93%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
}

@keyframes tv-split-b {
  0%, 84% { opacity: 0; transform: none; clip-path: inset(0); }
  85% { opacity: 0.9; transform: translate(6px, 0); clip-path: inset(60% 0 8% 0); }
  87% { opacity: 0.9; transform: translate(-4px, 0); clip-path: inset(8% 0 66% 0); }
  89% { opacity: 0.8; transform: translate(3px, 0); clip-path: inset(44% 0 30% 0); }
  91% { opacity: 0.6; transform: translate(2px, 0); clip-path: inset(0); }
  93%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
}

@keyframes tv-jitter {
  0%, 84% { transform: none; }
  85% { transform: translate(2px, -1px) skewX(-6deg); }
  87% { transform: translate(-3px, 1px) skewX(4deg); }
  89% { transform: translate(1px, 0) skewX(-2deg); }
  91%, 100% { transform: none; }
}

@keyframes tv-flash {
  0%, 84% { filter: none; }
  85% { filter: brightness(1.08) contrast(1.1) hue-rotate(-8deg); }
  88% { filter: brightness(0.96) saturate(1.3); }
  91%, 100% { filter: none; }
}

@keyframes tv-roll {
  0% { transform: translateY(0); }
  100% { transform: translateY(600%); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-year,
  .tv-year::before,
  .tv-year::after,
  .tv-screen,
  .tv-screen::before {
    animation: none !important;
  }
  .tv-screen::before {
    display: none;
  }
}

/* Botón al sitio de cada app, al pie de la tarjeta */
.btn-site {
  align-self: flex-start;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn-site svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms var(--ease-out);
}

@media (hover: hover) {
  .btn-site:hover svg {
    transform: translate(2px, -2px);
  }
}

/* ---------- Demo del bot en vivo (iframe) ---------- */

.live-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 8px 48px;
  margin: 0 0 16px;
  padding: 40px 40px 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.live-demo-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
}

.live-demo-text p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 22px;
}

/* En desktop: titular a la izquierda, texto y botón a la derecha, escena abajo a todo el ancho */
@media (min-width: 961px) {
  .live-demo-text {
    display: contents;
  }
  .live-demo-text h3 {
    grid-column: 1;
    margin-bottom: 0;
  }
  .live-demo-text .eyebrow {
    grid-column: 1 / -1;
  }
  .live-demo-text p:not(.eyebrow),
  .live-demo-text .btn {
    grid-column: 2;
  }
  .live-demo-text p:not(.eyebrow) {
    margin-bottom: 0;
  }
  .live-demo-text .btn {
    justify-self: start;
    margin-top: 12px;
  }
}

.live-demo-frame {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
  background: transparent;
  color-scheme: light;
}

@media (max-width: 960px) {
  .live-demo {
    grid-template-columns: 1fr;
    padding: 28px 20px 8px;
  }
  .live-demo-frame {
    height: 1100px;
  }
}
