/* =========================================================
   CELERIS — Stylesheet
   Editorial / Pyrenean / AI-precision
   ========================================================= */

:root {
  /* Palette — warm editorial cream + ink + terracotta */
  --ink:        #0e0c08;
  --ink-soft:   #2a2620;
  --bone:       #ece4d1;
  --bone-deep:  #e3d9c1;
  --cream:      #f3ecda;
  --paper:      #f7f1df;
  --stone:      #8a8169;
  --stone-soft: #b8ad91;
  --line:       #c4b994;
  --accent:     #b8410f;    /* terracotta — alpine clay / Andorran flag */
  --accent-deep:#8c2f08;
  --blue:       #1c3c5e;    /* alpine pyrenean depth */
  --gold:       #b88a32;

  /* Type */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --max:        1340px;
  --gutter:     clamp(20px, 4vw, 64px);
  --section-y:  clamp(80px, 12vw, 180px);
}

/* Reset --------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 380;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
abbr { text-decoration: underline dotted var(--stone); cursor: help; }

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

/* Grain texture overlay --------------------------------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.8 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Utility ------------------------------------------------- */
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.visually-hidden { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }

/* NAV ----------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--gutter);
  background: rgba(236, 228, 209, 0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s ease;
}
.nav.is-stuck {
  background: rgba(236, 228, 209, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: rgba(14, 12, 8, 0.08);
  padding: 12px var(--gutter);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 420;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__mark {
  width: 22px; height: 22px;
  color: var(--accent);
  transform: translateY(3px);
}
.logo__word { font-style: italic; }
.logo__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone);
  font-style: normal;
  text-transform: uppercase;
  transform: translateY(-6px);
}

.nav__links {
  display: flex; justify-content: center; gap: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.7,0,.2,1);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Menu wrapper is transparent on desktop: links + CTA flow into the nav grid.
   On mobile it becomes a real dropdown box (see responsive section). */
.nav__menu { display: contents; }

/* Hamburger toggle — hidden on desktop, shown below 800px */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  justify-self: end;
  color: var(--ink);
  border-radius: 8px;
  transition: background .25s;
}
.nav__toggle:hover { background: rgba(14, 12, 8, 0.06); }
.nav__toggle-box { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nav__toggle-bar {
  height: 1.5px; width: 100%;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s cubic-bezier(.7,0,.2,1), opacity .2s ease;
}
.nav.is-menu-open .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-menu-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav__toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* BUTTONS ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .3s cubic-bezier(.7,0,.2,1);
  will-change: transform;
  white-space: nowrap;
}
.btn--small { padding: 10px 16px; font-size: 11px; }
.btn--primary {
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--ink);
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(14, 12, 8, 0.18);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--cta { padding: 16px 26px; font-size: 13px; }
.btn svg { transition: transform .3s; }
.btn:hover svg { transform: translateX(3px); }

/* HERO ---------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(120px, 16vh, 180px) var(--gutter) clamp(60px, 10vh, 100px);
  background:
    radial-gradient(circle at 80% 0%, rgba(184,65,15,0.06), transparent 50%),
    radial-gradient(circle at 0% 90%, rgba(28,60,94,0.05), transparent 45%),
    var(--bone);
  overflow: hidden;
}
.hero::before {
  /* Editorial grid baseline */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14,12,8,0.04) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  max-width: var(--max);
  left: 50%; transform: translateX(-50%);
  opacity: 0.5;
}

.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: clamp(40px, 6vw, 64px);
  animation: fadeUp .9s .1s cubic-bezier(.2,.7,.2,1) backwards;
}
.hero__eyebrow .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,65,15,0.18);
  animation: pulse 2.4s infinite;
}
.hero__eyebrow-sep { opacity: 0.5; }

.hero__title {
  font-family: var(--serif);
  font-weight: 320;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: clamp(64px, 13.5vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: clamp(48px, 7vw, 80px);
}
.hero__title .line {
  display: block;
  animation: fadeUp 1.1s cubic-bezier(.2,.7,.2,1) backwards;
}
.hero__title .line:nth-child(1) { animation-delay: .15s; }
.hero__title .line:nth-child(2) { animation-delay: .3s; padding-left: clamp(40px, 12vw, 200px); }
.hero__title em {
  font-style: italic;
  font-weight: 280;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.hero__cols {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(60px, 8vw, 100px);
  animation: fadeUp 1s .55s cubic-bezier(.2,.7,.2,1) backwards;
}

.hero__copy { padding-top: 8px; }
.hero__lede {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 38ch;
  letter-spacing: -0.005em;
}
.hero__lede em { color: var(--accent); }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 48px;
}

.hero__bullets {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  gap: 12px;
}
.hero__bullets li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 14px;
  text-transform: uppercase;
}
.hero__bullets li .mono {
  color: var(--accent);
  font-weight: 500;
  min-width: 56px;
  display: inline-block;
}

