/* ============================================================
   YaironBot — styles.css
   Sistema: "IA para atender (verde) · Personas para decidir (ámbar)"
   Tipografías: Bricolage Grotesque (display) · Instrument Sans (texto)
                JetBrains Mono (labels/eyebrows)
   Mobile-first, sin dependencias, sin build.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #f5f9f6;
  --surface: #ffffff;
  --surface-2: #ecf4ee;
  --ink: #10221a;
  --ink-soft: #33473d;
  --muted: #5c6e64;
  --line: #dbe6de;
  --line-strong: #c2d4c8;

  --green: #0e7a4a;
  --green-deep: #0a5c38;
  --green-ink: #0b4f31;
  --green-bright: #25d366;
  --tint: #e2f3e8;
  --tint-border: #c4e5d0;

  --amber: #b45309;
  --amber-bg: #fdf3e1;
  --amber-border: #f3dcb6;

  --dark: #0c1712;
  --dark-2: #12241b;
  --dark-line: rgba(255, 255, 255, 0.09);
  --dark-text: #e8f2ea;
  --dark-muted: #9db8a8;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 34, 26, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 34, 26, 0.05), 0 10px 28px -14px rgba(16, 34, 26, 0.16);
  --shadow-lg: 0 2px 4px rgba(16, 34, 26, 0.06), 0 24px 56px -24px rgba(16, 34, 26, 0.28);

  --wrap: 1140px;
  --header-h: 72px;
}

/* ---------- 2. Reset y base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html,
body {
  overflow-x: clip;
}

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

a {
  color: var(--green-ink);
  text-decoration: none;
}

p a,
li a {
  text-decoration: underline;
  text-decoration-color: var(--tint-border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}

p a:hover,
li a:hover {
  text-decoration-color: var(--green);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6.4vw, 3.9rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--green-bright);
  color: var(--dark);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 3. Utilidades ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(3.4rem, 8vw, 6rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px var(--tint);
  flex: none;
}

.lead {
  font-size: clamp(1.06rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 4. Botones ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 92, 56, 0.35), 0 8px 20px -8px rgba(14, 122, 74, 0.55);
}

.button.primary:hover {
  background: var(--green-deep);
  box-shadow: 0 1px 2px rgba(10, 92, 56, 0.35), 0 10px 26px -8px rgba(14, 122, 74, 0.65);
  transform: translateY(-1px);
}

.button.primary::after {
  content: "→";
  font-family: var(--font-body);
  transition: transform 0.16s ease;
}

.button.primary:hover::after {
  transform: translateX(3px);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 34, 26, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.navlinks {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 0.93rem;
  font-weight: 500;
}

.navlinks a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.navlinks a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.navlinks a[aria-current="page"] {
  color: var(--green-ink);
  font-weight: 600;
}

.navlinks a.nav-cta {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 9px 18px;
  margin-inline: 4px;
}

.navlinks a.nav-cta:hover {
  background: var(--green-deep);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 20px 18px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 6px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--surface-2);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

@media (min-width: 880px) {
  .navlinks {
    display: inline-flex;
  }
  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative;
  display: grid;
  gap: clamp(2.2rem, 5vw, 3.4rem);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.6rem, 6vw, 4.5rem);
}

.hero-bg {
  position: absolute;
  top: calc(-1 * var(--header-h));
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(56rem 30rem at 82% -12%, rgba(37, 211, 102, 0.14), transparent 62%),
    radial-gradient(44rem 26rem at -8% 22%, rgba(14, 122, 74, 0.1), transparent 60%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 34, 26, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 34, 26, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60rem 34rem at 60% 0%, black 20%, transparent 72%);
  mask-image: radial-gradient(60rem 34rem at 60% 0%, black 20%, transparent 72%);
}

.always-on {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 26px;
  padding: 16px 20px 16px 56px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--tint-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
}

.always-on strong {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.always-on span {
  color: var(--muted);
  font-size: 0.94rem;
}

.always-on::before {
  content: "24h";
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green-ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  border: 1px solid var(--tint-border);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
  }
}

/* ---------- 7. Chat (estilo WhatsApp) ---------- */
.chat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.chat-person strong {
  display: block;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.chat-person small {
  display: block;
  font-size: 0.76rem;
  opacity: 0.85;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.chat {
  --bubble-in: #ffffff;
  --bubble-out: #dcf5e3;
  height: 380px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  background-color: #eaf1ea;
  background-image: radial-gradient(rgba(16, 34, 26, 0.055) 1px, transparent 1.4px);
  background-size: 18px 18px;
}

.message {
  max-width: 86%;
  animation: msg-in 0.42s cubic-bezier(0.21, 1.02, 0.55, 1) both;
}

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

.message.leaving {
  animation: msg-out 0.5s ease both;
}

@keyframes msg-out {
  to {
    opacity: 0;
    transform: translateY(-14px);
    max-height: 0;
    margin-top: -10px;
  }
}

.message .meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 3px;
  padding-inline: 6px;
}

.message .meta .role {
  font-weight: 600;
  color: var(--ink-soft);
}

.message .meta .role.human {
  color: var(--amber);
}

.message .bubble {
  position: relative;
  padding: 9px 13px;
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: 14px;
  box-shadow: 0 1px 1px rgba(16, 34, 26, 0.08);
  background: var(--bubble-in);
}

.message.customer {
  align-self: flex-start;
}

.message.customer .bubble {
  border-top-left-radius: 4px;
}

.message.bot,
.message.human {
  align-self: flex-end;
}

.message.bot .meta,
.message.human .meta {
  justify-content: flex-end;
}

.message.bot .bubble {
  background: var(--bubble-out);
  border-top-right-radius: 4px;
}

.message.human .bubble {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-top-right-radius: 4px;
}

.handoff {
  align-self: center;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 94%;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  animation: msg-in 0.42s ease both;
}

.handoff strong {
  color: inherit;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.choice-row button {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--green);
  color: var(--green-ink);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.choice-row button:hover:not(:disabled) {
  background: var(--tint);
  transform: translateY(-1px);
}

.choice-row button.selected {
  background: var(--green);
  color: #fff;
}

.choice-row button:disabled:not(.selected) {
  opacity: 0.45;
  cursor: default;
}

.tone-note {
  margin-top: 9px;
  padding: 7px 10px;
  border-left: 3px solid var(--green);
  background: rgba(14, 122, 74, 0.07);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green-ink);
}

.typing .bubble {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 12px 15px;
}

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

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

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

@keyframes typing-dot {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Chat sobre fondo oscuro */
.on-dark .chat-card {
  border-color: var(--dark-line);
  background: var(--dark-2);
}

.on-dark .chat {
  background-color: #0f1d16;
  background-image: radial-gradient(rgba(232, 242, 234, 0.06) 1px, transparent 1.4px);
  --bubble-in: #1c2f25;
}

.on-dark .message .bubble {
  color: var(--dark-text);
  box-shadow: none;
}

.on-dark .message.bot .bubble {
  background: #14432c;
}

.on-dark .message.human .bubble {
  background: #3a2a12;
  border-color: #57401e;
}

.on-dark .message .meta {
  color: var(--dark-muted);
}

.on-dark .message .meta .role {
  color: var(--dark-text);
}

.on-dark .message .meta .role.human {
  color: #eab308;
}

.on-dark .handoff {
  background: #3a2a12;
  border-color: #57401e;
  color: #f0c36c;
}

.on-dark .choice-row button {
  background: transparent;
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.on-dark .choice-row button:hover:not(:disabled) {
  background: rgba(37, 211, 102, 0.12);
}

.on-dark .choice-row button.selected {
  background: var(--green-bright);
  color: var(--dark);
}

.on-dark .tone-note {
  background: rgba(37, 211, 102, 0.1);
  border-color: var(--green-bright);
  color: #a7e8c3;
}

.on-dark .typing .bubble i {
  background: var(--dark-muted);
}

/* ---------- 8. Cards ---------- */
.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tint-border);
}

.card .card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--green-ink);
  border: 1px solid var(--tint-border);
}

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

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- 9. Pasos ---------- */
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.step {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 14px;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-bright), var(--green));
  border-radius: 0 3px 3px 0;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

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

