/* ============================================================
   WG Protección — styles.css
   Design System: Tactile Authority
   ============================================================ */

/* ── TOKENS ── */
:root {
  /* Surface */
  --surface:              #faf9f9;
  --surface-low:          #f4f3f3;
  --surface-container:    #eeeeee;
  --surface-high:         #e8e8e8;
  --surface-white:        #ffffff;

  /* On-Surface */
  --on-surface:           #1a1c1c;
  --on-surface-variant:   #4d4732;
  --on-surface-dim:       #6b6b6b;

  /* Brand */
  --primary:              #705d00;
  --primary-container:    #ffd700;
  --on-primary:           #ffffff;
  --on-primary-fixed:     #221b00;
  --on-primary-container: #705e00;

  /* Outline */
  --outline:              #7e775f;
  --outline-variant:      #d0c6ab;

  /* Typography */
  --font-headline: 'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Manrope', system-ui, sans-serif;
  --font-label:    'Inter', system-ui, sans-serif;

  /* Radius */
  --r-xs:   0.125rem;
  --r-sm:   0.25rem;
  --r-md:   0.5rem;
  --r-lg:   0.75rem;
  --r-xl:   1rem;
  --r-full: 9999px;

  /* Shadow — ambient occlusion only */
  --shadow-xs: 0 1px 4px rgba(26,28,28,.04);
  --shadow-sm: 0 4px 12px rgba(26,28,28,.06);
  --shadow-md: 0 8px 24px rgba(26,28,28,.08);
  --shadow-lg: 0 16px 40px rgba(26,28,28,.10);
  --shadow-xl: 0 24px 48px -12px rgba(26,28,28,.12);

  /* Transition */
  --trans-fast: 150ms ease;
  --trans-base: 250ms ease;
  --trans-slow: 400ms cubic-bezier(.4,0,.2,1);

  /* Layout */
  --wrap:     75rem;
  --hdr-h:    4.5rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1,h2,h3,h4 { font-family: var(--font-headline); line-height: 1.15; letter-spacing: -0.02em; }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 9999;
  background: var(--primary); color: var(--on-primary);
  padding: .5rem 1rem; border-radius: var(--r-full);
  font-family: var(--font-label); font-size: .875rem; font-weight: 600;
  transform: translateY(-200%); transition: transform var(--trans-base);
}
.skip-link:focus { transform: translateY(0); }

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 9000;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-container) 100%);
  transition: width 80ms linear;
}

/* ── OVERLAY (mobile nav backdrop) ── */
#overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(26,28,28,.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--trans-slow);
}
#overlay.active { opacity: 1; pointer-events: all; }

/* ── HEADER ── */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--hdr-h);
  background: rgba(250,249,249,0);
  transition: background var(--trans-slow), box-shadow var(--trans-slow);
}
#hdr.scrolled {
  background: rgba(250,249,249,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.hdr-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  color: var(--surface-white);
  transition: opacity var(--trans-fast);
}
.brand:hover { opacity: .85; }
#hdr.scrolled .brand { color: var(--on-surface); }
.brand img { border-radius: var(--r-sm); }
.brand span {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: inherit;
}
.brand strong { font-weight: 700; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav a {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: .4rem .75rem;
  border-radius: var(--r-full);
  transition: color var(--trans-fast), background var(--trans-fast);
  letter-spacing: -.01em;
}
.nav a:hover { color: var(--primary-container); }
#hdr.scrolled .nav a { color: var(--on-surface-variant); }
#hdr.scrolled .nav a:hover {
  color: var(--on-primary-fixed);
  background: var(--primary-container);
}

/* Header end */
.hdr-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.hdr-tel {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--font-label);
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: color var(--trans-fast);
}
.hdr-tel:hover { color: var(--primary-container); }
#hdr.scrolled .hdr-tel { color: var(--on-surface-variant); }
#hdr.scrolled .hdr-tel:hover { color: var(--primary); }

.btn-cta {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 700;
  color: var(--on-primary-fixed);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  padding: .5rem 1.25rem;
  border-radius: var(--r-full);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  white-space: nowrap;
}
.btn-cta:hover {
  box-shadow: 0 6px 20px rgba(112,93,0,.38);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: .5rem;
  border-radius: var(--r-sm);
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: transform var(--trans-base), opacity var(--trans-base);
}
#hdr.scrolled .burger span { background: var(--on-surface); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── WRAP ── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-primary-fixed);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  padding: .875rem 2rem;
  border-radius: var(--r-full);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(112,93,0,.42);
}
.btn-primary:active { transform: scale(.98); }

