/* mychatbot.es — hoja de estilos única
   Dirección A · "Conversación". Tokens arriba: cambiar aquí cambia todo el sitio. */

:root {
  --paper: #FBF7F2;
  --paper-2: #ffffff;
  --paper-3: #F0EAE1;
  --paper-4: #F3EFE8;
  --ink: #2D5040;
  --ink-hover: #1B2F26;
  --ink-70: rgba(45, 80, 64, .72);
  --ink-64: rgba(45, 80, 64, .64);
  --ink-rule: rgba(45, 80, 64, .09);
  --green: #178A5C;
  --green-dark: #0F6F49;
  --green-deep: #0B5E42;
  --green-light: #E3F5EC;
  --green-bright: #5FE3A1;
  --orange: #FF7A45;
  --yellow: #DEDC07;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Karla', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 56px);

  /* Tema: --paper e --ink son fijos (los usan los bloques siempre oscuros,
     como .panel o .btn--ink). --bg y --text son los que cambian con el tema. */
  --bg: var(--paper);
  --text: var(--ink);
  --ink-border: rgba(45, 80, 64, .18);
  --header-bg: rgba(251, 247, 242, .92);
  --green-text: var(--green-deep);
  --quiet-hover: #E5DCCE;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #13201A;
  --paper-2: #1C2B23;
  --paper-3: #24352B;
  --paper-4: #203024;
  --text: #EDEAE1;
  --ink-70: rgba(237, 234, 225, .74);
  --ink-64: rgba(237, 234, 225, .62);
  --ink-rule: rgba(237, 234, 225, .12);
  --ink-border: rgba(237, 234, 225, .22);
  --header-bg: rgba(19, 32, 26, .86);
  --green-text: var(--green-bright);
  --quiet-hover: #2C3F33;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: var(--green-text); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green-light); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--flush-top { padding-top: 0; }

/* ---------- type ---------- */
.h1, .h2, .h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.04;
}
.h1 { font-size: clamp(38px, 5.2vw, 72px); letter-spacing: -.035em; }
.h2 { font-size: clamp(30px, 4.2vw, 54px); }
.h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.18; letter-spacing: -.02em; }
.lede { font-size: 19px; line-height: 1.63; color: var(--ink-70); max-width: 48ch; }
.note { font-size: 13px; color: var(--ink-64); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light); color: var(--green-deep);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.overline {
  font-size: 14px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-64);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 16px 28px; border-radius: 999px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(23, 138, 92, .3); }
.btn--primary:hover { background: var(--green-dark); color: var(--yellow); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--green); color: var(--yellow); }
.btn--quiet { background: var(--paper-3); color: var(--text); }
.btn--quiet:hover { background: var(--quiet-hover); }
.btn--outline { background: transparent; border: 1.5px solid var(--ink-border); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }
.btn--glass {
  background: rgba(251, 247, 242, .12); color: var(--paper);
  border: 1.5px solid rgba(251, 247, 242, .45); backdrop-filter: blur(6px);
}
.btn--glass:hover { border-color: var(--paper); background: rgba(251, 247, 242, .2); color: var(--yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-rule);
}
.site-header__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 20px; max-width: 1800px; margin-inline: auto;
  padding-block: 16px; padding-inline: var(--gut);
}
/* Logotipo: imagen única (isotipo + marca) con el ancho derivado de la altura. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.site-footer .brand img { height: 28px; }
@media (max-width: 480px) { .brand img { height: 28px; } }
/* El wrapper es transparente al grid en escritorio: nav y acciones ocupan sus propias columnas. */
.site-header__menu { display: contents; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--text); }
.site-nav a:not(.btn):hover { color: var(--green-text); text-decoration: none; }
.site-nav a:not(.btn)[aria-current="page"] {
  font-weight: 700; color: var(--green-text); box-shadow: inset 0 -2px 0 var(--green);
}
.site-nav a.btn:hover { text-decoration: none; }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

