/* OTIMO Landing — websites.otimoai.com
   Branding: Inter + dark navy + royal blue + gold (replica de otimoai.com).
   Stack: HTML/CSS/JS estático servido vía Supabase Storage + Cloudflare Worker. */

/* ============================================================
   BACKGROUND SHADERS — mesh gradient + orbit animation (CSS puro)
   Replica el efecto de paper-design/shaders sin React/Three.js.
   Respeta el navy base hsl(228 55% 8%); mezcla con primary + gold de la paleta.
   ============================================================ */
.bg-shaders {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* base: navy actual (mismo que body) */
  background: hsl(228 55% 8%);
}

.bg-shaders__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Blob 1 — royal blue grande arriba izquierda */
.bg-shaders__blob--1 {
  width: 55vw; height: 55vw;
  max-width: 800px; max-height: 800px;
  top: -10%; left: -15%;
  background: radial-gradient(circle, hsl(227 100% 56% / 0.7) 0%, transparent 65%);
  animation: bg-drift-1 8s linear infinite;
}

/* Blob 2 — navy claro centro */
.bg-shaders__blob--2 {
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  top: 30%; right: -10%;
  background: radial-gradient(circle, hsl(227 80% 42% / 0.6) 0%, transparent 65%);
  animation: bg-drift-2 11s linear infinite;
}

/* Blob 3 — gold sutil abajo derecha (accent) */
.bg-shaders__blob--3 {
  width: 45vw; height: 45vw;
  max-width: 600px; max-height: 600px;
  bottom: -15%; right: 5%;
  background: radial-gradient(circle, hsl(47 96% 53% / 0.22) 0%, transparent 65%);
  animation: bg-drift-3 13s linear infinite;
}

/* Blob 4 — primary deep abajo izquierda */
.bg-shaders__blob--4 {
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  bottom: -10%; left: -5%;
  background: radial-gradient(circle, hsl(227 100% 35% / 0.65) 0%, transparent 65%);
  animation: bg-drift-4 9s linear infinite;
}

/* Blob 5 — cyan-tinted (vida) centro arriba */
.bg-shaders__blob--5 {
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
  top: 20%; left: 35%;
  background: radial-gradient(circle, hsl(210 90% 55% / 0.5) 0%, transparent 65%);
  animation: bg-drift-5 10s linear infinite;
}

/* Rangos GRANDES de movimiento + linear infinite (no alternate) = movimiento continuo CIRCULAR sin pausas.
   Cada blob hace un loop completo de su ciclo y vuelve al origen sin "snap". */
@keyframes bg-drift-1 {
  0%   { transform: translate(0, 0)         rotate(0deg)   scale(1); }
  25%  { transform: translate(18vw, 8vh)    rotate(90deg)  scale(1.18); }
  50%  { transform: translate(28vw, 22vh)   rotate(180deg) scale(1.3); }
  75%  { transform: translate(12vw, 28vh)   rotate(270deg) scale(1.15); }
  100% { transform: translate(0, 0)         rotate(360deg) scale(1); }
}
@keyframes bg-drift-2 {
  0%   { transform: translate(0, 0)         rotate(0deg)    scale(1); }
  25%  { transform: translate(-14vw, 10vh)  rotate(-90deg)  scale(1.15); }
  50%  { transform: translate(-22vw, 25vh)  rotate(-180deg) scale(1.25); }
  75%  { transform: translate(-8vw, 32vh)   rotate(-270deg) scale(1.1); }
  100% { transform: translate(0, 0)         rotate(-360deg) scale(1); }
}
@keyframes bg-drift-3 {
  0%   { transform: translate(0, 0)         rotate(0deg)   scale(1); }
  25%  { transform: translate(-12vw, -10vh) rotate(90deg)  scale(1.2); }
  50%  { transform: translate(-25vw, -25vh) rotate(180deg) scale(1.35); }
  75%  { transform: translate(-10vw, -32vh) rotate(270deg) scale(1.18); }
  100% { transform: translate(0, 0)         rotate(360deg) scale(1); }
}
@keyframes bg-drift-4 {
  0%   { transform: translate(0, 0)         rotate(0deg)    scale(1); }
  25%  { transform: translate(15vw, -10vh)  rotate(-90deg)  scale(1.15); }
  50%  { transform: translate(28vw, -22vh)  rotate(-180deg) scale(1.25); }
  75%  { transform: translate(12vw, -30vh)  rotate(-270deg) scale(1.1); }
  100% { transform: translate(0, 0)         rotate(-360deg) scale(1); }
}
@keyframes bg-drift-5 {
  0%   { transform: translate(0, 0)         rotate(0deg)   scale(1); }
  25%  { transform: translate(-10vw, 12vh)  rotate(120deg) scale(0.92); }
  50%  { transform: translate(-20vw, 28vh)  rotate(240deg) scale(0.8); }
  75%  { transform: translate(-8vw, 18vh)   rotate(300deg) scale(0.95); }
  100% { transform: translate(0, 0)         rotate(360deg) scale(1); }
}

/* Grain noise sutil (SVG inline) — agrega textura "papel" como el shader */
.bg-shaders__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* NO desactivamos animation con prefers-reduced-motion porque ya el blur de 80px hace
   el movimiento muy sutil — no causa motion sickness. (Mismo razonamiento que el scroll
   effect del tablet: si lo desactivamos, en Windows con "reducir animaciones" se ve estático). */


/* ===== Backlinks contextuales inline =====
   .link-pricing destacado (gold, lleva a sección de precios)
   .link-care discreto pero visible (lleva a OTIMO Care)
*/
.link-pricing, .link-care {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed hsl(var(--primary) / 0.5);
  transition: all var(--transition);
}
.link-pricing:hover, .link-care:hover {
  color: hsl(var(--gold));
  border-bottom-color: hsl(var(--gold));
}
.link-pricing {
  color: hsl(var(--gold));
  border-bottom-color: hsl(var(--gold) / 0.6);
  font-weight: 700;
}
.link-pricing:hover {
  color: hsl(var(--gold));
  border-bottom-style: solid;
  border-bottom-color: hsl(var(--gold));
}