.btn-xl { padding: 1.125rem 2.5rem; font-size: 1.0625rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  padding: .875rem 2rem;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,.3);
  transition: background var(--trans-base), border-color var(--trans-base);
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface);
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  padding: .875rem 2rem;
  border-radius: var(--r-full);
  transition: background var(--trans-base), transform var(--trans-base);
  white-space: nowrap;
  color: rgba(255,255,255,.85);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.16);
}

/* ── SEC LABEL ── */
.sec-label {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: .75rem;
}
.sec-label--light { color: var(--primary-container); opacity: .85; }

/* ── SECTION HEAD ── */
.sec-head { margin-bottom: 3.5rem; }
.sec-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.1;
}

/* ── SECTION BASE ── */
.sec { padding: 7rem 0; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--hdr-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26,28,28,.52);
}
#three-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .75;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-body {
  position: relative;
  z-index: 10;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 5rem 1.5rem 9rem;
  width: 100%;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-primary-fixed);
  background: var(--primary-container);
  padding: .375rem .875rem;
  border-radius: var(--r-xs);
  margin-bottom: 1.75rem;
}
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse-ring 2s ease-out infinite;
}

/* H1 */
.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.hero-title em {
  display: block;
  font-style: normal;
  color: var(--primary-container);
}
.hero-title span { display: block; }

/* Sub */
.hero-sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.5rem;
  max-width: 44ch;
}

/* Buttons */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Chips */
.hero-chips {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: .375rem .875rem;
  border-radius: var(--r-full);
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
}
.chip-stars { color: var(--primary-container); }

/* ── STATS STRIP ── */
.stats-strip {
  position: relative;
  z-index: 20;
  margin-top: -5rem;
  max-width: calc(var(--wrap) - 3rem);
  margin-left: auto;
  margin-right: auto;
}
.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface-white);
  box-shadow: var(--shadow-xl);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ssi-item {
  padding: 2rem;
  border-right: 1px solid rgba(208,198,171,.15);
}
.ssi-item:last-child { border-right: none; }
.ssi-num-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
}
.ssi-num {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.04em;
  line-height: 1;
}
.ssi-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: .75rem;
  flex-shrink: 0;
}
.ssi-label {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* ── MARQUEE ── */
.marquee-band {
  background: var(--on-primary-fixed);
  padding: .9rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,215,0,.65);
  white-space: nowrap;
}
.marquee-track span[aria-hidden="true"] {
  color: rgba(255,215,0,.25);
  font-size: .5rem;
  align-self: center;
}

/* ── BENTO GRID ── */
.bento-sec { background: var(--surface-low); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Shared cell styles */
.b-cell {
  background: var(--surface-white);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}
.b-cell:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: var(--shadow-md);
}

/* Icon badge */
.b-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--primary-container);
  border-radius: 50%;
  color: var(--on-primary-fixed);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.b-cell h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: .625rem;
  letter-spacing: -.015em;
}
.b-cell p {
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.b-tags {
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
  margin-top: 1.125rem;
}
.b-tags span {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--on-primary-container);
  background: rgba(255,215,0,.18);
  padding: .25rem .625rem;
  border-radius: var(--r-full);
}

/* Cell positions */
.b-a { grid-column: 1 / 3; grid-row: 1 / 3; padding: 0; }
.b-b { grid-column: 3; grid-row: 1; }
.b-c { grid-column: 4; grid-row: 1; }
.b-d { grid-column: 3; grid-row: 2; }
.b-e { grid-column: 4; grid-row: 2; }
.b-f { grid-column: 1; grid-row: 3; }
.b-g { grid-column: 2; grid-row: 3; }
.b-h { grid-column: 3 / 5; grid-row: 3; }

