/* ============================================================
   UBBLY — Sitio web público
   Marca de la app (assets/css/ubbly.css): negro, morado y lima, Poppins.
   Acento editorial: etiquetas en monoespaciada, como una guía de envío.
   ============================================================ */

:root {
  --ink:        #0B0B0F;
  --ink-2:      #15151C;
  --ink-line:   rgba(255, 255, 255, 0.12);
  --paper:      #F3F1EC;
  --paper-2:    #E9E6DF;
  --paper-line: rgba(11, 11, 15, 0.14);
  --white:      #FFFFFF;
  --mute:       #A2A2B0;
  --mute-dark:  #5E5E6A;

  --lime:       #A3FF00;
  --purple:     #6D3FD8;
  --purple-2:   #5A2FC2;
  --purple-ink: #2A1260;
  --error:      #D93636;

  --container:  1200px;
  --gutter:     clamp(16px, 4vw, 40px);
  --section-y:  clamp(72px, 11vw, 140px);
  --radius:     6px;
  --radius-lg:  14px;

  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.paper { background: var(--paper); color: var(--ink); }

/* --- Piezas tipográficas --- */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.paper .tag { color: var(--mute-dark); }
.tag b { color: var(--lime); font-weight: 500; }
.paper .tag b { color: var(--purple); }

.display {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--mute); max-width: 56ch; }
.paper .lead { color: var(--mute-dark); }

/* Resaltador: la palabra clave sobre un bloque de color */
.mark {
  /* Banda que no sube hasta la línea de arriba (el h1 tiene interlineado apretado) */
  background: linear-gradient(transparent 14%, var(--lime) 14%, var(--lime) 96%, transparent 96%);
  color: var(--ink);
  padding: 0 0.1em;
  margin: 0 -0.03em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--white); }
.btn-line { border-color: var(--ink-line); color: var(--white); }
.btn-line:hover { border-color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--purple); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo img { height: 28px; width: auto; }
.menu { display: flex; align-items: center; gap: 40px; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.9rem; color: var(--mute); transition: color .2s; }
.nav a:hover { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 22px; }
.link-in { font-size: 0.9rem; font-weight: 600; }
.link-in:hover { color: var(--lime); }
.header-cta .btn { min-height: 42px; padding: 8px 20px; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--white); position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }
.header.open .menu-toggle span { background: transparent; }
.header.open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.header.open .menu-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
/* La primera pantalla cabe completa: el titular y los márgenes se ajustan a la altura (vh) */
.hero {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vh, 56px) 0 clamp(18px, 3vh, 36px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "copy media" "proof proof";
  gap: clamp(18px, 3vh, 36px) clamp(32px, 4.5vw, 64px);
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; justify-content: center; }
.hero h1 {
  font-size: clamp(2.2rem, min(4.6vw, 7.6vh), 3.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: clamp(8px, 1.6vh, 16px) 0 clamp(10px, 2vh, 18px);
}
.hero .lead { font-size: clamp(1rem, 1.3vw, 1.08rem); max-width: 56ch; }
.hero .lead strong { color: var(--white); font-weight: 600; }

.hero-benefits { display: grid; gap: 6px; margin-top: clamp(12px, 2.2vh, 20px); }
.hero-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.4; color: #D6D6DE; }
.hero-benefits li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero-benefits b { color: var(--white); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 2.8vh, 26px); }
.hero-alt { margin-top: 12px; font-size: 0.88rem; color: var(--mute); }
.hero-alt a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink-line); text-underline-offset: 3px; }
.hero-alt a:hover { color: var(--lime); text-decoration-color: currentColor; }

/* La foto mide lo mismo que el texto de al lado: no empuja nada fuera de la pantalla */
.hero-media { grid-area: media; position: relative; min-height: 340px; }
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

/* Franja de confianza: marcas, resultados y respaldo */
.hero-proof {
  grid-area: proof;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: clamp(14px, 2.4vh, 22px);
  border-top: 1px solid var(--ink-line);
}
.proof-group { display: flex; align-items: center; gap: 12px; }
.proof-t { font-family: var(--mono); font-size: 0.68rem; line-height: 1.35; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); max-width: 15ch; }
.proof-marcas:hover .proof-t { color: var(--white); }
.proof-logos { display: flex; gap: 6px; }
.proof-logos img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--white); }
.proof-stats { display: flex; gap: clamp(16px, 2.5vw, 30px); }
.proof-stats strong { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--lime); }
.proof-stats span { font-size: 0.74rem; color: var(--mute); }
.proof-respaldo img { height: 22px; width: auto; opacity: 0.85; }