/* HERO PANEL — live system ticker */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 30px 60px -30px rgba(14,12,8,0.18),
    0 8px 16px -10px rgba(14,12,8,0.06);
  position: relative;
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,65,15,0.4), transparent);
}
.panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), var(--cream));
}
.panel__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 500;
}
.panel__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,65,15,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(184,65,15,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,65,15,0); }
}

.panel__body { padding: 8px 0; min-height: 260px; }
.ticker { display: flex; flex-direction: column; }
.ticker__row {
  display: grid;
  grid-template-columns: 80px 70px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(196, 185, 148, 0.4);
  font-size: 13px;
  animation: tickerIn .6s cubic-bezier(.2,.7,.2,1);
}
.ticker__row:last-child { border-bottom: 0; }
.ticker__time { color: var(--stone); font-size: 11px; }
.ticker__tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  text-align: center;
  background: var(--bone-deep);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 500;
}
.ticker__tag.boa   { background: rgba(184,65,15,0.12); color: var(--accent-deep); border-color: rgba(184,65,15,0.25); }
.ticker__tag.cita  { background: rgba(28,60,94,0.10); color: var(--blue);    border-color: rgba(28,60,94,0.25); }
.ticker__tag.mail  { background: rgba(184,138,50,0.12); color: var(--gold);  border-color: rgba(184,138,50,0.3); }
.ticker__tag.doc   { background: rgba(138,129,105,0.15); color: var(--ink-soft); }
.ticker__tag.agent { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.ticker__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

@keyframes tickerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--cream), var(--paper));
}
.stat { padding: 18px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.stat__value {
  font-size: 28px;
  font-weight: 350;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px;
}
.stat__unit { font-size: 14px; color: var(--stone); margin-left: 3px; }

/* Hero signature row at base */
.hero__signature {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--stone);
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  animation: fadeUp 1s .85s cubic-bezier(.2,.7,.2,1) backwards;
}
.hero__signature-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* MANIFESTO ---------------------------------------------- */
.manifesto {
  padding: var(--section-y) var(--gutter);
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  /* Mountain silhouette in background */
  content: ""; position: absolute; bottom: -40px; left: 0; right: 0; height: 60%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 300' preserveAspectRatio='none'><path d='M0,300 L0,180 L200,90 L350,160 L500,40 L700,150 L900,80 L1100,170 L1300,60 L1500,140 L1600,90 L1600,300 Z' fill='%23ebe4d1' opacity='0.05'/></svg>") center bottom / cover no-repeat;
  pointer-events: none;
}
.manifesto__wrap {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.manifesto__kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 40px;
}
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 280;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(38px, 6vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--bone);
}
.manifesto__quote em {
  font-style: italic;
  color: var(--accent);
  font-weight: 260;
}
.manifesto__quote span { color: var(--stone-soft); }
.manifesto__attr {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
}
.manifesto__attr-line {
  width: 60px; height: 1px; background: var(--stone);
}

/* SECTION HEAD ------------------------------------------- */
.section__head {
  max-width: var(--max);
  margin: 0 auto var(--gutter);
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section__head--center { text-align: center; }
.section__head--center .section__title { margin-left: auto; margin-right: auto; }
.section__kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 320;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 14ch;
}
.section__title em { font-style: italic; color: var(--accent); font-weight: 280; }
.section__sub {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-top: 28px;
  letter-spacing: -0.005em;
}

/* SERVICIOS ---------------------------------------------- */
.servicios {
  padding: var(--section-y) var(--gutter);
  background: var(--cream);
  position: relative;
}

.servicios__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.servicio {
  background: var(--paper);
  padding: 42px 36px 38px;
  position: relative;
  transition: background .4s ease;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.servicio:hover { background: var(--bone); }

.servicio__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.servicio__num {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--stone);
}
.servicio__icon {
  width: 44px; height: 44px;
  color: var(--ink);
  opacity: 0.9;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), color .4s;
}
.servicio:hover .servicio__icon {
  color: var(--accent);
  transform: scale(1.06) rotate(-2deg);
}
.servicio__title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  color: var(--ink);
}
.servicio__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.servicio__meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
}

.servicio--accent {
  background: var(--ink);
  color: var(--bone);
}
.servicio--accent:hover { background: var(--ink-soft); }
.servicio--accent .servicio__num { color: var(--stone-soft); }
.servicio--accent .servicio__title { color: var(--bone); }
.servicio--accent .servicio__text { color: var(--stone-soft); }
.servicio--accent .servicio__icon { color: var(--accent); }
.servicio--accent .servicio__meta {
  color: var(--accent);
  border-top-color: rgba(236,228,209,0.15);
}
.servicio--accent .servicio__text em { color: var(--bone); }
.servicio__badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
}