/* Featured cell A */
.b-a { position: relative; cursor: default; }
.b-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .7s ease;
}
.b-a:hover .b-img { transform: scale(1.04); }
.b-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,28,28,.85) 0%, rgba(26,28,28,.2) 50%, transparent 100%);
}
.b-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem;
  z-index: 2;
}
.b-content h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.b-content p {
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  line-height: 1.55;
}
.b-content .b-icon-badge { margin-bottom: 1rem; }
.b-content .b-tags span {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.b-a:hover { transform: none; }
.b-a .b-cell:hover { box-shadow: none; }

/* Stat cells */
.b-stat {
  background: var(--on-surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  cursor: default;
}
.b-stat--alt { background: var(--primary); }
.b-big-num {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary-container);
  display: block;
  margin-bottom: .5rem;
  transition: color var(--trans-base);
}
.b-big-num.counting { color: #fff; }
.b-stat--alt .b-big-num { color: var(--on-primary-fixed); }
.b-big-label {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: block;
}
.b-stat--alt .b-big-label { color: rgba(34,27,0,.65); }
.b-big-sub {
  font-family: var(--font-body);
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  display: block;
  margin-top: .25rem;
}
.b-stat:hover { transform: none; box-shadow: none; }

/* ── STORY SECTION ── */
.story-sec {
  padding: 7rem 0;
  background: var(--surface-container);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.story-chapter {
  background: var(--surface-white);
  padding: 2rem;
  border-radius: var(--r-lg);
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-top-color var(--trans-base);
  border-top: 3px solid transparent;
  cursor: default;
}
.story-chapter:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary-container);
}
.chapter-num {
  font-family: var(--font-label);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--primary-container);
  background: var(--on-primary-fixed);
  padding: .25rem .625rem;
  border-radius: var(--r-full);
  display: inline-block;
  margin-bottom: 1.25rem;
}
.story-chapter h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: .75rem;
  letter-spacing: -.015em;
}
.story-chapter p {
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

/* ── PROJECTS ── */
.proj-sec { background: var(--surface-white); }
.proj-magazine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.proj-main, .proj-sm, .proj-wide {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin: 0;
  cursor: pointer;
}
.proj-main { grid-row: span 2; }
.proj-side { display: grid; gap: 1rem; }
.proj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.proj-main img, .proj-sm img, .proj-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.proj-main { height: 540px; }
.proj-sm { height: 260px; }
.proj-wide { height: 240px; }
.proj-main:hover img,
.proj-sm:hover img,
.proj-wide:hover img { transform: scale(1.06); }

figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.25rem .75rem;
  background: linear-gradient(to top, rgba(26,28,28,.8), transparent);
  opacity: 0;
  transition: opacity var(--trans-base);
}
.proj-main:hover figcaption,
.proj-sm:hover figcaption,
.proj-wide:hover figcaption { opacity: 1; }
figcaption span {
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

/* ── STATS DARK ── */
.stats-dark {
  background: var(--on-primary-fixed);
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.sd-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: left;
}
.sd-item:last-child { border-right: none; }
.sd-n {
  font-family: var(--font-headline);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
  color: var(--primary-container);
  transition: color var(--trans-base);
}
.sd-n.counting { color: #fff; }
.sd-l {
  display: block;
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.sd-s {
  display: block;
  font-family: var(--font-body);
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  margin-top: .25rem;
}

/* ── TESTIMONIALS ── */
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tcard {
  background: var(--surface-low);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcard--hl { background: var(--on-primary-fixed); }
.tq-mark {
  width: 2rem; height: 1.6rem;
  color: var(--outline-variant);
  flex-shrink: 0;
}
.tcard--hl .tq-mark { color: rgba(255,215,0,.3); }
.tcard-stars {
  font-size: .9375rem;
  letter-spacing: .1em;
  color: var(--primary-container);
}
.tcard blockquote {
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  font-style: italic;
  flex: 1;
}
.tcard--hl blockquote { color: rgba(255,255,255,.75); }
.tcard-foot {
  display: flex;
  align-items: center;
  gap: .875rem;
  border-top: 1px solid rgba(208,198,171,.2);
  padding-top: 1rem;
  margin-top: auto;
}
.tcard--hl .tcard-foot { border-top-color: rgba(255,255,255,.1); }
.tcard-av {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-fixed);
  font-family: var(--font-headline);
  font-size: .8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tcard--hl .tcard-av { background: rgba(255,215,0,.2); color: var(--primary-container); }
.tcard-name {
  font-family: var(--font-headline);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--on-surface);
  font-style: normal;
  display: block;
}
.tcard--hl .tcard-name { color: #fff; }
.tcard-loc {
  font-family: var(--font-body);
  font-size: .8125rem;
  color: var(--on-surface-dim);
  display: block;
  margin-top: .125rem;
}
.tcard--hl .tcard-loc { color: rgba(255,255,255,.45); }

/* ── FAQ ── */
.faq-sec { background: var(--surface-white); }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.75fr;
  gap: 5rem;
  align-items: start;
}
.faq-left { position: sticky; top: calc(var(--hdr-h) + 2rem); }
.faq-left h2 { font-size: 2.5rem; font-weight: 700; color: var(--on-surface); margin-bottom: 1rem; }
.faq-left p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
}

.faq-item {
  border-bottom: 1px solid rgba(208,198,171,.3);
  transition: border-color var(--trans-base);
}
.faq-item:last-child { border-bottom: none; }
.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-bottom-color: var(--primary-container);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.375rem 0;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
  transition: color var(--trans-fast);
}
.faq-q:hover { color: var(--primary); }
.faq-q[aria-expanded="true"] { color: var(--primary); }
.faq-arr {
  width: 1.125rem; height: 1.125rem;
  flex-shrink: 0;
  color: var(--outline);
  transition: transform var(--trans-base), color var(--trans-base);
}
.faq-q[aria-expanded="true"] .faq-arr {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-a p {
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  padding-bottom: 1.5rem;
}

/* ── CTA SECTION ── */
.cta-sec {
  background: var(--on-primary-fixed);
  padding: 7rem 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.cta-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-top: .75rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.cta-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}
.cta-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  grid-column: 1 / -1;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  transition: background var(--trans-fast), border-color var(--trans-fast);
}
.contact-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,215,0,.2);
}
.cc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: rgba(255,215,0,.12);
  border-radius: 50%;
  color: var(--primary-container);
  flex-shrink: 0;
}
.contact-card strong {
  display: block;
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: .25rem;
}
.contact-card span,
.contact-card a {
  font-family: var(--font-body);
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--trans-fast);
}
.contact-card a:hover { color: var(--primary-container); }
.cta-btns {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── FOOTER ── */
.footer { background: var(--surface-low); padding-top: 5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
.ft-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.ft-logo img { border-radius: var(--r-sm); }
.ft-logo span {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -.02em;
}
.ft-brand p {
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin-bottom: 1.25rem;
}
.ft-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.ft-badges span {
  font-family: var(--font-label);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-primary-container);
  background: rgba(255,215,0,.2);
  padding: .25rem .625rem;
  border-radius: var(--r-full);
}
.ft-col h3 {
  font-family: var(--font-headline);
  font-size: .875rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.ft-col ul { display: flex; flex-direction: column; gap: .625rem; }
.ft-col ul li {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--on-surface-variant);
}
.ft-col a {
  color: var(--on-surface-variant);
  transition: color var(--trans-fast);
}
.ft-col a:hover { color: var(--primary); }
.ft-social {
  display: flex;
  gap: .625rem;
  margin-top: 1.5rem;
}
.ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  background: var(--surface-container);
  border-radius: 50%;
  color: var(--on-surface-variant);
  transition: background var(--trans-fast), color var(--trans-fast);
}
.ft-social a:hover {
  background: var(--primary-container);
  color: var(--on-primary-fixed);
}
.ft-bar {
  border-top: 1px solid rgba(208,198,171,.3);
  padding: 1.5rem 0;
}
.ft-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.ft-bar p {
  font-family: var(--font-label);
  font-size: .75rem;
  color: var(--on-surface-dim);
}