:root {
  /* ===== Paleta ===== */
  --background: 228 55% 8%;
  --foreground: 210 40% 98%;
  --card: 228 40% 11%;
  --card-2: 228 35% 14%;
  --muted: 228 30% 18%;
  --muted-foreground: 215 20% 65%;
  --primary: 227 100% 56%;
  --primary-foreground: 0 0% 100%;
  --accent: 227 100% 56%;
  --gold: 47 96% 53%;
  --gold-hover: 47 96% 45%;
  --border: 228 25% 18%;
  --ring: 227 100% 56%;
  --radius: 0.75rem;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-w: 1200px;
  --shadow-card: 0 1px 2px hsl(var(--background) / 0.5), 0 8px 32px hsl(var(--primary) / 0.08);
  --shadow-card-popular: 0 0 0 1px hsl(var(--primary) / 0.5), 0 12px 48px hsl(var(--primary) / 0.25);
  --shadow-launch: 0 0 0 2px hsl(var(--gold) / 0.4), 0 24px 80px hsl(var(--gold) / 0.12);
  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  /* Background transparente para que se vea el .bg-shaders (z-index -1).
     El color navy base lo da .bg-shaders { background: hsl(228 55% 8%) }. */
  background: transparent;
  color: hsl(var(--foreground));
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

a { color: hsl(var(--primary)); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.85; }

button { font-family: inherit; cursor: pointer; }

/* ===== UTILITIES ===== */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

/* ===== HEADER ===== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: hsl(var(--background) / 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.hdr__brand { display: inline-flex; align-items: center; line-height: 0; }
.hdr__brand:hover { opacity: 0.85; }
.hdr__brand-logo { height: 32px; width: auto; display: block; }
@media (max-width: 540px) { .hdr__brand-logo { height: 26px; } }

.hdr__lang { display: inline-flex; gap: 4px; padding: 4px; background: hsl(var(--card)); border-radius: var(--radius); border: 1px solid hsl(var(--border)); }
.hdr__lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: calc(var(--radius) - 2px);
  background: transparent; border: 0; color: hsl(var(--muted-foreground));
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  transition: all var(--transition);
}
.hdr__lang-btn[aria-pressed="true"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 4px hsl(var(--primary) / 0.4);
}
.hdr__lang-btn:hover:not([aria-pressed="true"]) { color: hsl(var(--foreground)); background: hsl(var(--muted) / 0.5); }
.hdr__lang-flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 14px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px hsl(var(--border) / 0.6), 0 1px 2px hsl(var(--background) / 0.4);
}
.hdr__lang-flag svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.hdr__lang-code { font-feature-settings: "tnum"; }
/* Celular: logo + los dos selectores no caben (~98 + ~315px) y el navegador
   aplastaba el logo. El logo nunca se encoge; se van las banderas (el codigo
   COP/USD/ES/EN queda) y el header pierde un poco de margen. */
.hdr__brand { flex-shrink: 0; }
@media (max-width: 480px) {
  .hdr { padding: 0.85rem 1rem; gap: 0.5rem; }
  .hdr__lang-flag { display: none; }
  .hdr__lang-btn { padding: 6px 9px; }
}
@media (max-width: 359px) {
  .hdr { padding: 0.75rem 0.75rem; }
  .hdr__brand-logo { height: 20px; }
  .hdr__lang-btn { padding: 5px 7px; font-size: 0.75rem; }
}

/* ===== HERO ===== */
.hero { position: relative; padding: 5rem 1.5rem 2.5rem; text-align: center; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 7rem 1.5rem 3.5rem; } }
.hero__inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  /* Animation: texto arranca 100px abajo (alejado de la lámpara) y sube a su posición
     mientras la línea LED se expande. Misma curva y timing que la lamp (0.3s delay, 1.2s duration).
     Matching el <motion.h1 initial={{opacity: 0.5, y: 100}} whileInView={{opacity: 1, y: 0}}> de Aceternity. */
  animation: hero-text-rise 1.2s cubic-bezier(0.45, 0, 0.55, 1) 0.3s both;
}
@keyframes hero-text-rise {
  from { opacity: 0.5; transform: translateY(100px); }
  to   { opacity: 1;   transform: translateY(0); }
}

/* ============================================================
   LAMP v2 — matching exacto el video lampara.mp4.
   Diseño: 1 halo elíptico sutil + 2 beams cónicos prominentes + línea LED brillante.
   Animación de "growth" del original visible: bar/beams arrancan estrechos y se expanden.
   ============================================================ */