/* DIFERENCIADORES ---------------------------------------- */
.diff {
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
}
.diff__rows {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.diff__row {
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.diff__num {
  display: flex; flex-direction: column; gap: 14px;
}
.diff__num .mono {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.diff__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--stone);
}
.diff__title {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 22ch;
}
.diff__title em { font-style: italic; color: var(--accent); font-weight: 290; }
.diff__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
}
.diff__metric {
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.diff__metric-num {
  display: block;
  font-family: var(--serif);
  font-weight: 290;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(48px, 5vw, 78px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.diff__metric-sub { font-size: 0.6em; color: var(--stone); }
.diff__metric-cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
}

/* COMO --------------------------------------------------- */
.como {
  padding: var(--section-y) var(--gutter);
  background: var(--cream);
}
.como__list {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.como__step {
  padding: 32px 28px 24px 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.como__num {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 80px;
}
.como__content h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.como__content p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.como__step::before {
  content: "";
  position: absolute;
  top: -7px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--ink);
}

/* EQUIPO ------------------------------------------------- */
.equipo {
  padding: var(--section-y) var(--gutter);
  background: var(--ink);
  color: var(--bone);
}
.equipo__wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.equipo__head {
  margin-bottom: clamp(48px, 7vw, 88px);
  text-align: center;
}
.equipo__head .section__kicker { color: var(--accent); }
.equipo__head .section__title { color: var(--bone); margin: 0 auto; max-width: none; }
.equipo__head .section__title em { color: var(--accent); }

.equipo__cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid rgba(236,228,209,0.18);
}
.equipo__col-head {
  margin-bottom: 28px;
}
.equipo__col-head .mono {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.equipo__list {
  display: flex; flex-direction: column;
  gap: 14px;
}
.equipo__list li {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--bone);
  padding-left: 22px;
  position: relative;
}
.equipo__list li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 10px; height: 1px; background: var(--accent);
}
.equipo__divider {
  width: 1px;
  background: rgba(236,228,209,0.2);
  align-self: stretch;
  position: relative;
}
.equipo__divider span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  font-weight: 300;
  color: var(--accent);
  background: var(--ink);
  padding: 8px 0;
}
.equipo__quote {
  margin-top: clamp(64px, 8vw, 100px);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 320;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--stone-soft);
  text-align: center;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}
.equipo__quote em {
  font-style: italic;
  color: var(--bone);
}

/* CTA ---------------------------------------------------- */
.cta {
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,65,15,0.10), transparent 60%);
  pointer-events: none;
}
.cta__wrap {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta__title {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 32px 0 56px;
  color: var(--ink);
}
.cta__title span { display: block; }
.cta__title span:nth-child(2) { padding-left: clamp(20px, 6vw, 80px); }
.cta__title span:nth-child(3) { padding-left: clamp(40px, 12vw, 160px); }
.cta__title em { font-style: italic; color: var(--accent); font-weight: 280; }

.cta__form {
  max-width: 580px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  position: relative;
}
.cta__form input {
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .25s;
  outline: none;
}
.cta__form input::placeholder { color: var(--stone); }
.cta__form input:focus { border-color: var(--ink); }
.cta__success {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 0; right: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeUp .4s ease;
}

.cta__fineprint {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}
.cta__fineprint a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--stone-soft);
  text-underline-offset: 3px;
  transition: color .25s;
}
.cta__fineprint a:hover { color: var(--accent); }

/* FOOTER ------------------------------------------------- */
.foot {
  padding: clamp(72px, 8vw, 100px) var(--gutter) 32px;
  background: var(--ink);
  color: var(--bone);
}
.foot__wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(236,228,209,0.12);
}
.foot__brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.foot__brand .logo__mark {
  width: 32px; height: 32px;
  color: var(--accent);
  margin-bottom: 4px;
}
.foot__brand-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 360;
  letter-spacing: -0.015em;
}
.foot__brand-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 16px;
  line-height: 1.5;
  color: var(--stone-soft);
  max-width: 28ch;
}
.foot__col h4 {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}
.foot__col ul { display: flex; flex-direction: column; gap: 10px; }
.foot__col li, .foot__col a {
  font-size: 14px;
  color: var(--stone-soft);
  transition: color .25s;
}
.foot__col a:hover { color: var(--bone); }
.foot__bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
}
.foot__bottom > :last-child { text-align: right; }
.foot__bottom-mid {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--stone-soft);
}
.foot__bottom-mid svg {
  color: var(--accent);
  opacity: 0.7;
}