/* En escritorio la etiqueta es más compacta y va abajo: no tapa el aviso de la foto */
@media (min-width: 901px) {
  .hero .label { width: min(220px, 52%); bottom: 16px; padding: 12px 14px 10px; }
  .hero .label-rows { gap: 6px 10px; padding: 8px 0; }
  .hero .label-rows strong { font-size: 1.1rem; }
  .hero .label-bar { height: 18px; }
}

/* Etiqueta de envío superpuesta a la foto */
.label {
  position: absolute;
  left: clamp(-36px, -3vw, -16px);
  bottom: 28px;
  width: min(270px, 78%);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  font-family: var(--mono);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  transform: rotate(-2deg);
}
.label-head { display: flex; justify-content: space-between; font-size: 0.66rem; letter-spacing: 0.08em; color: var(--mute-dark); text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px dashed var(--paper-line); }
.label-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px 0; }
.label-rows strong { display: block; font-family: var(--font); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.label-rows span { font-size: 0.64rem; color: var(--mute-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.label-bar {
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
  opacity: 0.85;
}

/* ============================================================
   Casos de clientes
   ============================================================ */
.cases { padding-top: 0; overflow-x: clip; }
.cases-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-line);
}
.cases-head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; }

/* --- Carrusel --- */
/* De borde a borde de la pantalla, para que se asomen las tarjetas vecinas */
.carousel { --card: min(440px, 80vw); position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding-top: 36px; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* Relleno lateral para que incluso la primera y la última tarjeta puedan quedar centradas */
  padding: 8px max(0px, calc(50% - var(--card) / 2)) 28px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; border-radius: var(--radius-lg); }

.case {
  position: relative;
  flex: 0 0 var(--card);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 30px 32px;
  min-height: 400px;
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(163, 255, 0, 0.10), transparent 60%),
    linear-gradient(160deg, var(--ink-2), #101016);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.js .case:not(.is-active) { opacity: 0.5; transform: scale(0.95); }
.case.is-active {
  border-color: rgba(163, 255, 0, 0.45);
  box-shadow: 0 24px 60px -24px rgba(163, 255, 0, 0.28), 0 0 0 1px rgba(163, 255, 0, 0.08);
}
.case-num {
  position: absolute;
  right: 22px; top: 6px;
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.case-brand { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.case-brand img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--white); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.case-brand h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.25; }
.case-brand p { font-size: 0.84rem; color: var(--mute); line-height: 1.4; }
.case-metric { display: flex; flex-direction: column; margin-top: auto; padding-top: 12px; }
.case-metric strong { font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--lime); }
.case-metric span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.case-text { font-size: 0.95rem; color: #D6D6DE; padding-top: 18px; border-top: 1px solid var(--ink-line); }

/* Los controles se alinean con el contenido de la página */
.carousel-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  transition: width .35s var(--ease), background .35s var(--ease);
}
.carousel-dots button { position: relative; }
.carousel-dots button::after { content: ""; position: absolute; inset: -17px -5px; }
.carousel-dots button.on { width: 34px; background: var(--lime); }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line); background: transparent; color: var(--white);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.carousel-btn:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.carousel-btn:active { transform: scale(0.92); }
.carousel-btn:focus-visible, .carousel-dots button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .case { transition: none; }
  .js .case:not(.is-active) { transform: none; }
}

/* ============================================================
   Cómo lo hacemos
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.how-intro { position: sticky; top: 108px; }
.how-intro .display { margin: 18px 0 22px; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }

.steps { counter-reset: paso; }
.step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--paper-line);
}
.step:last-child { border-bottom: 1px solid var(--paper-line); }
.step-num {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--purple);
}
.step:last-child .step-num { color: var(--purple); -webkit-text-stroke: 0; }
.step h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.step p { color: var(--mute-dark); margin-top: 8px; max-width: 48ch; }

/* ============================================================
   Franja de mensaje
   ============================================================ */