/* ---------- 10. Banda CTA ---------- */
.cta-band {
  position: relative;
  display: grid;
  gap: 22px;
  margin-block: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.6rem, 4vw, 3.2rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(38rem 22rem at 88% -30%, rgba(37, 211, 102, 0.22), transparent 60%),
    linear-gradient(140deg, var(--dark-2), var(--dark));
  color: var(--dark-text);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--dark-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dark-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(42rem 24rem at 80% 0%, black, transparent 70%);
  mask-image: radial-gradient(42rem 24rem at 80% 0%, black, transparent 70%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--dark-muted);
  margin: 0;
  max-width: 46ch;
}

.cta-band .actions {
  margin-top: 0;
  align-self: center;
}

.cta-band .button.secondary {
  background: transparent;
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.cta-band .button.secondary:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

@media (min-width: 880px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- 11. Contacto / split ---------- */
.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin-bottom: 14px;
}

.list {
  display: grid;
  gap: 10px;
}

.list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.8L12 5.6' fill='none' stroke='%230b4f31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid var(--tint-border);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

.foot a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.foot a:hover {
  color: var(--green-ink);
  text-decoration-color: var(--green);
}

@media (min-width: 720px) {
  .foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- 13. Hero de página interior ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.4rem, 3vw, 2.4rem);
  max-width: 820px;
}