/* ANIMATIONS --------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll — subtle, content remains accessible if JS/observer fails */
.reveal { opacity: 0.001; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.no-js .reveal, html:not(.js-ready) .reveal { opacity: 1; transform: none; }

/* RESPONSIVE -------------------------------------------- */
@media (max-width: 1100px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .como__list { grid-template-columns: repeat(2, 1fr); }
  .como__step { padding-bottom: 32px; }
  .foot__wrap { grid-template-columns: 1fr 1fr; }
  .diff__row { grid-template-columns: 120px 1fr 200px; gap: 32px; }
}

@media (max-width: 800px) {
  :root { --section-y: 80px; }

  /* Mobile nav: logo + hamburger; links/CTA collapse into a dropdown */
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__toggle { display: grid; }
  .nav__menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 16px var(--gutter) 24px;
    background: rgba(243, 236, 218, 0.97);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid rgba(14, 12, 8, 0.10);
    box-shadow: 0 26px 44px -30px rgba(14, 12, 8, 0.45);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.7,0,.2,1), visibility .3s;
  }
  .nav.is-menu-open .nav__menu {
    opacity: 1; visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav__links {
    display: flex; flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    font-size: 13px;
  }
  .nav__links a { padding: 13px 4px; border-bottom: 1px solid rgba(14, 12, 8, 0.08); }
  .nav__links a::after { display: none; }
  .nav__cta { display: flex; width: 100%; justify-content: center; }

  .hero { padding-top: 130px; }
  .hero__title { font-size: clamp(54px, 16vw, 100px); }
  .hero__title .line:nth-child(2) { padding-left: 32px; }
  .hero__cols { grid-template-columns: 1fr; gap: 48px; }
  .hero__eyebrow { font-size: 10px; flex-wrap: wrap; }
  .servicios__grid { grid-template-columns: 1fr; }
  .servicio { padding: 32px 28px; min-height: auto; }
  .diff__row { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .diff__metric { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .diff__metric-num { font-size: 56px; }
  .como__list { grid-template-columns: 1fr; }
  .como__num { margin-bottom: 32px; }
  .equipo__cols { grid-template-columns: 1fr; }
  .equipo__divider { width: auto; height: 1px; }
  .equipo__divider span { left: 50%; padding: 0 16px; }
  .cta__form { grid-template-columns: 1fr; }
  .cta__title span:nth-child(2),
  .cta__title span:nth-child(3) { padding-left: 0; }
  .foot__wrap { grid-template-columns: 1fr; gap: 32px; }
  .foot__bottom { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .foot__bottom > :last-child { text-align: center; }
  .panel__foot { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .ticker__row { grid-template-columns: 70px 56px 1fr; gap: 10px; padding: 10px 16px; }
}

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

/* =========================================================
   HERO CHAT PREVIEW (replaces ticker variant)
   ========================================================= */
.panel--chat .panel__body--chat { padding: 24px 22px 8px; min-height: 0; }

.chatbubble {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 22px;
}
.chatbubble__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bone);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
}
.chatbubble__msg {
  background: var(--bone-deep);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 380;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0;
}
.chatbubble__msg strong { font-weight: 540; }
.chatbubble__msg em { font-style: italic; color: var(--accent); font-family: var(--serif); }
.chatbubble__msg p + p { margin-top: 8px; }
.chatbubble__msg em { color: var(--accent); }

.chatbubble--user { grid-template-columns: 1fr; }
.chatbubble--user .chatbubble__msg {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
  border-radius: 14px 4px 14px 14px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 14.5px;
  letter-spacing: 0;
  justify-self: end;
  max-width: 80%;
}

.panel__quick {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quick {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bone-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
}
.quick:hover, .quick:focus-visible {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
  transform: translateY(-1px);
  outline: 0;
}
.quick__label {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 18px;
  letter-spacing: -0.012em;
}
.quick__hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: right;
}
.quick:hover .quick__hint { color: var(--stone-soft); }
.quick svg { color: var(--accent); justify-self: end; opacity: 0; transition: opacity .25s, transform .25s; }
.quick:hover svg { opacity: 1; transform: translateX(2px); }

.panel__foot--chat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 14px 22px;
}
.panel__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: color .25s, transform .25s;
}
.panel__cta:hover { color: var(--accent); transform: translateX(2px); }
.panel__foot-hint {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--stone);
}

/* =========================================================
   ESPECIALIDADES — FUNNEL CARDS
   ========================================================= */