.lamp {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26rem;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* BEAMS cónicos — dominantes en el efecto (forman el cono de luz visible) */
.lamp__beam-left {
  position: absolute;
  top: 2.5rem;
  right: 50%;
  width: 6rem;
  max-width: 75vw;
  height: 16rem;
  background: conic-gradient(
    from 70deg at 100% 0%,
    hsl(190 100% 55% / 0.9) 0deg,
    hsl(190 100% 50% / 0.45) 12deg,
    transparent 32deg
  );
  -webkit-mask-image: linear-gradient(225deg, black 28%, transparent 80%);
          mask-image: linear-gradient(225deg, black 28%, transparent 80%);
  animation: lamp-beam-grow 1.2s cubic-bezier(0.45, 0, 0.55, 1) 0.3s forwards;
}
.lamp__beam-right {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  width: 6rem;
  max-width: 75vw;
  height: 16rem;
  background: conic-gradient(
    from 290deg at 0% 0%,
    transparent 328deg,
    hsl(190 100% 50% / 0.45) 348deg,
    hsl(190 100% 55% / 0.9) 360deg
  );
  -webkit-mask-image: linear-gradient(135deg, black 28%, transparent 80%);
          mask-image: linear-gradient(135deg, black 28%, transparent 80%);
  animation: lamp-beam-grow 1.2s cubic-bezier(0.45, 0, 0.55, 1) 0.3s forwards;
}
@keyframes lamp-beam-grow {
  0%   { opacity: 0.3; width: 6rem; }
  100% { opacity: 1;   width: 30rem; }
}
@media (min-width: 768px) {
  .lamp__beam-left, .lamp__beam-right { top: 3rem; height: 20rem; }
  @keyframes lamp-beam-grow {
    0%   { opacity: 0.3; width: 8rem; }
    100% { opacity: 1;   width: 38rem; }
  }
}

/* HALO ÚNICO ELÍPTICO — sutil "wash" de luz, NO bloob circular ----- */
.lamp__halo {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  width: 26rem;
  max-width: 85vw;
  height: 7rem;
  background: radial-gradient(ellipse 60% 100% at center top,
    hsl(190 100% 60% / 0.55) 0%,
    hsl(190 100% 55% / 0.25) 40%,
    transparent 75%);
  filter: blur(14px);
  transform: translateX(-50%);
  animation:
    lamp-halo-grow  1.2s cubic-bezier(0.45, 0, 0.55, 1) 0.3s forwards,
    lamp-halo-pulse 3.5s ease-in-out 1.5s infinite alternate;
}
@media (min-width: 768px) { .lamp__halo { top: 3rem; width: 32rem; } }
@keyframes lamp-halo-grow {
  0%   { opacity: 0.4; transform: translateX(-50%) scaleX(0.4); }
  100% { opacity: 1;   transform: translateX(-50%) scaleX(1); }
}
@keyframes lamp-halo-pulse {
  from { opacity: 0.85; }
  to   { opacity: 1; }
}

/* LÍNEA LED — brillante, arranca estrecha y crece (animación width del original) */
.lamp__bar {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  width: 6rem;
  max-width: 75vw;
  height: 2px;
  background: hsl(190 100% 85%);
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 2;
  /* offset-Y positivo: resplandor solo hacia ABAJO */
  box-shadow:
    0 0 8px  hsl(190 100% 85% / 0.95),
    0 4px 20px hsl(190 100% 70% / 0.8),
    0 12px 50px hsl(190 100% 55% / 0.55);
  animation:
    lamp-bar-grow  1.2s cubic-bezier(0.45, 0, 0.55, 1) 0.3s forwards,
    lamp-bar-pulse 2.5s ease-in-out 1.5s infinite alternate;
}
@keyframes lamp-bar-grow {
  0%   { width: 6rem;  opacity: 0.4; }
  100% { width: 30rem; opacity: 1; }
}
@media (min-width: 768px) {
  .lamp__bar { top: 3rem; }
  @keyframes lamp-bar-grow {
    0%   { width: 8rem;  opacity: 0.4; }
    100% { width: 38rem; opacity: 1; }
  }
}
@keyframes lamp-bar-pulse {
  from {
    box-shadow:
      0 0 8px  hsl(190 100% 85% / 0.95),
      0 4px 20px hsl(190 100% 70% / 0.8),
      0 12px 50px hsl(190 100% 55% / 0.55);
  }
  to {
    box-shadow:
      0 0 14px hsl(190 100% 90% / 1),
      0 6px 30px hsl(190 100% 75% / 0.95),
      0 18px 75px hsl(190 100% 60% / 0.75);
  }
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 600;
  color: hsl(var(--gold));
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid hsl(var(--gold) / 0.3);
  border-radius: 999px;
  background: hsl(var(--gold) / 0.06);
}
.hero__headline {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero__bignum { color: hsl(var(--primary)); display: inline-block; }
.hero__rest { display: inline-block; }
.hero__sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: hsl(var(--muted-foreground));
  max-width: 42rem; margin: 0 auto 2rem;
  text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.hero__micro {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  display: inline-flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.hero__sep { opacity: 0.5; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, hsl(var(--primary) / 0.2), transparent 70%);
  pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600; font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer; text-align: center;
}
.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 2px hsl(var(--background) / 0.5), 0 4px 16px hsl(var(--primary) / 0.4);
}
.btn--primary:hover { background: hsl(227 100% 50%); opacity: 1; transform: translateY(-1px); box-shadow: 0 1px 2px hsl(var(--background) / 0.5), 0 6px 24px hsl(var(--primary) / 0.55); }
.btn--ghost {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn--ghost:hover { background: hsl(var(--card)); opacity: 1; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--xl { padding: 1.25rem 2.5rem; font-size: 1.0625rem; }
.btn .btn-price { opacity: 0.85; font-weight: 500; }
.btn .btn-loading { display: none; }
.btn[data-loading="true"] .btn-label, .btn[data-loading="true"] .btn-price { opacity: 0.4; }
.btn[data-loading="true"] .btn-loading { display: inline-block; }

/* ===== ANCHOR (mercado tachado → tu precio) ===== */
.anchor { padding: 3rem 1.5rem; }
.anchor__inner {
  max-width: 36rem; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--card-2)) 100%);
  padding: 2.5rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
}
.anchor__market {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.anchor__market-price {
  font-size: 1.5rem; font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}
.anchor__market-price s { opacity: 0.7; }
.anchor__arrow {
  font-size: 1.75rem;
  color: hsl(var(--primary));
  margin: 0.75rem 0 0.5rem;
}
.anchor__ours {
  font-size: 0.875rem;
  color: hsl(var(--gold));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}
.anchor__ours-price {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  line-height: 1.1;
  margin-top: 0.25rem;
}
.anchor__ours-once {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  letter-spacing: 0;
  text-transform: none;
}
/* Con las 3 opciones en fila (>=720px) la grilla mide hasta 52rem: el recuadro
   tiene que crecer con ella o la tarjeta de OTIMO se sale por la derecha. */
@media (min-width: 720px) { .anchor__inner { max-width: 56rem; } }
.anchor__save {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

/* ===== LA DIFERENCIA (web que la IA entiende vs. no) =====
   Dos paneles con la MISMA pregunta. "Antes" en gris apagado con acento coral
   (el mismo del bloque de Instagram); "despues" en el azul primario. */
.ai-diff { padding: 5rem 1.5rem; }
.ai-diff__inner { max-width: 60rem; margin: 0 auto; text-align: center; }
.ai-diff__sub { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin: 0 auto 2.5rem; }
.ai-diff__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; text-align: left; }
@media (min-width: 760px) { .ai-diff__grid { grid-template-columns: 1fr 1fr; } }
.ai-diff__panel {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.75rem 1.5rem; border-radius: calc(var(--radius) + 4px);
  background: hsl(var(--card) / 0.7); border: 1px solid hsl(var(--border));
}
.ai-diff__panel--after {
  border-color: hsl(var(--primary) / 0.7);
  background: linear-gradient(160deg, hsl(var(--primary) / 0.1), hsl(var(--card)) 60%);
  box-shadow: 0 10px 40px hsl(var(--primary) / 0.15);
}
.ai-diff__tag { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.0625rem; color: hsl(var(--foreground)); }
.ai-diff__tag-icon {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px;
  font-size: 0.85rem; flex-shrink: 0;
}
.ai-diff__panel--before .ai-diff__tag-icon { color: hsl(15 95% 68%); background: hsl(15 95% 55% / 0.14); border: 1px solid hsl(15 95% 65% / 0.4); }
.ai-diff__panel--after .ai-diff__tag-icon { color: hsl(var(--primary)); background: hsl(var(--primary) / 0.14); border: 1px solid hsl(var(--primary) / 0.5); }
.ai-diff__step {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.85); margin-top: 0.4rem;
}
.ai-diff__panel--after .ai-diff__step { color: hsl(var(--primary)); }