.page-hero .lead {
  max-width: 60ch;
}

/* ---------- 14. Bandas de feature ---------- */
.feature-band {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
}

@media (min-width: 960px) {
  .feature-band {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.band-dark {
  background:
    radial-gradient(52rem 30rem at 12% -20%, rgba(37, 211, 102, 0.13), transparent 60%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: var(--dark-text);
}

.band-dark h2 {
  color: #fff;
}

.band-dark .section-head > p,
.band-dark > .wrap p {
  color: var(--dark-muted);
}

.band-dark .eyebrow {
  color: var(--green-bright);
}

.band-dark .eyebrow::before {
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.band-dark .list li {
  color: var(--dark-muted);
}

.band-dark .list li strong {
  color: var(--dark-text);
}

.band-dark .list li::before {
  background-color: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.8L12 5.6' fill='none' stroke='%2325d366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- 15. Carrusel de demos (producto) ---------- */
.overline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 14px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.demo-tabs button {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.demo-tabs button:hover {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.25);
}

.demo-tabs button.active {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: var(--dark);
}

.demo-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}

.demo-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0.25, 1);
}

.demo-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.booking-stage {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .booking-stage {
    grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.75fr);
    align-items: stretch;
  }
}

.bot-monitor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-status {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-md);
  padding: 16px;
  display: grid;
  gap: 4px;
  transition: border-color 0.3s ease;
}

.bot-status strong {
  color: var(--dark-text);
  font-size: 0.95rem;
}

.bot-status small {
  color: var(--dark-muted);
  font-size: 0.8rem;
}

.status-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  margin-bottom: 6px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(37, 211, 102, 0.14);
  color: var(--green-bright);
  border: 1px solid rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.bot-status.inactive .status-pill {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.35);
}

.bot-status.inactive {
  border-color: rgba(234, 179, 8, 0.3);
}

.booking-progress {
  display: grid;
  gap: 8px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-md);
  padding: 16px;
  flex: 1;
}

.booking-progress span {
  position: relative;
  padding-left: 30px;
  font-size: 0.85rem;
  color: var(--dark-muted);
  transition: color 0.3s ease;
}

.booking-progress span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--dark-line);
  transition: all 0.3s ease;
}

.booking-progress span.done {
  color: var(--dark-text);
}