.especialidades {
  padding: var(--section-y) var(--gutter);
  background: var(--cream);
}
.esp__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.esp__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  text-align: left;
  overflow: hidden;
}
.esp__card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(184,65,15,0.08), transparent 50%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.esp__card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow:
    0 30px 60px -30px rgba(14,12,8,0.20),
    0 8px 16px -10px rgba(14,12,8,0.08);
}
.esp__card:hover::after { opacity: 1; }
.esp__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.esp__card--featured {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.esp__card--featured .esp__icon,
.esp__card--featured .esp__num { color: var(--accent); }
.esp__card--featured .esp__title { color: var(--bone); }
.esp__card--featured .esp__text { color: var(--stone-soft); }
.esp__card--featured .esp__list li { color: var(--bone); border-bottom-color: rgba(236,228,209,0.12); }
.esp__card--featured .esp__list li::before { color: var(--accent); }
.esp__card--featured .esp__foot { border-top-color: rgba(236,228,209,0.18); }
.esp__card--featured .esp__price strong { color: var(--accent); }
.esp__card--featured .esp__cta { color: var(--accent); }
.esp__card--featured:hover { box-shadow: 0 30px 60px -30px rgba(184,65,15,0.4); }
.esp__card--featured::after {
  background: radial-gradient(circle at 100% 0%, rgba(184,65,15,0.18), transparent 50%);
}

.esp__badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

.esp__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.esp__num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
}
.esp__icon {
  width: 56px; height: 56px;
  color: var(--ink);
  opacity: 0.92;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.esp__card:hover .esp__icon { transform: scale(1.05) rotate(-2deg); }

.esp__title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 14px;
}
.esp__title em { font-style: italic; color: var(--accent); font-weight: 290; }

.esp__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.esp__list {
  display: flex; flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  flex: 1;
}
.esp__list li {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  padding-left: 18px;
  position: relative;
}
.esp__list li:last-child { border-bottom: 0; }
.esp__list li::before {
  content: "+";
  position: absolute;
  left: 0; top: 9px;
  font-family: var(--serif);
  color: var(--accent);
  font-size: 16px;
}

.esp__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.esp__price {
  font-size: 12px;
  color: var(--stone);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.esp__price strong {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.esp__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  transition: transform .25s;
}
.esp__card:hover .esp__cta { transform: translateX(3px); }
.esp__cta svg { transition: transform .25s; }

/* =========================================================
   RESULTADOS
   ========================================================= */
.resultados {
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
}
.resultados__grid {
  max-width: var(--max);
  margin: 0 auto clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resultado {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 6px;
}
.resultado:last-child { border-right: 0; }
.resultado__num {
  font-family: var(--serif);
  font-weight: 290;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}
.resultado__plus {
  font-size: 0.5em;
  color: var(--stone);
}
.resultado__label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 380;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.resultado__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 4px;
}

.testimonios {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
.testimonio blockquote {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
  position: relative;
  padding-left: 26px;
}
.testimonio blockquote::before {
  content: "“";
  position: absolute;
  left: -4px; top: -16px;
  font-family: var(--serif);
  font-size: 80px;
  color: var(--accent);
  line-height: 1;
}
.testimonio blockquote em { font-style: italic; color: var(--accent); }
.testimonio figcaption {
  padding-left: 26px;
  display: flex; flex-direction: column; gap: 4px;
}
.testimonio__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.testimonio__role {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--stone);
  text-transform: uppercase;
}

/* =========================================================
   CTA REFINED
   ========================================================= */
.cta__lede {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 40px;
  letter-spacing: -0.005em;
}
.cta__actions {
  display: flex; justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* =========================================================
   FAB — floating chat trigger
   ========================================================= */
.fab {
  position: fixed;
  right: clamp(20px, 3vw, 32px);
  bottom: clamp(20px, 3vw, 32px);
  z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 16px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    0 20px 40px -20px rgba(14,12,8,0.5),
    0 6px 12px -6px rgba(14,12,8,0.25);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  animation: fabIn .8s 1.2s cubic-bezier(.2,.7,.2,1) backwards;
}
.fab:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 24px 48px -20px rgba(184,65,15,0.55),
    0 8px 16px -6px rgba(184,65,15,0.25);
}
.fab__icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--accent);
  transition: color .3s;
}
.fab:hover .fab__icon { color: var(--bone); }
.fab__pulse {
  position: absolute;
  top: 50%; left: 32px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) translateX(-15px) translateY(-12px);
  box-shadow: 0 0 0 0 rgba(184,65,15,0.7);
  animation: pulse 2.2s infinite;
  pointer-events: none;
}
.fab:hover .fab__pulse { background: var(--bone); box-shadow: 0 0 0 0 rgba(236,228,209,0.7); }
.fab.is-hidden { opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; }

@keyframes fabIn {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .fab__label { display: none; }
  .fab { padding: 14px; width: 56px; height: 56px; justify-content: center; }
  .fab__pulse { left: 50%; top: 14px; transform: translateX(-50%); }
}

/* =========================================================
   CHAT DRAWER
   ========================================================= */