.statement { background: var(--lime); color: var(--ink); padding: clamp(56px, 9vw, 104px) 0; }
.statement p {
  font-size: clamp(2rem, 6.4vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}
.statement p span { display: block; }
.statement p .alt { color: var(--purple); }

/* ============================================================
   Micro bodegas
   ============================================================ */
.micro-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.micro-head .display { margin-top: 18px; }
.micro-head .lead b { color: var(--white); font-weight: 600; }

/* La fórmula 1.000 / 20 / 1 × 3 convertida en tabla de datos */
.formula {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.formula li {
  position: relative;
  padding: 28px 24px 26px;
  border-left: 1px solid var(--ink-line);
}
.formula li:first-child { border-left: 0; padding-left: 0; }
.formula strong {
  display: block;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.formula strong small { font-size: 0.42em; letter-spacing: -0.02em; margin-left: 2px; }
.formula span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.formula li::after {
  content: attr(data-op);
  position: absolute;
  top: 26px;
  right: 14px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--lime);
}
.micro-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}
.micro-foot p { color: var(--mute); max-width: 60ch; }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: clamp(64px, 9vw, 112px);
}
.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 26px 0;
  border-top: 1px solid var(--ink-line);
}
.feature-key { font-family: var(--mono); font-size: 0.8rem; color: var(--lime); padding-top: 4px; }
.feature h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.feature p { grid-column: 2; color: var(--mute); font-size: 0.95rem; }

/* ============================================================
   Un modelo validado
   ============================================================ */
.validated-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.validated .display { margin: 18px 0 14px; }
/* Los logos son blancos/claros: van sobre bloques oscuros */
.backers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.backer { display: grid; place-items: center; min-height: 180px; padding: 32px; background: var(--ink); border-radius: var(--radius-lg); }
.backer img { max-height: 60px; width: auto; object-fit: contain; }

/* ============================================================
   Registro
   ============================================================ */