/* "Lo que la IA ve": antes = una pagina borrosa con un signo de pregunta */
.ai-diff__page {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; justify-content: center;
  height: 5.25rem; padding: 0 1.1rem; border-radius: var(--radius);
  border: 1px solid hsl(var(--border)); background: hsl(var(--background) / 0.5); overflow: hidden;
}
.ai-diff__line { display: block; height: 0.5rem; width: 80%; border-radius: 999px; background: hsl(var(--muted-foreground) / 0.25); filter: blur(2px); }
.ai-diff__line--s { width: 55%; }
.ai-diff__line--m { width: 68%; }
.ai-diff__fog {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 1px dashed hsl(15 95% 65% / 0.6); color: hsl(15 95% 70%); font-weight: 800; font-size: 1.25rem;
}
/* despues = la misma informacion, pero con nombre propio */
.ai-diff__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 5.25rem; align-content: center; }
.ai-diff__chip {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.5rem 0.8rem; border-radius: 0.6rem; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--primary) / 0.45); background: hsl(var(--primary) / 0.1);
}

/* El chat: misma pregunta en los dos paneles */
.ai-diff__chat { display: flex; flex-direction: column; gap: 0.6rem; }
.ai-diff__q {
  align-self: flex-end; max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 1rem 1rem 0.25rem 1rem;
  background: hsl(var(--muted-foreground) / 0.18); color: hsl(var(--foreground)); font-size: 0.875rem; line-height: 1.4;
}
.ai-diff__a { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 92%; }
.ai-diff__bot {
  flex-shrink: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: hsl(var(--card-2)); border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: 0.8rem;
}
.ai-diff__panel--after .ai-diff__bot { color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.5); }
.ai-diff__a > p {
  padding: 0.6rem 0.9rem; border-radius: 0.25rem 1rem 1rem 1rem; font-size: 0.875rem; line-height: 1.45;
  background: hsl(var(--card-2)); color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border));
}
.ai-diff__card {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 0.8rem 0.95rem; border-radius: 0.25rem 1rem 1rem 1rem;
  background: hsl(var(--card-2)); border: 1px solid hsl(var(--primary) / 0.45);
}
.ai-diff__card-name { font-size: 1rem; color: hsl(var(--foreground)); }
.ai-diff__card-meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.ai-diff__open { color: hsl(142 70% 55%); font-weight: 600; }
.ai-diff__card-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.ai-diff__btn {
  font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: hsl(var(--primary)); color: #fff;
}
.ai-diff__btn + .ai-diff__btn { background: transparent; color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }

.ai-diff__result { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid hsl(var(--border)); font-weight: 700; font-size: 1rem; }
.ai-diff__result--bad { color: hsl(15 95% 70%); }
.ai-diff__result--good { color: hsl(var(--foreground)); }
.ai-diff__result--good span[aria-hidden] { color: hsl(var(--primary)); }
.ai-diff__note { margin-top: 1rem; font-size: 0.75rem; color: hsl(var(--muted-foreground) / 0.7); }

/* ===== AVISO AL VOLVER DE STRIPE (?gracias=1 / ?cancelado=1) ===== */
.pago-aviso {
  position: fixed; z-index: 2147482000; left: 16px; right: 16px; top: 84px;
  max-width: 30rem; margin: 0 auto; padding: 1.25rem 1.25rem 1.1rem;
  border-radius: calc(var(--radius) + 4px); background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); box-shadow: 0 20px 60px hsl(var(--background) / 0.6);
  display: flex; flex-direction: column; gap: 0.5rem; text-align: center;
}
.pago-aviso--ok { border-color: hsl(142 70% 45% / 0.6); }
.pago-aviso strong { font-size: 1.25rem; color: hsl(var(--foreground)); }
.pago-aviso--ok strong { color: hsl(142 70% 60%); }
.pago-aviso p { color: hsl(var(--muted-foreground)); line-height: 1.5; margin: 0 0 0.4rem; }
.pago-aviso .btn { align-self: center; }
.pago-aviso__cerrar {
  position: absolute; top: 6px; right: 10px; background: none; border: 0; cursor: pointer;
  color: hsl(var(--muted-foreground)); font-size: 1.5rem; line-height: 1; padding: 4px 6px;
}