.drawer {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
}
.drawer.is-open { pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 12, 8, 0);
  backdrop-filter: blur(0);
  transition: background .4s ease, backdrop-filter .4s ease;
}
.drawer.is-open .drawer__backdrop {
  background: rgba(14, 12, 8, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.drawer__panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(460px, 100vw);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(110%);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  box-shadow: -40px 0 80px -40px rgba(14,12,8,0.35);
  overflow: hidden;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), var(--cream));
  position: relative;
}
.drawer__head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,65,15,0.5), transparent);
}
.drawer__id { display: flex; align-items: center; gap: 12px; }
.drawer__avatar {
  width: 40px; height: 40px;
  background: var(--ink); color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
}
.drawer__avatar svg { width: 20px; height: 20px; }
.drawer__id-text { display: flex; flex-direction: column; gap: 2px; }
.drawer__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.drawer__name .mono {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--stone);
}
.drawer__status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.drawer__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.drawer__close:hover { background: var(--bone-deep); color: var(--accent); }

.drawer__messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 22px 12px;
  display: flex; flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.drawer__messages::-webkit-scrollbar { width: 6px; }
.drawer__messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.drawer__messages::-webkit-scrollbar-track { background: transparent; }

.msg {
  max-width: 88%;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  animation: msgIn .4s cubic-bezier(.2,.7,.2,1);
}
.msg--assistant {
  align-self: flex-start;
  padding: 12px 16px;
  background: var(--bone-deep);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 380;
}
.msg--assistant strong { font-weight: 540; color: var(--ink); }
.msg--assistant em { font-style: italic; color: var(--accent); font-family: var(--serif); }
.msg--user {
  align-self: flex-end;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 14px 4px 14px 14px;
  font-family: var(--sans);
}
.msg p + p { margin-top: 6px; }
.msg__caret {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.typing {
  align-self: flex-start;
  padding: 14px 18px;
  background: var(--bone-deep);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  display: inline-flex; gap: 5px;
}
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--stone);
  animation: typeBob 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typeBob {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.drawer__suggested {
  padding: 0 22px 8px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.drawer__suggested[hidden] { display: none; }
.suggest {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s;
}
.suggest:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.drawer__compose {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.compose__input {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.4;
  padding: 12px 14px;
  background: var(--bone-deep);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  resize: none;
  max-height: 140px;
  min-height: 44px;
  outline: 0;
  transition: border-color .2s;
}
.compose__input:focus { border-color: var(--ink); }
.compose__input::placeholder { color: var(--stone); }
.compose__send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.compose__send:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); }
.compose__send:disabled { opacity: 0.4; cursor: not-allowed; }
.compose__hint {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
}

body.drawer-open { overflow: hidden; }

/* =========================================================
   CHAT MARKDOWN — links, images, widgets
   ========================================================= */

.msg__link {
  color: var(--accent);
  font-style: normal;
  font-weight: 480;
  text-decoration: underline;
  text-decoration-color: rgba(184,65,15,0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
  display: inline;
  white-space: nowrap;
}
.msg__link:hover {
  text-decoration-color: var(--accent);
}
.msg__link-arr {
  display: inline-block;
  vertical-align: 1px;
  margin-left: 2px;
  opacity: 0.65;
}

.msg__img {
  display: block;
  max-width: 100%;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Chat widget (service card inline in assistant messages) */
.cw {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  font-style: normal;
  font-family: var(--sans);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: cwIn .45s cubic-bezier(.2,.7,.2,1);
}
.cw::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(184,65,15,0.08), transparent 60%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.cw:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 14px 28px -14px rgba(14,12,8,0.25);
}
.cw:hover::before { opacity: 1; }

.cw__top {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
}
.cw__icon {
  width: 40px; height: 40px;
  background: var(--bone-deep);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .3s, color .3s;
}
.cw__icon svg { width: 22px; height: 22px; }
.cw:hover .cw__icon { background: var(--ink); color: var(--accent); }

.cw__head {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.cw__cat {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-transform: uppercase;
}
.cw__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: 17px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.cw__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.cw__price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.02em;
}
.cw__price strong {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
.cw__sub { color: var(--stone); }

.cw__cta {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.cw__cta svg { transition: transform .25s; }
.cw:hover .cw__cta svg { transform: translateX(3px); }

.cw--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}
.cw--featured .cw__icon { background: var(--accent); color: var(--ink); }
.cw--featured .cw__title { color: var(--bone); }
.cw--featured .cw__cat { color: var(--accent); }
.cw--featured .cw__price { color: var(--stone-soft); }
.cw--featured .cw__price strong { color: var(--accent); }
.cw--featured .cw__sub { color: var(--stone); }
.cw--featured .cw__cta { color: var(--accent); }
.cw--featured .cw__meta { border-top-color: rgba(236,228,209,0.18); }
.cw--featured:hover {
  background: #1c1814;
  box-shadow: 0 14px 28px -14px rgba(184,65,15,0.4);
}

@keyframes cwIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ensure widget renders as block-level even inside <p> */
.msg p .cw { margin: 10px 0; }

/* =========================================================
   CATÁLOGO DE SERVICIOS — editorial price list
   ========================================================= */
.catalogo {
  padding: var(--section-y) var(--gutter);
  background: var(--cream);
}
.catalogo__wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.catalogo__group {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 32px 0 18px;
  border-top: 1px solid var(--ink);
  margin-top: 16px;
}
.catalogo__group:first-of-type { margin-top: 0; }
.catalogo__cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
}
.catalogo__cat-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: 18px;
  color: var(--ink-soft);
}

.svc {
  display: grid;
  grid-template-columns: 60px 1fr 280px;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
  scroll-margin-top: 100px;
}
.svc::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 0; height: 1px;
  background: transparent;
  transition: background .3s ease;
}
.svc:target {
  animation: svcHighlight 2.4s ease;
}
@keyframes svcHighlight {
  0%   { background: rgba(184,65,15,0.10); }
  100% { background: transparent; }
}