.booking-progress span.done::before {
  background: var(--green-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.4 2.5L11.5 6' fill='none' stroke='%230c1712' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  border-color: var(--green-bright);
}

/* ---------- 16. Comparación coexistencia ---------- */
.comparison {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .comparison {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.compare-card {
  border-radius: var(--r-md);
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

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

.compare-card ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.compare-card li {
  position: relative;
  padding-left: 27px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.2 5.2l5.6 5.6M10.8 5.2l-5.6 5.6' stroke='%235c6e64' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/9px no-repeat;
  border: 1px solid var(--line);
}

.compare-card.good {
  background: linear-gradient(170deg, #f2faf5, var(--surface) 55%);
  border-color: var(--tint-border);
  box-shadow: var(--shadow-md);
}

.compare-card.good li::before {
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.8L12 5.6' fill='none' stroke='%230b4f31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
  border-color: var(--tint-border);
}

/* ---------- 17. Callout de límites ---------- */
.guardrail-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 26px 0 30px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--tint), #f2faf5 70%);
  border: 1px solid var(--tint-border);
}

.guardrail-callout .shield {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(14, 122, 74, 0.5);
}

.guardrail-callout .shield svg {
  width: 20px;
  height: 20px;
}

.guardrail-callout strong {
  display: block;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.guardrail-callout span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- 18. Grilla de configuración + demo de capacidades ---------- */
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 720px) {
  .config-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.config-card {
  text-align: left;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.config-card:hover {
  transform: translateY(-3px);
  border-color: var(--tint-border);
  box-shadow: var(--shadow-md);
}

.config-card.active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-md);
}

.config-card .config-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
  color: var(--green-ink);
  margin-bottom: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.config-card.active .config-icon {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.config-card .config-icon svg {
  width: 17px;
  height: 17px;
}

.config-card b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.99rem;
  letter-spacing: -0.01em;
}

.config-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.capability-demo {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 22px;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 320px;
  align-items: center;
}

@media (min-width: 880px) {
  .capability-demo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.capability-demo.entering .concept-copy,
.capability-demo.entering .concept-screen {
  animation: cap-in 0.45s ease both;
}

.capability-demo.entering .concept-screen {
  animation-delay: 0.08s;
}

@keyframes cap-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.concept-copy h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin-bottom: 10px;
}

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

.concept-copy ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.concept-copy li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.concept-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.8L12 5.6' fill='none' stroke='%230b4f31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid var(--tint-border);
}

.concept-screen {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-height: 250px;
}

.concept-top,
.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-ink);
  background: var(--tint);
  border: 1px solid var(--tint-border);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

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

.concept-list {
  display: grid;
  gap: 8px;
}

.concept-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.concept-row strong {
  color: var(--ink);
  font-weight: 600;
}

.concept-row.highlight {
  border-color: var(--tint-border);
  background: linear-gradient(120deg, #f0f9f3, var(--surface));
  box-shadow: var(--shadow-sm);
}

.concept-chip {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--tint);
  border: 1px solid var(--tint-border);
  color: var(--green-ink);
}

.concept-chip.blocked {
  background: #fdeaea;
  border-color: #f2c8c8;
  color: #b3382f;
}

.concept-chat {
  display: grid;
  gap: 8px;
}

.concept-chat .bubble {
  justify-self: start;
  max-width: 90%;
  padding: 9px 13px;
  border-radius: 13px;
  border-top-left-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.concept-chat .bubble:nth-child(2n) {
  justify-self: end;
  background: var(--tint);
  border-color: var(--tint-border);
  border-top-left-radius: 13px;
  border-top-right-radius: 4px;
}

.concept-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.concept-metric > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
  display: grid;
  gap: 2px;
}

.concept-metric strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--green-ink);
}

.concept-metric small {
  color: var(--muted);
  font-size: 0.78rem;
}

.concept-shield {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(14, 122, 74, 0.6);
}

.concept-note {
  text-align: center;
}

.concept-note p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.calendar-grid {
  position: relative;
  display: grid;
  grid-template-columns: 52px repeat(3, 1fr);
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.calendar-grid > span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.calendar-grid > span:not(:empty) {
  font-weight: 600;
}

.calendar-grid > span:empty {
  background: var(--surface);
  border: 1px dashed var(--line);
}

.calendar-event {
  position: absolute;
  left: calc(52px + 6px + ((100% - 52px - 18px) / 3 + 6px) * 1);
  top: calc((30px + 6px) * 3);
  width: calc((100% - 52px - 18px) / 3);
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.6rem;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(4px);
  box-shadow: 0 8px 18px -8px rgba(14, 122, 74, 0.65);
}

.calendar-event[style*="opacity: 1"] {
  transform: none;
}

.sync-caption {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--muted);
}