.signup { background: var(--purple); }
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.signup .tag { color: rgba(255, 255, 255, 0.72); }
.signup .tag b { color: var(--lime); }
.signup .display { margin: 18px 0 20px; }
.signup .lead { color: rgba(255, 255, 255, 0.82); }
.next { margin-top: 40px; counter-reset: next; }
.next li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.next li::before {
  counter-increment: next;
  content: counter(next, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lime);
  padding-top: 3px;
}
.next strong { display: block; font-weight: 600; }
.next span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -32px rgba(20, 6, 60, 0.6);
}
.form-card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.form-card > p { color: var(--mute-dark); font-size: 0.92rem; margin: 4px 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.input {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1.5px solid #D9D6E0;
  border-radius: 10px;
  background: #FBFAFD;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus-within { border-color: var(--purple); background: var(--white); box-shadow: 0 0 0 4px rgba(109, 63, 216, 0.14); }
.input input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1rem; /* 16px: evita el zoom automático de iOS al enfocar */
  color: var(--ink);
}
.input input::placeholder { color: #A5A3AE; }
.prefix { padding-left: 16px; font-weight: 600; color: var(--mute-dark); border-right: 1px solid #E3E0EA; padding-right: 12px; }
.field-error { display: none; margin-top: 6px; font-size: 0.82rem; color: var(--error); }
.field.invalid .input { border-color: var(--error); }
.field.invalid .field-error { display: block; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: #FDECEC; color: #9B1C1C; font-size: 0.9rem; }
.form-error.show { display: block; }
.form-card .btn { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.privacy { margin-top: 14px; font-size: 0.78rem; color: var(--mute-dark); text-align: center; }

.success { text-align: center; padding: 24px 4px; }
.success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
}
.success-icon svg { width: 30px; height: 30px; }
.success h3 { font-size: 1.5rem; }
.success p { color: var(--mute-dark); margin-top: 10px; }
.success p strong { color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 56px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--ink-line); }
.footer-word img { height: clamp(48px, 9vw, 96px); width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.9rem; color: var(--mute); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; font-family: var(--mono); font-size: 0.72rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   Ubbly Bot (web/js/bot.js) — el personaje es el mismo de la app
   (assets/ubbly_bot.php); sus animaciones vienen de assets/css/ubbly.css
   ============================================================ */
.ub-bot { display: block; flex-shrink: 0; animation: ub-flota 3.2s ease-in-out infinite; }
.ub-bot-ojo { transform-box: fill-box; transform-origin: center; animation: ub-parpadeo 4.5s infinite; }
.ub-bot-wave { transform-box: fill-box; transform-origin: 20% 90%; animation: ub-saluda 1.5s ease-in-out infinite; }
@keyframes ub-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ub-parpadeo { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes ub-saluda { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }

.wbot { position: fixed; right: 24px; bottom: 24px; z-index: 80; font-family: var(--font); }

.wbot-fab {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 50%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--purple);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 32px -10px rgba(42, 18, 96, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  transition: transform .25s var(--ease);
}
.wbot-fab:hover { transform: translateY(-3px); }
.wbot-fab:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.wbot-fab .ub-bot { width: 58px; height: 58px; margin-bottom: -5px; }
.wbot-abierto .wbot-fab { background: var(--ink); box-shadow: 0 0 0 2px var(--purple), 0 14px 32px -10px rgba(0, 0, 0, 0.6); }

/* Globito de invitación */
.wbot-aviso {
  position: absolute;
  right: 0; bottom: 82px;
  display: flex; align-items: flex-start;
  width: max-content; max-width: 250px;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45);
  animation: wbot-entra .35s var(--ease);
}
.wbot-aviso[hidden] { display: none; }
.wbot-aviso-abrir { background: none; border: 0; cursor: pointer; text-align: left; padding: 12px 4px 12px 16px; font-weight: 600; font-size: 0.92rem; line-height: 1.35; color: var(--ink); }
.wbot-aviso-abrir span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--mute-dark); }
.wbot-aviso-x { background: none; border: 0; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--mute-dark); padding: 10px 12px 10px 6px; }
.wbot-aviso-x:hover { color: var(--ink); }

/* Panel de la conversación */
.wbot-panel {
  position: absolute;
  right: 0; bottom: 84px;
  width: 370px;
  height: min(540px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: wbot-entra .25s var(--ease);
}
.wbot-panel[hidden] { display: none; }
@keyframes wbot-entra { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.wbot-cab { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: var(--white); }
.wbot-av { width: 44px; height: 44px; border-radius: 50%; background: var(--purple); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; flex-shrink: 0; }
.wbot-av .ub-bot { animation: none; width: 42px; height: 42px; margin-bottom: -4px; }
.wbot-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wbot-tit b { font-size: 0.98rem; font-weight: 600; }
.wbot-tit small { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--mute); }
.wbot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.wbot-cerrar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink-line); background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.wbot-cerrar:hover { border-color: var(--white); }

.wbot-msgs { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.wbot-msg { display: flex; }
.wbot-user { justify-content: flex-end; }
.wbot-burb { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; word-break: break-word; }
.wbot-bot .wbot-burb { background: var(--white); border-bottom-left-radius: 4px; box-shadow: 0 1px 0 rgba(11, 11, 15, 0.06); }
.wbot-bot .wbot-burb strong { color: var(--purple); font-weight: 600; }
.wbot-burb:has(.wbot-ops) { max-width: 100%; width: 100%; }
.wbot-user .wbot-burb { background: var(--purple); color: var(--white); border-bottom-right-radius: 4px; }

.wbot-escribiendo { display: inline-flex; gap: 4px; padding: 14px 16px; }
.wbot-escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute-dark); opacity: .4; animation: wbot-punto 1s infinite; }
.wbot-escribiendo i:nth-child(2) { animation-delay: .15s; }
.wbot-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes wbot-punto { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.wbot-ops { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wbot-op {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--paper-2);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.wbot-op:hover { border-color: var(--purple); background: var(--white); }
.wbot-op:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.wbot-op-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--white); }
.wbot-op-ic svg { width: 19px; height: 19px; }
.wbot-op-wa .wbot-op-ic { background: #25D366; }
.wbot-op-cal .wbot-op-ic { background: var(--purple); }
.wbot-op-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wbot-op-txt strong { font-size: 0.88rem; font-weight: 600; color: var(--ink) !important; }
.wbot-op-txt small { font-size: 0.75rem; color: var(--mute-dark); }
.wbot-op-flecha { color: var(--mute-dark); transition: transform .2s var(--ease); }
.wbot-op:hover .wbot-op-flecha { transform: translateX(3px); color: var(--purple); }

.wbot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--paper-line); background: var(--white); }
.wbot-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--paper-2); background: var(--paper); font-size: 16px; color: var(--ink); outline: none; }
.wbot-form input:focus { border-color: var(--purple); background: var(--white); }
.wbot-form button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.wbot-form button:hover { background: var(--purple); color: var(--white); }