.svc__num {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  padding-top: 8px;
}

.svc__main { min-width: 0; padding-top: 4px; }
.svc__title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 14px;
}
.svc__title em { font-style: italic; color: var(--accent); font-weight: 290; }

.svc__desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 20px;
}
.svc__inc {
  display: flex; flex-direction: column;
  gap: 8px;
  max-width: 56ch;
}
.svc__inc li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.svc__inc li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.svc__aside {
  display: flex; flex-direction: column;
  gap: 18px;
  padding-top: 8px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.svc__price { display: flex; flex-direction: column; gap: 4px; }
.svc__price-main {
  font-size: 14px;
  color: var(--stone);
  letter-spacing: 0.02em;
}
.svc__price-main strong {
  font-family: var(--serif);
  font-weight: 340;
  font-style: normal;
  font-size: clamp(28px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.svc__price-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-transform: uppercase;
}

.svc__cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  width: 100%;
}
.svc__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.svc__cta svg { transition: transform .25s; }
.svc__cta:hover svg { transform: translateX(3px); }

.svc--accent .svc__title em { color: var(--accent); }
.svc--accent .svc__price-main strong { color: var(--accent); }

@media (max-width: 900px) {
  .catalogo__group { grid-template-columns: 1fr; gap: 6px; }
  .svc { grid-template-columns: 40px 1fr; gap: 18px; }
  .svc__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 4px;
  }
  .svc__cta { width: auto; }
}

@media (max-width: 600px) {
  .svc__aside { flex-direction: column; align-items: stretch; gap: 14px; }
  .svc__cta { width: 100%; justify-content: center; }
  .cw { grid-template-columns: 36px 1fr; }
  .cw__cta { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; justify-content: flex-start; }
  /* 16px prevents iOS Safari from auto-zooming when the field is focused */
  .compose__input { font-size: 16px; }
  .hero__signature { flex-wrap: wrap; gap: 12px 16px; }
}

/* =========================================================
   AI BADGES — across nav, buttons, panels, drawer
   ========================================================= */

/* "agent" italicized highlight inside buttons / FAB */
.btn em, .fab__label em, .nav__cta em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.08em;
  margin: 0 1px;
}
.btn--primary em { color: var(--accent); }
.btn--primary:hover em { color: var(--bone); }
.fab:hover .fab__label em { color: var(--bone); }

/* nav CTA */
.nav__cta { gap: 8px !important; padding-right: 14px !important; }
.nav__cta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184,65,15,0.8);
  animation: pulse 2.2s infinite;
}
.nav__cta-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(184,65,15,0.25);
  color: var(--accent);
  border: 1px solid rgba(184,65,15,0.55);
}

/* button with AI tag */
.btn--with-tag { gap: 10px; padding-right: 18px; }
.btn__tag {
  display: inline-flex; align-items: center;
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(184,65,15,0.18);
  color: var(--accent);
  border: 1px solid rgba(184,65,15,0.5);
  margin-left: -2px;
}
.btn--primary .btn__tag { background: rgba(184,65,15,0.35); border-color: rgba(184,65,15,0.8); color: var(--bone); }
.btn--primary:hover .btn__tag { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); color: var(--bone); }

/* hero panel AI badge */
.panel__title {
  display: inline-flex; align-items: center; gap: 10px;
}
.panel__ai-badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(184,65,15,0.12);
  color: var(--accent);
  border: 1px solid rgba(184,65,15,0.45);
  text-transform: uppercase;
}

/* drawer AI badge */
.drawer__ai-badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(184,65,15,0.14);
  color: var(--accent);
  border: 1px solid rgba(184,65,15,0.5);
  margin-left: 6px;
  vertical-align: 2px;
  text-transform: uppercase;
}