/* ---------- tema claro/oscuro ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--paper-3); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

/* ---------- menú móvil ---------- */
.menu-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.menu-toggle:hover { background: var(--paper-3); }
.menu-toggle__bar { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .site-header__menu {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; margin-top: 16px; padding-top: 16px; gap: 4px;
    border-top: 1px solid var(--ink-rule);
  }
  .site-header__menu.is-open { display: flex; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-nav a:not(.btn) { width: 100%; padding-block: 10px; }
  .site-header__actions { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; margin-top: 10px; }
  .site-header__actions a:not(.btn) { padding-block: 6px; }
  .site-header__actions .btn { text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  margin: 0 clamp(10px, 2vw, 24px);
  border-radius: clamp(24px, 3vw, 40px); overflow: hidden;
  min-height: min(86vh, 760px);
  background: #2A3A33;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 32%; }
.hero__media--empty::before {
  content: "";
  position: absolute; inset: 24px;
  border: 2px dashed rgba(251, 247, 242, .28); border-radius: 20px;
}
/* Marcador visible solo mientras falte la foto: cinta superior centrada,
   por encima del badge del hero y a la izquierda de la columna de burbujas. */
.hero__media--empty::after {
  content: "assets/hero.jpg — persona de vacaciones";
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 4px 12px; border-radius: 999px;
  background: rgba(11, 21, 18, .5);
  color: rgba(251, 247, 242, .7); font-size: 13px; line-height: 1.5;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top,
      rgba(11, 21, 18, .9) 0%, rgba(11, 21, 18, .66) 38%,
      rgba(11, 21, 18, .16) 70%, rgba(11, 21, 18, .34) 100%),
    linear-gradient(to right, rgba(11, 21, 18, .42) 0%, rgba(11, 21, 18, 0) 55%);
}
.hero__body {
  position: relative; width: 100%; color: var(--paper);
  padding-block: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: clamp(24px, 4vw, 56px);
}
.hero__col { max-width: 34ch; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(251, 247, 242, .16); color: var(--paper);
  padding: 8px 15px; border-radius: 999px; backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 700; line-height: 1;
}
.hero__badge .dot { background: var(--green-bright); animation: blink 1.8s ease-in-out infinite; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 80px); line-height: 1.02;
  letter-spacing: -.035em; margin-top: 22px; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--green-bright); }
.hero__lede { font-size: 19px; line-height: 1.63; max-width: 40ch; margin-top: 20px; color: rgba(251, 247, 242, .84); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__reassure {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px;
  font-size: 14px; font-weight: 500; color: rgba(251, 247, 242, .74);
}
.hero__reassure span { display: inline-flex; align-items: center; gap: 7px; }
.hero__reassure span::before { content: "✓"; color: var(--green-bright); font-weight: 700; }
/* Columna derecha del hero: por debajo de la persona, sobre la zona de arena. */
.hero__chat {
  display: flex; flex-direction: column; gap: 10px;
  width: min(320px, 34vw); pointer-events: none;
}

/* ---------- chat bubbles ---------- */
.bubble { padding: 13px 16px; box-shadow: 0 16px 34px rgba(11, 21, 18, .26); }
.bubble__who { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.bubble__text { display: block; font-size: 16px; line-height: 1.44; }
.bubble--them {
  align-self: flex-start; background: rgba(251, 247, 242, .95); color: var(--ink);
  border-radius: 20px 20px 20px 6px; animation: bob-a 7s ease-in-out infinite;
}
.bubble--them .bubble__who { color: rgba(45, 80, 64, .62); }
.bubble--bot {
  align-self: flex-end; background: var(--green); color: #fff;
  border-radius: 20px 20px 6px 20px; animation: bob-b 8.5s ease-in-out infinite;
  box-shadow: 0 16px 34px rgba(23, 138, 92, .34);
}
.bubble--bot .bubble__who { color: rgba(255, 255, 255, .78); }
.typing {
  align-self: flex-start; display: flex; align-items: center; gap: 9px;
  background: rgba(251, 247, 242, .95); color: var(--ink);
  border-radius: 999px; padding: 10px 17px;
  box-shadow: 0 14px 28px rgba(11, 21, 18, .24);
  font-size: 14px; font-weight: 700;
  animation: bob-c 6s ease-in-out infinite;
}
.typing .dot { background: var(--orange); animation: blink 1.4s ease-in-out infinite; }
.hero__chat .bubble,
.hero__chat .typing {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease;
}
.hero__chat .bubble.is-visible,
.hero__chat .typing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 30px); }
.grid--metrics { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--cases { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }

.card { background: var(--paper-2); border-radius: 28px; padding: 28px; }
.card--pad-lg { padding: 30px; }
.card--metric { border-radius: 24px; padding: 26px 24px; }
.metric__value {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 3.6vw, 46px); line-height: 1;
  letter-spacing: -.03em; color: var(--green-text);
}
.metric__label { display: block; font-size: 15px; line-height: 1.47; margin-top: 12px; color: var(--ink-70); }