@media (max-width: 600px) {
  .wbot { right: 14px; bottom: 14px; }
  .wbot-fab { width: 60px; height: 60px; }
  .wbot-fab .ub-bot { width: 52px; height: 52px; }
  .wbot-aviso { bottom: 72px; }
  /* En celular el panel ocupa casi toda la pantalla, por encima del botón */
  .wbot-panel { position: fixed; left: 10px; right: 10px; bottom: 84px; width: auto; height: min(560px, calc(100dvh - 100px)); }
}
@media (prefers-reduced-motion: reduce) {
  .ub-bot, .ub-bot-ojo, .ub-bot-wave, .wbot-panel, .wbot-aviso, .wbot-escribiendo i { animation: none; }
}

/* ============================================================
   Aparición al hacer scroll (solo con JS y sin reduced-motion)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; }
  .header.open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    position: absolute;
    top: 68px; left: 0; right: 0;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 4px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
  }
  .header.open .nav { flex-direction: column; gap: 0; }
  .header.open .nav a { padding: 16px 0; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; color: var(--white); }
  .header.open .header-cta { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .header.open .header-cta .btn { min-height: 50px; }
  .header.open .link-in { text-align: center; padding: 12px; border: 1px solid var(--ink-line); border-radius: 999px; }

  .hero-grid,
  .how-grid,
  .micro-head,
  .validated-grid,
  .signup-grid { grid-template-columns: minmax(0, 1fr); }

  .hero { min-height: 0; }
  .hero-grid { grid-template-areas: "copy" "proof" "media"; }
  .hero-media { max-width: 560px; min-height: 0; }
  .hero-photo { position: relative; aspect-ratio: 5 / 4; }
  .hero-photo img { object-position: 70% 35%; }
  /* La etiqueta sale de la foto y queda debajo, montada solo en el borde */
  .label { position: relative; left: auto; bottom: auto; margin: -44px 12px 0 auto; }

  .how-intro { position: static; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .formula { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formula li:nth-child(3) { border-left: 0; padding-left: 0; }
  .formula li:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .formula li:nth-child(2)::after { display: none; }
}

@media (max-width: 600px) {
  .hero h1 { letter-spacing: -0.04em; font-size: 2.15rem; }
  /* En celular los botones van justo después del texto; los beneficios debajo */
  .hero-actions { order: 1; }
  .hero-alt { order: 2; }
  .hero-benefits { order: 3; margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { justify-content: flex-start; gap: 16px 24px; }
  .proof-stats { width: 100%; justify-content: space-between; }
  .label { width: min(240px, 72%); padding: 12px 14px 10px; }
  .label-rows strong { font-size: 1.15rem; }

  .footer-links { gap: 0 24px; }
  .footer-links a { display: inline-block; padding: 10px 0; }

  .cases-head { flex-direction: column; gap: 4px; }
  .carousel-track { gap: 12px; }
  .case { min-height: 360px; padding: 24px 22px 26px; gap: 18px; }
  .case-num { display: none; }
  .carousel-nav { display: none; }
  .carousel-ui { justify-content: center; }

  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0 26px; }
  .step-num { font-size: 2.6rem; }

  .formula li { padding: 22px 12px 20px 16px; }
  .formula li:nth-child(odd) { padding-left: 0; }
  .formula li::after { top: 20px; right: 10px; }
  .micro-foot .btn { width: 100%; }

  .backers { grid-template-columns: minmax(0, 1fr); }
  .backer { min-height: 120px; padding: 24px; }
  .backer img { max-height: 50px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
}