/* FAB structured text */
.fab__text { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; line-height: 1.1; }
.fab__sub {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.fab:hover .fab__sub { color: var(--bone); }
@media (max-width: 700px) {
  .fab__text { display: none; }
}

/* =========================================================
   DRAWER — expand button + fullscreen mode
   ========================================================= */
.drawer__actions { display: flex; align-items: center; gap: 4px; }
.drawer__icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.drawer__icon-btn:hover { background: var(--bone-deep); color: var(--accent); }

/* Show expand by default, hide collapse — flipped when fullscreen */
.drawer__icon-btn .icon-collapse { display: none; }
.drawer.is-fullscreen .drawer__icon-btn .icon-expand { display: none; }
.drawer.is-fullscreen .drawer__icon-btn .icon-collapse { display: block; }

/* Fullscreen panel */
.drawer.is-fullscreen .drawer__panel {
  width: 100vw;
  max-width: 100vw;
}
.drawer.is-fullscreen .drawer__backdrop {
  background: var(--paper);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.drawer.is-fullscreen .drawer__head {
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}
.drawer.is-fullscreen .drawer__messages {
  padding: 36px max(24px, calc((100vw - 760px) / 2)) 18px;
}
.drawer.is-fullscreen .drawer__suggested {
  padding: 0 max(24px, calc((100vw - 760px) / 2)) 8px;
}
.drawer.is-fullscreen .drawer__compose {
  padding: 16px max(24px, calc((100vw - 760px) / 2)) 22px;
}
.drawer.is-fullscreen .msg { max-width: 100%; }
.drawer.is-fullscreen .msg--assistant { max-width: 80%; }
.drawer.is-fullscreen .msg--user { max-width: 70%; }

/* Hide old chatbubble cursive overrides */
.chatbubble__msg em { font-style: italic; }

/* =========================================================
   EQUIPO — 1 human + 6 agents (intentionally playful)
   ========================================================= */
.equipo__head-sub {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.45;
  color: var(--stone-soft);
  max-width: 50ch;
  margin: 28px auto 0;
  font-style: italic;
}

.team {
  margin-top: clamp(60px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid rgba(236,228,209,0.18);
}

.team__human {
  position: relative;
  padding: 4px 0;
}
.team__human-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 28px;
}
.team__human-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 42px;
  color: var(--bone);
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 20px 40px -20px rgba(184,65,15,0.5);
}
.team__human-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(184,65,15,0.35);
  animation: humanRing 3s infinite;
}
@keyframes humanRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.team__human-name {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 8px;
}
.team__human-name em { font-style: italic; color: var(--accent); font-weight: 290; }
.team__human-role {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 22px;
}
.team__human-bio {
  font-family: var(--serif);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.5;
  color: var(--stone-soft);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.team__human-bio em { font-style: italic; color: var(--bone); }
.team__human-bullets {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid rgba(236,228,209,0.16);
  padding-top: 20px;
}
.team__human-bullets li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--bone);
  padding-left: 22px;
  position: relative;
}
.team__human-bullets li::before {
  content: "—";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
}

/* Agents column */
.team__agents { min-width: 0; }
.team__agents-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.team__agents-head .mono {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.team__agents-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: 17px;
  color: var(--stone-soft);
  letter-spacing: -0.005em;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(236,228,209,0.18);
  border: 1px solid rgba(236,228,209,0.18);
  border-radius: 10px;
  overflow: hidden;
}

.agente {
  background: var(--ink);
  padding: 22px 22px 26px;
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
  transition: background .3s ease;
}
.agente:hover { background: #18130d; }

.agente__avatar {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(184,65,15,0.12);
  border: 1px solid rgba(184,65,15,0.3);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
}

.agente__num {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--stone);
}
.agente__name {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--bone);
  margin: 4px 0 4px;
}
.agente__role {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
}
.agente__bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone-soft);
}

/* Highlight Sofia (A01) */
.agente:first-child {
  background: linear-gradient(180deg, #18130d 0%, var(--ink) 100%);
}
.agente:first-child::before {
  content: "TÚ HABLAS CON ELLA";
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
}
.agente:first-child .agente__avatar {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

@media (max-width: 1024px) {
  .team { grid-template-columns: 1fr; gap: 48px; }
  .team__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .team__human-name { font-size: 40px; }
  .team__human-avatar { width: 80px; height: 80px; font-size: 32px; }
  .drawer.is-fullscreen .msg--assistant,
  .drawer.is-fullscreen .msg--user { max-width: 88%; }
}

/* Responsive overrides for new sections */
@media (max-width: 1100px) {
  .esp__grid { grid-template-columns: 1fr; gap: 18px; }
  .resultados__grid { grid-template-columns: repeat(2, 1fr); }
  .resultado { border-right: 0; border-bottom: 1px solid var(--line); }
  .resultado:nth-child(odd) { border-right: 1px solid var(--line); }
  .resultado:nth-last-child(-n+2) { border-bottom: 0; }
  .testimonios { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 800px) {
  .resultados__grid { grid-template-columns: 1fr; }
  .resultado, .resultado:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
  .resultado:last-child { border-bottom: 0; }
  .drawer__panel { width: 100vw; }
}