.sync-caption i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: pulse 2.2s ease-out infinite;
}

/* ---------- 19. Selector de rubro ---------- */
.industry-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 18px;
}

.industry-switch button {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.industry-switch button:hover {
  border-color: var(--green);
  color: var(--green-ink);
}

.industry-switch button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.industry-demo {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.industry-photo {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.industry-photo img,
.band-photo img,
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .industry-demo {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.1fr);
    align-items: center;
  }
  .industry-photo {
    aspect-ratio: 4 / 3;
  }
}

.industry-demo h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.industry-demo > div > p {
  color: var(--muted);
  margin: 0;
}

.industry-demo ul {
  display: grid;
  gap: 10px;
}

.industry-demo li {
  position: relative;
  padding: 12px 16px 12px 42px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.industry-demo li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.8L12 5.6' fill='none' stroke='%230b4f31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid var(--tint-border);
}

/* ---------- 20. Consola de control ---------- */
.band-photo {
  margin: 0 0 14px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--dark-line);
  aspect-ratio: 5 / 3;
}

.contact-photo {
  margin: 24px 0 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 2;
  max-width: 560px;
}

.control-console {
  display: grid;
  gap: 10px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border-radius: var(--r-lg);
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow-lg);
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-line);
  color: var(--dark-text);
  font-size: 0.93rem;
}

.toggle {
  flex: none;
  position: relative;
  width: 40px;
  height: 23px;
  border-radius: var(--r-pill);
  background: var(--green-bright);
  transition: background-color 0.2s ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 19.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: left 0.2s ease;
}

.toggle.off {
  background: rgba(255, 255, 255, 0.18);
}

.toggle.off::after {
  left: 2.5px;
}

.control-console .handoff {
  align-self: stretch;
  justify-content: center;
  background: #3a2a12;
  border-color: #57401e;
  color: #f0c36c;
  animation: none;
}

/* ---------- 21. Precios ---------- */
.pricing-hero {
  text-align: left;
}

.pricing-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 880px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.price-card > p {
  color: var(--muted);
  font-size: 0.94rem;
  min-height: 3em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 18px;
}

.price strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.usage-animation {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 20px;
}

.usage-animation i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  animation: usage 5.5s ease-in-out infinite alternate;
}

@keyframes usage {
  from {
    width: 18%;
  }
  to {
    width: 82%;
  }
}

.features {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}

.features li {
  position: relative;
  padding-left: 27px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.7 2.8L12 5.6' fill='none' stroke='%230b4f31' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid var(--tint-border);
}

.price-card .button {
  width: 100%;
}

.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-lg);
  background: linear-gradient(175deg, #f2faf5, var(--surface) 40%);
}

@media (min-width: 880px) {
  .price-card.featured {
    transform: translateY(-10px);
  }
  .price-card.featured:hover {
    transform: translateY(-14px);
  }
}

.popular {
  position: absolute;
  top: -13px;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  box-shadow: 0 6px 16px -6px rgba(14, 122, 74, 0.6);
}

.pricing-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 68ch;
}

#elegir {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- 22. Tabla comparativa ---------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--surface-2);
}

.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.compare-table thead th:nth-child(3) {
  color: var(--green-ink);
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.compare-table td:not(:first-child),
.compare-table th:not(:first-child) {
  text-align: center;
}

.compare-table td:nth-child(3) {
  background: rgba(14, 122, 74, 0.045);
  font-weight: 600;
  color: var(--green-ink);
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover td {
  background-color: #f7fbf8;
}

.compare-table tbody tr:hover td:nth-child(3) {
  background-color: rgba(14, 122, 74, 0.08);
}

/* ---------- 23. FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--tint-border);
  box-shadow: var(--shadow-md);
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%2310221a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--tint);
  border-color: var(--tint-border);
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 62ch;
}

/* ---------- 24. Legales ---------- */
.legal {
  max-width: 720px;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.legal h1 + p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.legal h2 {
  font-size: 1.32rem;
  margin-top: 2.2em;
}

.legal p {
  color: var(--ink-soft);
}

/* ---------- 25. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* no-js: nunca ocultar contenido */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