/* ===== WHY OTIMO ===== */
.why { padding: 5rem 1.5rem; }
.why__inner { max-width: var(--max-w); margin: 0 auto; }
.why__inner .section-eyebrow, .why__inner .section-title { text-align: center; }
.why__inner .section-title { margin-bottom: 3rem; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.why__card {
  background: hsl(var(--card));
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  transition: all var(--transition);
}
.why__card:hover { border-color: hsl(var(--primary) / 0.5); transform: translateY(-2px); }
.why__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.why__card-title {
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}
.why__card-text {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* ===== PRICING ===== */
.pricing { padding: 4rem 1.5rem 5rem; }
.pricing__inner { max-width: var(--max-w); margin: 0 auto; }
.pricing__head { text-align: center; margin-bottom: 3rem; }

/* === Card destacada: TU LANZAMIENTO === */
.launch {
  max-width: 48rem; margin: 0 auto 4rem;
  background: linear-gradient(160deg, hsl(var(--card)) 0%, hsl(var(--card-2)) 100%);
  border-radius: calc(var(--radius) + 6px);
  border: 1.5px solid hsl(var(--gold) / 0.35);
  box-shadow: var(--shadow-launch);
  overflow: hidden;
  position: relative;
}
.launch::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, hsl(var(--gold) / 0.08), transparent 70%);
  pointer-events: none;
}
.launch__inner { padding: 2.5rem 2rem; position: relative; z-index: 1; }
.launch__head { text-align: center; margin-bottom: 1.5rem; }
.launch__badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: hsl(var(--gold));
  color: hsl(var(--background));
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.launch__name {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}
.launch__tagline {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}
.launch__price-block { text-align: center; margin-bottom: 1.5rem; }
.launch__price-row {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.launch__price-amount {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: hsl(var(--foreground));
  line-height: 1;
}
.launch__price-currency {
  font-size: 1.125rem; font-weight: 600;
  color: hsl(var(--muted-foreground));
}
.launch__price-mode {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.launch__payment-toggle {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  margin: 0 auto 1.25rem;
  display: flex; max-width: 22rem;
}
.launch__toggle-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition);
}
.launch__toggle-btn--active {
  background: hsl(var(--card-2));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 4px hsl(var(--background) / 0.3);
}
.launch__toggle-price { font-size: 0.75rem; opacity: 0.85; font-weight: 500; }

.launch__installments-note {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--gold));
  background: hsl(var(--gold) / 0.06);
  border: 1px solid hsl(var(--gold) / 0.2);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.launch__features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .launch__features { grid-template-columns: 1fr 1fr; }
}
.launch__features li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}
.launch__check {
  color: hsl(var(--primary));
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.launch__cta {
  width: 100%;
  margin-bottom: 0.875rem;
}
.launch__small {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  line-height: 1.5;
}
.launch__small a { color: hsl(var(--primary)); }

/* === CARE: soporte opcional con toggle anual/mensual === */
.care { max-width: 64rem; margin: 0 auto; }
.care__head { text-align: center; margin-bottom: 2rem; }
.care__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.care__sub {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  max-width: 32rem; margin: 0 auto 1.5rem;
}
.care__billing-toggle {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: hsl(var(--muted));
  border-radius: var(--radius);
}
.care__toggle-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.care__toggle-btn--active {
  background: hsl(var(--card-2));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 4px hsl(var(--background) / 0.3);
}
.care__toggle-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  background: hsl(var(--gold));
  color: hsl(var(--background));
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.care__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .care__grid { grid-template-columns: 1fr 1fr; }
}

.care-card {
  position: relative;
  background: hsl(var(--card));
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.care-card:hover { border-color: hsl(var(--primary) / 0.4); }
.care-card--popular {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-card-popular);
}
.care-card__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 0.3rem 0.8rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
}
.care-card__head { margin-bottom: 1rem; }
.care-card__name {
  font-size: 1.375rem; font-weight: 700;
  margin-bottom: 0.25rem;
}
.care-card__tagline {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
.care-card__price {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed hsl(var(--border));
}
.care-card__price-amount {
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  line-height: 1;
}
.care-card__price-currency {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.3rem;
}
.care-card__price-equiv {
  font-size: 0.75rem;
  color: hsl(var(--gold));
  margin-top: 0.4rem;
  font-weight: 500;
}
.care-card__features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}
.care-card__features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
}
.care-card__features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: hsl(var(--primary));
  font-weight: 700;
}
.care-card__cta { width: 100%; }