.case { display: flex; flex-direction: column; gap: 14px; }
.case__body { font-size: 16px; line-height: 1.63; color: var(--ink-70); }
.case__chat {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ink-rule);
}
.case__ask, .case__reply { max-width: 88%; padding: 9px 13px; font-size: 14px; line-height: 1.43; }
.case__ask { align-self: flex-start; background: var(--paper-4); border-radius: 16px 16px 16px 4px; }
.case__reply { align-self: flex-end; background: var(--green); color: #fff; border-radius: 16px 16px 4px 16px; }

.pill {
  align-self: flex-start; background: var(--green-light); color: var(--green-deep);
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.chip {
  background: var(--paper-2); border-radius: 999px; padding: 12px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-light); color: var(--green-deep);
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
}
.step h3 { margin-top: 20px; }
.step p { font-size: 16px; line-height: 1.56; margin-top: 10px; color: var(--ink-70); }

.quote { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.avatar {
  width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light); color: var(--green-deep);
  font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em;
}
.byline span { font-size: 15px; line-height: 1.4; color: var(--ink-70); }

/* ---------- panels ---------- */
.panel {
  background: var(--ink); color: var(--paper);
  border-radius: clamp(24px, 3vw, 44px);
  padding: clamp(30px, 5vw, 64px) clamp(22px, 4vw, 56px);
}
.panel .h2 { max-width: 24ch; }
.ba { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 36px; }
.ba__label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 18px;
}
.ba__list { display: flex; flex-direction: column; gap: 12px; }
.ba__list li { font-size: 17px; line-height: 1.53; padding-bottom: 12px; }
.ba--before .ba__label { color: rgba(251, 247, 242, .58); }
.ba--before li { border-bottom: 1px solid rgba(251, 247, 242, .16); }
.ba--before li:last-child { border-bottom: 0; padding-bottom: 0; }
.ba--after { background: var(--green); border-radius: 26px; padding: 26px; color: #fff; }
.ba--after .ba__label { color: rgba(255, 255, 255, .78); }
.ba--after li { border-bottom: 1px solid rgba(255, 255, 255, .26); }
.ba--after li:last-child { border-bottom: 0; padding-bottom: 0; }

.trust { overflow: hidden; }
.trust__lede { color: rgba(251, 247, 242, .78); font-size: 17px; line-height: 1.6; max-width: 52ch; margin-top: 14px; }
.trust__track {
  display: flex; gap: 20px; width: max-content; margin-top: 32px;
  animation: marquee 26s linear infinite;
}
.trust__item {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; white-space: nowrap;
  border: 2px dashed rgba(251, 247, 242, .3); border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: rgba(251, 247, 242, .84);
}

.flow { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 32px; }
.flow__item { border-top: 2px solid var(--yellow); padding-top: 16px; }
.flow__item strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.flow__item span { display: block; font-size: 15px; line-height: 1.53; margin-top: 8px; color: rgba(251, 247, 242, .76); }

/* ---------- pricing ---------- */

.plan { display: flex; flex-direction: column; }
.plan__name { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin-top: 14px; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 16px; }
.plan__price b {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4.4vw, 45px); line-height: 1; letter-spacing: -.035em;
  white-space: nowrap; flex-shrink: 0;
}
.plan__price span { font-size: 15px; font-weight: 500; color: var(--ink-64); display: block; width: 100%; }
.plan__list {
  display: flex; flex-direction: column; gap: 11px;
  margin-top: 24px; margin-bottom: 40px; padding-top: 22px; border-top: 1px solid var(--ink-rule);
  font-size: 16px; line-height: 1.44; color: var(--ink-70);
}
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--ink); color: var(--paper); box-shadow: 0 20px 44px rgba(45, 80, 64, .22); }
.plan--featured .pill { background: var(--green); color: #fff; }
.plan--featured .plan__price span { color: rgba(251, 247, 242, .68); }
.plan--featured .plan__list { border-top-color: rgba(251, 247, 242, .18); color: rgba(251, 247, 242, .86); }
.plan--muted .pill { background: var(--paper-3); color: var(--ink-70); }

.table-card { background: var(--paper-2); border-radius: 28px; padding: clamp(16px, 2vw, 26px); margin-top: 26px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th {
  text-align: left; padding: 14px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-64);
}
th.is-featured { color: var(--green-text); }
td { padding: 15px 16px; border-top: 1px solid var(--ink-rule); font-size: 16px; line-height: 1.44; color: var(--ink-70); }
td:first-child { font-weight: 500; color: var(--text); }
td.is-featured { color: var(--green-text); font-weight: 700; }

/* ---------- final CTA + footer ---------- */
.cta {
  background: var(--green); color: #fff; text-align: center;
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(34px, 5vw, 68px) clamp(22px, 4vw, 56px);
}
.cta .h2 { max-width: 20ch; margin: 0 auto; }
.cta p { font-size: 18px; line-height: 1.56; max-width: 46ch; margin: 20px auto 0; color: rgba(255, 255, 255, .88); }
.cta__form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta__form input {
  border: 0; border-radius: 999px; padding: 16px 22px;
  font-size: 17px; font-family: var(--font-body); min-width: 250px; color: var(--ink);
}
.cta__form .btn--ink:hover { background: var(--ink-hover); color: var(--yellow); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.form__honeypot { position: absolute; left: -9999px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.form__field input, .form__field textarea {
  border: 1.5px solid var(--ink-rule); border-radius: 14px; padding: 14px 16px;
  font-size: 16px; font-family: var(--font-body); color: var(--text); background: var(--paper-2);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field input:focus, .form__field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form .btn { align-self: flex-start; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-70); }
.form__check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.form__check a { text-decoration: underline; }

/* ---------- legal ---------- */
.legal { max-width: 72ch; }
.legal h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -.02em; margin-top: 48px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 16px; color: var(--ink-70); }
.legal ul { margin-top: 16px; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 8px; color: var(--ink-70); }
.legal a { text-decoration: underline; }

.site-footer {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-block: 40px 48px; font-size: 14px; color: var(--ink-64);
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__social { display: flex; align-items: center; gap: 16px; }
.site-footer__social a { color: var(--ink-64); display: inline-flex; }
.site-footer__social a:hover { color: var(--green-text); }
.site-footer__social svg { width: 20px; height: 20px; }

.figure { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-4); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--ink-border); color: var(--ink-64); font-size: 15px; padding: 24px;
}
.figure__zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.figure__zoom img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; margin: auto;
  max-width: min(1200px, 92vw); max-height: 92vh;
  border: 0; padding: 0; border-radius: 20px; background: transparent;
}
.lightbox::backdrop { background: rgba(11, 21, 18, .82); backdrop-filter: blur(4px); }
.lightbox__img { display: block; max-width: 100%; max-height: 92vh; border-radius: 20px; cursor: zoom-out; }
.lightbox__close {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(11, 21, 18, .55); color: var(--paper);
}
.lightbox__close:hover { background: rgba(11, 21, 18, .75); }
.lightbox__close svg { width: 18px; height: 18px; }

/* ---------- motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes bob-a { 0%, 100% { transform: translateY(0) rotate(-1.5deg) } 50% { transform: translateY(-14px) rotate(-1.5deg) } }
@keyframes bob-b { 0%, 100% { transform: translateY(0) rotate(2deg) } 50% { transform: translateY(12px) rotate(2deg) } }
@keyframes bob-c { 0%, 100% { transform: translateY(-5px) } 50% { transform: translateY(8px) } }
@keyframes blink { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  /* Debajo de 900px la foto pasa a ser una franja de altura fija arriba,
     y el texto va debajo sobre el fondo oscuro sólido de .hero (no sobre la foto):
     así el bot de burbujas del chat, al crecer y encogerse, no cambia el tamaño de la foto. */
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; height: min(70vw, 400px); }
  .hero__media img { object-position: 70% 28%; }
  .hero__body { grid-template-columns: 1fr; }
  .hero__col { max-width: none; }
  .hero__media--empty::after { display: none; }
  .hero__chat { width: 100%; }
  .hero__chat .bubble, .hero__chat .typing { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .menu-toggle__bar { transition: none; }
  body { transition: none; }
  .hero__chat .bubble, .hero__chat .typing { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}