/* ── FLOATING BUTTONS ── */
.fabs {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}
.fab:hover { transform: scale(1.12); box-shadow: var(--shadow-xl); }
.fab.bouncing { animation: fab-bounce .6s cubic-bezier(.4,0,.2,1); }
.fab-wa { background: #25D366; }
.fab-fb { background: #1877F2; }
.fab-ph { background: var(--primary); }

/* ── BACK TO TOP ── */
#btt {
  position: fixed;
  bottom: 6rem;
  left: 1.5rem;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--on-primary-fixed);
  color: var(--primary-container);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity var(--trans-base), transform var(--trans-base);
}
#btt.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#btt:hover { background: var(--primary); color: var(--on-primary); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 550ms cubic-bezier(.4,0,.2,1), transform 550ms cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── KEYFRAMES ── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes fab-bounce {
  0%,100% { transform: scale(1); }
  30%      { transform: scale(1.18); }
  60%      { transform: scale(.95); }
  80%      { transform: scale(1.06); }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  #three-canvas { display: none; }
}

/* ── 1100px ── */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .b-a { grid-column: 1 / 3; grid-row: 1 / 3; }
  .b-b { grid-column: 3; grid-row: 1; }
  .b-c { grid-column: 3; grid-row: 2; }
  .b-d { grid-column: 1; grid-row: 3; }
  .b-e { grid-column: 2; grid-row: 3; }
  .b-f { grid-column: 3; grid-row: 3; }
  .b-g { grid-column: 1; grid-row: 4; }
  .b-h { grid-column: 2 / 4; grid-row: 4; }

  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .ssi-item:nth-child(2) { border-right: none; }
  .ssi-item:nth-child(3) { border-top: 1px solid rgba(208,198,171,.15); }
  .ssi-item:nth-child(4) { border-top: 1px solid rgba(208,198,171,.15); border-right: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  :root { --hdr-h: 4rem; }

  .burger { display: flex; margin-left: auto; }
  .hdr-end { gap: .625rem; }
  .hdr-tel { display: none; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(18rem, 80vw);
    background: var(--surface-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--hdr-h) + 1.5rem) 1.75rem 2rem;
    gap: .25rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--trans-slow);
    z-index: 850;
    margin-left: 0;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    width: 100%;
    font-size: 1rem;
    padding: .75rem 1rem;
    color: var(--on-surface-variant);
    border-radius: var(--r-md);
  }
  .nav a:hover {
    color: var(--on-primary-fixed);
    background: var(--primary-container);
  }

  .hero-body { padding: 4rem 1.5rem 7rem; }
  .hero-title { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { justify-content: center; }

  .stats-strip { margin: -3rem 1rem 0; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .ssi-item:nth-child(2) { border-right: none; }
  .ssi-item:nth-child(3) { border-top: 1px solid rgba(208,198,171,.15); border-right: 1px solid rgba(208,198,171,.15); }
  .ssi-item:nth-child(4) { border-top: 1px solid rgba(208,198,171,.15); border-right: none; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-a { grid-column: 1 / 3; grid-row: 1; min-height: 320px; }
  .b-b { grid-column: 1; grid-row: 2; }
  .b-c { grid-column: 2; grid-row: 2; }
  .b-d { grid-column: 1; grid-row: 3; }
  .b-e { grid-column: 2; grid-row: 3; }
  .b-f { grid-column: 1; grid-row: 4; }
  .b-g { grid-column: 2; grid-row: 4; }
  .b-h { grid-column: 1 / 3; grid-row: 5; }

  .story-grid { grid-template-columns: 1fr; gap: 1rem; }

  .proj-magazine { grid-template-columns: 1fr; }
  .proj-main { height: 300px; }
  .proj-side { grid-template-columns: 1fr 1fr; }
  .proj-sm { height: 180px; }
  .proj-row { grid-template-columns: 1fr; }
  .proj-wide { height: 200px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sd-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }

  .tgrid { grid-template-columns: 1fr; }

  .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-left { position: static; }

  .cta-contacts { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ft-bar-inner { flex-direction: column; text-align: center; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .sec { padding: 4.5rem 0; }
  .sec-head { margin-bottom: 2.5rem; }

  .bento { grid-template-columns: 1fr; }
  .b-a, .b-b, .b-c, .b-d, .b-e,
  .b-f, .b-g, .b-h {
    grid-column: auto;
    grid-row: auto;
  }
  .b-a { min-height: 280px; }

  .stats-strip { margin: -2.5rem .75rem 0; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .ssi-item { padding: 1.25rem; }
  .ssi-num { font-size: 2rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-chips { gap: .375rem; }
  .cta-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   CHATBOT — Arturo
   ══════════════════════════════════════════════════════════ */
.chatbot {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 851;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

/* ── Toggle button ── */
.chat-toggle {
  display: flex;
  align-items: center;
  gap: .625rem;
  background: linear-gradient(135deg, var(--primary) 0%, #b89400 100%);
  color: var(--on-primary);
  border-radius: var(--r-full);
  padding: .625rem 1rem .625rem .625rem;
  box-shadow: 0 8px 24px rgba(112,93,0,.40);
  cursor: pointer;
  position: relative;
  font-family: var(--font-label);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: box-shadow var(--trans-base), transform var(--trans-base);
  white-space: nowrap;
}
.chat-toggle:hover { box-shadow: 0 12px 32px rgba(112,93,0,.5); }

.chat-av-sm {
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-badge {
  position: absolute;
  top: -.3rem;
  right: -.3rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 700;
  font-family: var(--font-label);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

@keyframes chat-shake {
  0%,100% { transform: rotate(0) scale(1); }
  20%      { transform: rotate(-10deg) scale(1.08); }
  40%      { transform: rotate(10deg) scale(1.08); }
  60%      { transform: rotate(-5deg) scale(1.04); }
  80%      { transform: rotate(5deg) scale(1.04); }
}
.chat-toggle.shake { animation: chat-shake .65s cubic-bezier(.4,0,.2,1); }

/* ── Chat window ── */
.chat-win {
  position: absolute;
  bottom: calc(100% + .875rem);
  left: 0;
  width: 340px;
  background: var(--surface-white);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(26,28,28,.22), 0 4px 16px rgba(26,28,28,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(500px, calc(100vh - 8rem));
  transform: scale(.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom left;
  transition: transform var(--trans-slow), opacity var(--trans-slow);
}
.chat-win.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ── Header ── */
.chat-hdr {
  background: linear-gradient(135deg, var(--primary) 0%, #b89400 100%);
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-shrink: 0;
}
.chat-hdr-av {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-hdr-info { flex: 1; min-width: 0; }
.chat-hdr-name {
  font-family: var(--font-headline);
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1.2;
}
.chat-hdr-status {
  font-family: var(--font-label);
  font-size: .6875rem;
  color: rgba(255,255,255,.82);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .15rem;
}
.chat-status-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-reset-btn {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: none; cursor: pointer;
  color: rgba(255,255,255,.75);
  display: grid; place-items: center;
  transition: background var(--trans-fast), transform .35s ease;
  flex-shrink: 0;
}
.chat-reset-btn:hover { background: rgba(255,255,255,.22); transform: rotate(-180deg); }
.chat-close-btn {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans-fast);
  flex-shrink: 0;
}
.chat-close-btn:hover { background: rgba(255,255,255,.28); }

/* ── Messages ── */
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: .875rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  scroll-behavior: smooth;
}
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-track { background: transparent; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 4px; }

.chat-msg {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  max-width: 90%;
}
.chat-msg--bot { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; flex-direction: row-reverse; max-width: 80%; }

.chat-msg-av {
  width: 1.75rem; height: 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, #b89400 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble {
  padding: .625rem .875rem;
  border-radius: 1rem;
  font-family: var(--font-body);
  font-size: .875rem;
  line-height: 1.55;
  max-width: 100%;
  word-break: break-word;
}
.chat-msg--bot .chat-bubble {
  background: var(--surface-low);
  color: var(--on-surface);
  border-bottom-left-radius: .25rem;
}
.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, var(--primary) 0%, #9a7f00 100%);
  color: #fff;
  border-bottom-right-radius: .25rem;
}

/* ── Typing indicator ── */
.chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: .25rem 0;
  align-items: center;
}
.chat-typing-dots span {
  width: 6px; height: 6px;
  background: var(--on-surface-dim);
  border-radius: 50%;
  animation: tdot .9s ease-in-out infinite;
}
.chat-typing-dots span:nth-child(2) { animation-delay: .16s; }
.chat-typing-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes tdot {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

/* ── Action buttons ── */
.chat-actions {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin: .375rem 0 .25rem 2.25rem;
}
.chat-act-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-label);
  font-size: .8rem;
  font-weight: 700;
  padding: .5rem .875rem;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--trans-fast), box-shadow var(--trans-fast);
  line-height: 1;
}
.chat-act-btn:hover { opacity: .88; box-shadow: var(--shadow-sm); }
.chat-act-btn--wa { background: #25D366; color: #fff; }
.chat-act-btn--tel { background: var(--surface-container); color: var(--on-surface); border: 1px solid var(--outline-variant); }

/* ── Quick replies ── */
.chat-quick {
  padding: .5rem .875rem .625rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  flex-shrink: 0;
  border-top: 1px solid var(--surface-container);
  min-height: 0;
}
.chat-qr {
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(112,93,0,.07);
  border: 1px solid rgba(112,93,0,.18);
  padding: .3rem .7rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast);
  white-space: nowrap;
}
.chat-qr:hover { background: var(--primary); color: var(--on-primary); border-color: transparent; }

/* ── Input row ── */
.chat-input-row {
  padding: .625rem .875rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  border-top: 1px solid var(--surface-container);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--on-surface);
  background: var(--surface-low);
  border: none;
  border-radius: var(--r-full);
  padding: .5rem .875rem;
  outline: none;
  transition: box-shadow var(--trans-fast);
}
.chat-input:focus { box-shadow: 0 0 0 2px var(--primary-container); }
.chat-input::placeholder { color: var(--on-surface-dim); }
.chat-send {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #b89400 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow var(--trans-fast);
}
.chat-send:hover { box-shadow: 0 4px 12px rgba(112,93,0,.35); }

@media (max-width: 768px) {
  .chatbot { left: 1rem; bottom: 1rem; }
  .chat-win {
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: calc(100vh - 7rem);
  }
}