.care__free-anchor {
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: hsl(var(--muted) / 0.5);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
.care__free-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: hsl(var(--gold) / 0.15);
  color: hsl(var(--gold));
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
  margin-right: 0.5rem;
}
.care__small {
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===== INCLUDES (qué incluye / qué no) ===== */
.includes { padding: 5rem 1.5rem; background: hsl(var(--background) / 0.4); }
.includes__inner { max-width: var(--max-w); margin: 0 auto; }
.includes__inner .section-eyebrow, .includes__inner .section-title { text-align: center; }
.includes__inner .section-title { margin-bottom: 3rem; }

.includes__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .includes__grid { grid-template-columns: 1fr 1fr; }
}
.includes__col {
  background: hsl(var(--card));
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}
.includes__col--yes { border-color: hsl(var(--primary) / 0.3); }
.includes__col--no { border-color: hsl(var(--border)); }
.includes__col-title {
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed hsl(var(--border));
}
.includes__list {
  list-style: none;
  margin-bottom: 1rem;
}
.includes__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
}
.includes__list li::before {
  content: '•';
  position: absolute; left: 0.25rem;
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}
.includes__list--no li::before { color: hsl(var(--muted-foreground)); }
.includes__custom {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  padding-top: 1rem;
  border-top: 1px dashed hsl(var(--border));
  margin-bottom: 1rem;
}
.includes__custom-cta { width: 100%; }
.includes__small {
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how { padding: 5rem 1.5rem; }
.how__inner { max-width: var(--max-w); margin: 0 auto; }
.how__inner .section-eyebrow, .how__inner .section-title { text-align: center; }
.how__inner .section-title { margin-bottom: 3rem; }
.how__steps {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .how__steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .how__steps { grid-template-columns: repeat(3, 1fr); } }

.how__step {
  background: hsl(var(--card));
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  transition: all var(--transition);
}
.how__step:hover { border-color: hsl(var(--primary) / 0.4); }
.how__step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
  font-weight: 800; font-size: 1rem;
  margin-bottom: 0.75rem;
}
.how__step-title {
  font-size: 1.0625rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.how__step-text {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* ===== VALUE ===== */
.value { padding: 5rem 1.5rem; text-align: center; }
.value__inner { max-width: 42rem; margin: 0 auto; }
.value__big {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.value__sub {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  text-wrap: pretty;
}

/* ===== GUARANTEE ===== */
.guarantee { padding: 4rem 1.5rem; }
.guarantee__inner {
  max-width: 36rem; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--card-2)) 100%);
  padding: 2.5rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--gold) / 0.3);
}
.guarantee__icon {
  color: hsl(var(--gold));
  margin-bottom: 1rem;
  display: inline-flex;
}
.guarantee__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.guarantee__sub {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.55;
}
.guarantee__small {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.85);
  line-height: 1.6;
}

/* ===== SHOWCASE — tablet 3D + carrusel infinito (Aceternity-style) ===== */
.showcase {
  padding: 4rem 0.5rem 1rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .showcase { padding: 4rem 1.5rem 1rem; } }
.showcase__intro {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.showcase__sub {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
  line-height: 1.6;
}

.scroll-tablet {
  /* Altura ALTA = más espacio de scroll. Padding 0 en mobile para que la tablet vaya edge-to-edge. */
  height: 60rem;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
@media (min-width: 768px) {
  .scroll-tablet { height: 80rem; padding: 3rem; }
}
.scroll-tablet__inner {
  width: 100%;
  padding: 2.5rem 0;
  position: relative;
  perspective: 500px;       /* perspective más baja = efecto 3D más exagerado */
  perspective-origin: center 30%;
}
@media (min-width: 768px) {
  .scroll-tablet__inner { padding: 10rem 0; perspective: 600px; }
}

.scroll-tablet__header {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem 2rem;
  will-change: transform;
  position: relative;
  z-index: 3;
}
.scroll-tablet__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: hsl(var(--foreground));
  margin: 0;
}
.scroll-tablet__title-big {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: clamp(2rem, 6.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.scroll-tablet__frame {
  max-width: 52rem;
  margin: 2rem auto 0;
  width: 100%;
  /* SIN height fijo — el screen interno define el alto via aspect-ratio
     matching exactly el ratio de las screenshots (2.205:1) */
  border: 4px solid #6C6C6C;
  background: #222222;
  border-radius: 24px;
  padding: 0.5rem;
  box-shadow:
    0 9px 20px rgba(0,0,0,0.29),
    0 37px 37px rgba(0,0,0,0.22),
    0 84px 50px rgba(0,0,0,0.12),
    0 149px 60px rgba(0,0,0,0.04);
  /* default ULTRA visible (65deg): si JS no corre, queda muy inclinado */
  transform: rotateX(65deg) scale(1.05);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .scroll-tablet__frame { padding: 1rem; margin-top: 2.5rem; }
}
.scroll-tablet__screen {
  width: 100%;
  /* aspect-ratio EXACTO al de las screenshots (medido: 2.205:1, todas las 7 entre 2.19 y 2.21).
     Esto hace que NO haya letterbox/corte — la imagen llena el screen perfecto. */
  aspect-ratio: 2.205 / 1;
  background: hsl(var(--background));
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Carrusel fullscreen — slideshow paso a paso (hold 4s + transición 1s entre slides) */
.carousel {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  container-type: inline-size;  /* habilita 100cqw en los slides */
}
.carousel__track {
  display: flex;
  gap: 0;
  height: 100%;
  width: max-content;
  align-items: stretch;
  padding: 0;
  /* 7 slides × 5s (4s hold + 1s transition) = 35s. ease-in-out para movimiento natural en cada paso. */
  animation: carousel-step 35s infinite;
}

.carousel__slide {
  flex-shrink: 0;
  width: 100cqw;   /* 100% del ancho del carrusel padre */
  height: 100%;
  position: relative;
  overflow: hidden;
}
/* Fallback para navegadores sin container queries (~5%): usa viewport width.
   Funciona aproximadamente porque la tablet ocupa ~85% del viewport en desktop. */
@supports not (width: 100cqw) {
  .carousel__slide { width: 100vw; max-width: 52rem; }
}
.carousel__img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* COVER: ahora que el aspect-ratio del screen (2.205:1) matchea exacto las screenshots,
     cover llena perfecto sin recortar nada visible. Logo arriba izq queda intacto. */
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  z-index: 2;
}
/* Ocultamos texto del placeholder — la imagen es la protagonista.
   Si una imagen no carga, queda solo el color de marca como background. */
.carousel__brand,
.carousel__type { display: none; }

.carousel__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.carousel__placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 60%),
    radial-gradient(circle at bottom left, rgba(0,0,0,0.25), transparent 60%);
  pointer-events: none;
}
.carousel__brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 1;
}
@media (min-width: 768px) { .carousel__brand { font-size: 2rem; } }
.carousel__type {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 1;
}
@media (min-width: 768px) { .carousel__type { font-size: 0.85rem; } }

/* Paletas matching cada marca real (placeholders mientras carga la imagen — si la imagen carga, la tapa con z-index: 2) */
.carousel__placeholder--chihuahuh { background: linear-gradient(135deg, #D97706 0%, #7C2D12 100%); }    /* Chihuahuh — naranja/marrón mexicano */
.carousel__placeholder--lujo      { background: linear-gradient(135deg, #1A1A1A 0%, #5A4A1F 100%); }    /* LH — negro + dorado luxury */
.carousel__placeholder--maryfuego { background: linear-gradient(135deg, #1A2840 0%, #0A1220 100%); }    /* Mar y Fuego — navy bistró */
.carousel__placeholder--okus      { background: linear-gradient(135deg, #2A1F12 0%, #8B5A2B 100%); }    /* Okus — oscuro + dorado peruano */
.carousel__placeholder--belarte   { background: linear-gradient(135deg, #C0382B 0%, #6F1A11 100%); }    /* Belarte — rojo café */
.carousel__placeholder--minera    { background: linear-gradient(135deg, #0B1E3C 0%, #1B4A7A 100%); }    /* Comercial Minera — azul industrial */
.carousel__placeholder--servih    { background: linear-gradient(135deg, #1E3A6F 0%, #4A6FB0 100%); }    /* Servihidráulicos — azul corporativo */
.carousel__placeholder--elite     { background: linear-gradient(135deg, #1A0033 0%, #4A0080 100%); }    /* Elite Store — neón DJ */

/* Slideshow paso a paso: 7 slides, cada uno se mantiene visible ~4s, transición de ~1s entre ellos.
   El 8º keyframe (100%) lleva al slide duplicado del 1º para loop seamless. */
@keyframes carousel-step {
  0%,     11.4%  { transform: translateX(0);     animation-timing-function: ease-in-out; }
  14.3%,  25.7%  { transform: translateX(-100cqw); animation-timing-function: ease-in-out; }
  28.6%,  39.9%  { transform: translateX(-200cqw); animation-timing-function: ease-in-out; }
  42.9%,  54.2%  { transform: translateX(-300cqw); animation-timing-function: ease-in-out; }
  57.1%,  68.5%  { transform: translateX(-400cqw); animation-timing-function: ease-in-out; }
  71.4%,  82.8%  { transform: translateX(-500cqw); animation-timing-function: ease-in-out; }
  85.7%,  97.1%  { transform: translateX(-600cqw); animation-timing-function: ease-in-out; }
  100%           { transform: translateX(-700cqw); }
}
/* Fallback para navegadores sin container queries: usa % en lugar de cqw */
@supports not (width: 100cqw) {
  @keyframes carousel-step {
    0%,     11.4%  { transform: translateX(0); }
    14.3%,  25.7%  { transform: translateX(-12.5%); }
    28.6%,  39.9%  { transform: translateX(-25%); }
    42.9%,  54.2%  { transform: translateX(-37.5%); }
    57.1%,  68.5%  { transform: translateX(-50%); }
    71.4%,  82.8%  { transform: translateX(-62.5%); }
    85.7%,  97.1%  { transform: translateX(-75%); }
    100%           { transform: translateX(-87.5%); }
  }
}

/* reduced-motion: solo deshabilitamos el carrusel automático.
   El scroll-driven effect del frame se mantiene (es controlado por el usuario). */
@media (prefers-reduced-motion: reduce) {
  .carousel__track { animation: none; }
}

/* ===== FAQ ===== */
.faq { padding: 5rem 1.5rem; background: hsl(var(--background) / 0.4); }
.faq__inner { max-width: 48rem; margin: 0 auto; }
.faq__inner .section-eyebrow, .faq__inner .section-title { text-align: center; }
.faq__inner .section-title { margin-bottom: 2.5rem; }

.faq__list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq__item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq__item[open] { border-color: hsl(var(--primary) / 0.4); }
.faq__q {
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: hsl(var(--foreground));
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: hsl(var(--primary));
  transition: transform var(--transition);
}
.faq__item[open] .faq__q::after { content: '−'; }
.faq__a {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}
.faq__a p { margin: 0 0 0.75rem; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.faq__a li {
  padding: 0.55rem 0.85rem;
  background: hsl(var(--card) / 0.4);
  border-left: 2px solid hsl(var(--primary) / 0.6);
  border-radius: 4px;
  color: hsl(var(--foreground) / 0.9);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}
.faq__a strong { color: hsl(var(--foreground)); font-weight: 600; font-style: normal; }

/* ===== CTA FINAL ===== */
.cta-final { padding: 5rem 1.5rem; text-align: center; }
.cta-final__inner {
  max-width: 42rem; margin: 0 auto;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--gold) / 0.06) 100%);
  padding: 3rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--primary) / 0.3);
}
.cta-final__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.cta-final__sub {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* ===== FOOTER (pro) ===== */
.ftr {
  position: relative;
  padding: 4rem 1.5rem 1.5rem;
  background:
    radial-gradient(ellipse at top, hsl(var(--primary) / 0.04) 0%, transparent 60%),
    hsl(var(--background));
}
.ftr__divider {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 3rem, var(--max-w)); height: 1px;
  background: linear-gradient(90deg, transparent 0%, hsl(var(--border)) 30%, hsl(var(--border)) 70%, transparent 100%);
}
.ftr__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) { .ftr__inner { grid-template-columns: 1.4fr 2fr; gap: 3rem; align-items: start; } }
@media (min-width: 1024px) { .ftr__inner { grid-template-columns: 1.6fr 2fr; } }

/* Brand block */
.ftr__brand { display: flex; flex-direction: column; gap: 1rem; }
.ftr__logo-link {
  display: inline-flex; align-items: center;
  width: fit-content;
  opacity: 0.95;
  transition: opacity var(--transition);
}
.ftr__logo-link:hover { opacity: 1; }
.ftr__logo {
  display: block;
  height: 24px; width: auto;
  filter: brightness(1.05);
}
.ftr__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
  margin: 0;
}
.ftr__contact {
  display: flex; flex-direction: column; gap: 0.55rem;
  margin-top: 0.5rem;
}
.ftr__contact-item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color var(--transition);
  width: fit-content;
}
.ftr__contact-item:hover { color: hsl(var(--foreground)); }
.ftr__icon {
  flex-shrink: 0;
  color: hsl(var(--muted-foreground) / 0.7);
  transition: color var(--transition);
}
.ftr__contact-item:hover .ftr__icon { color: hsl(var(--primary)); }

/* Nav columns */
.ftr__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 540px) { .ftr__nav { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
.ftr__col { display: flex; flex-direction: column; gap: 0.65rem; }
.ftr__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin: 0 0 0.35rem;
  opacity: 0.95;
}
.ftr__col a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color var(--transition);
  width: fit-content;
}
.ftr__col a:hover { color: hsl(var(--foreground)); }

/* Social buttons (Instagram + WhatsApp + Email) */
.ftr__social {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.25rem;
}
.ftr__social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  transition: all var(--transition);
}
.ftr__social-btn:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsl(var(--primary) / 0.25);
}

/* Bottom legal bar */
.ftr__bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
@media (min-width: 720px) {
  .ftr__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.ftr__legal, .ftr__made {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.75);
  margin: 0;
}
.ftr__made { letter-spacing: 0.01em; }

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid hsl(var(--border));
  display: none;
}
@media (max-width: 720px) { .sticky-cta { display: block; } }
.sticky-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9375rem;
}
.sticky-cta__sep { opacity: 0.6; }

/* Mobile padding bottom para que sticky no tape contenido */
@media (max-width: 720px) {
  body { padding-bottom: 5rem; }
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 6rem; right: 1rem; z-index: 30;
  width: 3.25rem; height: 3.25rem;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}
.wa-float:hover { transform: scale(1.08); opacity: 1; }
@media (min-width: 720px) {
  .wa-float { bottom: 1.5rem; right: 1.5rem; width: 3.5rem; height: 3.5rem; }
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%);
  z-index: 100;
  padding: 0.875rem 1.25rem;
  background: hsl(var(--card-2));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  box-shadow: 0 8px 32px hsl(var(--background) / 0.6);
  max-width: 90vw;
}
.toast.toast--error { border-color: #ef4444; color: #fca5a5; }
@media (min-width: 720px) { .toast { bottom: 2rem; } }

/* ===== ACCESSIBILITY ===== */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ============================================================
   PSICOLOGÍA DE VENTA — anchoring, urgency, scarcity, reciprocity
   ============================================================ */

/* Precio tachado pequeño (para care cards y otros) */
.price-strike-small {
  display: block;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground) / 0.7);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: hsl(0 70% 55% / 0.85);
  margin-bottom: 0.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Precio tachado grande con label "precio regular" (launch card) — bloque centrado ENCIMA del precio principal */
.launch__price-anchor {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  width: 100%;
}
.price-strike {
  font-size: 1.5rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: hsl(0 75% 55% / 0.9);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.price-anchor-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground) / 0.75);
  font-weight: 600;
}

/* Savings line debajo del precio principal */
.launch__savings {
  font-size: 0.875rem;
  color: hsl(var(--gold));
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.launch__savings::before {
  content: '💰';
  font-size: 1rem;
}

/* Urgency pill (banner sutil arriba del hero eyebrow) */
.urgency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  background: linear-gradient(135deg, hsl(15 90% 55% / 0.15), hsl(35 95% 55% / 0.12));
  border: 1px solid hsl(15 90% 55% / 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(20 95% 70%);
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: urgency-fade-in 0.6s ease-out 0.5s both;
}
.urgency-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: hsl(15 95% 60%);
  box-shadow: 0 0 8px hsl(15 95% 60% / 0.8);
  animation: urgency-blink 1.5s ease-in-out infinite;
}
@keyframes urgency-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes urgency-blink {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* Scarcity badge (en pricing) */
.scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(var(--gold) / 0.1);
  border: 1px solid hsl(var(--gold) / 0.35);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--gold));
  letter-spacing: 0.01em;
  margin-top: 1rem;
}
.scarcity-badge__icon {
  font-size: 1rem;
  display: inline-block;
  animation: scarcity-bounce 2s ease-in-out infinite;
}
@keyframes scarcity-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Bonus block — reciprocity bonus list */
.bonus-block {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem;
  background: linear-gradient(135deg, hsl(var(--gold) / 0.08), hsl(var(--primary) / 0.05));
  border: 1px solid hsl(var(--gold) / 0.25);
  border-radius: var(--radius);
}
.bonus-block__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.bonus-block__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bonus-block__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.9);
  padding: 0.3rem 0;
  border-bottom: 1px dashed hsl(var(--border) / 0.5);
}
.bonus-block__list li:last-child { border-bottom: none; }
.bonus-block__list li::before {
  content: '✓';
  color: hsl(var(--gold));
  font-weight: 800;
  margin-right: 0.4rem;
}
.bonus-block__list span:first-of-type { flex: 1; }
.bonus-strike {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground) / 0.7);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: hsl(0 70% 55% / 0.7);
  font-weight: 600;
  white-space: nowrap;
}
.bonus-block__sum {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}
.bonus-block__sum strong {
  color: hsl(var(--gold));
  font-weight: 800;
}
