/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f1e6;
  --bg-2:      #ece4d0;
  --bg-3:      #f1eadc;
  --bg-4:      #e3d9be;
  --cream:     #2a3126;
  --cream-2:   #4e5643;
  --cream-3:   #6c7260;
  --accent:    #3e5237;
  --accent-2:  #2c3b27;
  --gold:      #8c6f2e;
  --line:      rgba(42, 49, 38, 0.12);
  --line-2:    rgba(42, 49, 38, 0.24);
  --shadow:    0 30px 60px -25px rgba(42, 49, 38, 0.22);

  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.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;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
em { font-style: italic; color: var(--accent); font-family: var(--serif); }
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .4em 1em; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .82rem; color: var(--cream-2); font-family: var(--mono);
}
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { color: var(--cream-2); font-size: 1.05rem; margin-top: 1rem; max-width: 52ch; }
.section-head.center { margin-inline: auto; text-align: center; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 2em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  box-shadow: 0 16px 36px -14px rgba(62, 82, 55, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -12px rgba(62, 82, 55, .45); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--cream);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-sm { padding: .75em 1.4em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* Cards with tilt-halo signature */
.tilt-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  padding: 2.2rem;
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card::before {
  content: "";
  position: absolute; inset: -40% -40%;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgba(62,82,55,.16), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.tilt-card:hover { border-color: var(--line-2); }
.tilt-card:hover::before { opacity: 1; }
.tilt-card > * { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(246, 241, 230, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em; }
.nav-brand span { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--cream-3); text-transform: uppercase; }
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a { font-size: .92rem; color: var(--cream-2); position: relative; padding-block: .3em; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent);
  transition: right .4s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  align-items: center; justify-content: center; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--cream); position: relative;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(246,241,230,.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; padding: 2rem 1.5rem;
  gap: 1.4rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.nav.is-open .nav-mobile { transform: none; opacity: 1; pointer-events: auto; }
.nav-mobile a { font-family: var(--serif); font-size: 1.6rem; }
.nav-mobile .btn { margin-top: 1rem; align-self: flex-start; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* Form */
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.1rem; }
.field label { font-size: .82rem; color: var(--cream-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .9em 1em; color: var(--cream);
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; background: var(--bg-3); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .82rem; color: var(--cream-3); margin-top: .8rem; }
.form-status { margin-top: 1rem; font-size: .9rem; padding: .8em 1em; border-radius: var(--radius-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(62,82,55,.12); border: 1px solid rgba(62,82,55,.35); color: var(--cream); }
.form-status.err { background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.35); color: #ffd7d7; }

/* Accordion (FAQ) */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.6rem 0; text-align: left; font-size: 1.05rem; font-weight: 600; color: var(--cream);
}
.accordion-trigger .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.accordion-trigger .ic::before, .accordion-trigger .ic::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--cream);
  transform: translate(-50%,-50%);
}
.accordion-trigger .ic::before { width: 10px; height: 1.4px; }
.accordion-trigger .ic::after { width: 1.4px; height: 10px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.accordion-item.is-open .accordion-trigger .ic::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.accordion-item.is-open .accordion-trigger .ic { border-color: var(--accent); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.accordion-panel-inner { padding-bottom: 1.6rem; color: var(--cream-2); max-width: 68ch; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8,6,4,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: rgba(16,13,10,.6); color: rgba(246,241,230,.92);
}
.lightbox-close:hover { border-color: rgba(246,241,230,.8); }

/* =============================================================
   6. Sections
   ============================================================= */
main { overflow-x: clip; }
section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-halo {
  position: absolute; inset: -30% -10% -10% -10%; z-index: 0;
  background: radial-gradient(45% 40% at 22% 30%, rgba(62,82,55,.14), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1; width: 100%;
  display: grid; gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 2rem; }
}
.hero-copy .eyebrow { margin-bottom: 1.6rem; }
.hero-title { max-width: 14ch; }
.hero-title .line { display: block; }
.hero-question {
  font-family: var(--serif); font-style: italic; color: var(--accent);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-top: .6rem;
}
.hero-sub { color: var(--cream-2); font-size: 1.15rem; max-width: 46ch; margin-top: 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-badges {
  display: flex; flex-wrap: nowrap; gap: .7rem; margin-top: 3rem;
  overflow-x: auto; padding-bottom: .3rem;
}
.hero-badges .pill { flex: none; }

.hero-visual { position: relative; }
.hero-figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover;
}

/* --- Qué trabajamos --- */
.work-grid { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card h3 { margin-bottom: 1rem; }
.work-card p { color: var(--cream-2); }
.work-quote {
  margin-top: 3.4rem;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--cream); max-width: 42ch; line-height: 1.3;
  padding-left: 1.6rem; border-left: 2px solid var(--accent);
}

/* --- Fitness Sostenible --- */
.section-fs { background: var(--bg-2); }
.fs-grid { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .fs-grid { grid-template-columns: 1fr 1fr; } }
.pillar-card .n { font-family: var(--mono); color: var(--accent); font-size: .85rem; display: block; margin-bottom: 1rem; }

/* --- Paso a paso (timeline signature) --- */
.timeline { position: relative; }
.timeline-rail {
  display: none;
}
.step {
  position: relative;
  display: grid; gap: 1.2rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .step { grid-template-columns: 120px 1fr; align-items: start; gap: 2rem; }
  .timeline-rail { display: block; position: sticky; top: calc(var(--nav-h) + 1rem); }
}
.step-num {
  font-family: var(--mono); font-size: 3rem; color: var(--line-2);
  transition: color .5s var(--ease-out);
  line-height: 1;
}
.step.is-active .step-num { color: var(--accent); }
.step-body h3 { margin-bottom: .7rem; }
.step-body p { color: var(--cream-2); max-width: 56ch; }

/* --- Tools --- */
.tools-grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: .8rem; }
.tool-card .badge {
  display: inline-flex; align-self: flex-start; padding: .4em 1em; border-radius: 999px;
  background: rgba(62,82,55,.12); border: 1px solid rgba(62,82,55,.32);
  font-family: var(--mono); font-size: .78rem; color: var(--accent);
}

/* --- Results gallery --- */
.section-results { background: var(--bg-2); }
.results-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .results-grid { grid-template-columns: repeat(4, 1fr); } }
.result-card {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line);
}
.result-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .5s var(--ease-out);
}
.result-card:hover img { transform: scale(1.06); }
.result-card::after {
  content: "Ampliar +";
  position: absolute; inset: auto 0 0 0; padding: .8rem 1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em;
  color: rgba(246,241,230,.92); background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.result-card:hover::after { opacity: 1; }
.results-note { margin-top: 2rem; color: var(--cream-3); font-size: .88rem; max-width: 60ch; }

/* --- Food --- */
.food-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .food-grid { grid-template-columns: repeat(3, 1fr); } }
.food-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.food-card img { aspect-ratio: 1/1; object-fit: cover; transition: transform .7s var(--ease-out); }
.food-card:hover img { transform: scale(1.08); }

/* --- Testimonials --- */
.section-testi { background: var(--bg-2); }
.testi-grid { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
  background: var(--bg-3);
}
.testi-avatar {
  width: 52px; height: 52px; border-radius: 50%; border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center; color: var(--cream-3); font-family: var(--mono); font-size: .7rem;
}
.testi-card .tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--gold);
  border: 1px solid rgba(140,111,46,.4); padding: .3em .8em; border-radius: 999px; background: rgba(140,111,46,.1);
}
.testi-card p { color: var(--cream-3); font-size: .92rem; }
.testi-card .name { font-family: var(--sans); font-weight: 700; font-size: .85rem; color: var(--cream); margin-top: auto; }
.testi-empty { color: var(--cream-3); font-size: .95rem; grid-column: 1 / -1; }
.testi-form { margin-top: 2.4rem; max-width: 640px; }
.testi-form h3 { margin-bottom: 1.4rem; }
.testi-consent { display: flex; align-items: flex-start; gap: .6em; font-size: .85rem; color: var(--cream-2); margin-bottom: 1.2rem; cursor: pointer; }
.testi-consent input { margin-top: .2em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* --- Quiz banner + modal --- */
.quiz-banner {
  border-radius: var(--radius); padding: clamp(2.4rem, 5vw, 4rem);
  background: linear-gradient(145deg, var(--bg-4), var(--bg-2));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start;
  position: relative; overflow: hidden;
}
.quiz-banner::before {
  content: ""; position: absolute; inset: -60% -10% -10% auto; width: 60%;
  background: radial-gradient(circle, rgba(224,103,42,.25), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.quiz-banner h2 { max-width: 16ch; }

.quiz-modal {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(8,6,4,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
.quiz-modal.is-open { opacity: 1; pointer-events: auto; }
.quiz-box {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  transform: translateY(20px); transition: transform .4s var(--ease-out);
}
.quiz-modal.is-open .quiz-box { transform: none; }
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.quiz-progress-track { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-inline: 1rem; }
.quiz-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .5s var(--ease-out); }
.quiz-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.quiz-close:hover { border-color: var(--accent); color: var(--accent); }
.quiz-step-label { font-family: var(--mono); font-size: .74rem; color: var(--cream-3); }
.quiz-question { margin-top: .6rem; margin-bottom: 1.6rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.quiz-options { display: grid; gap: .8rem; }
.quiz-option {
  text-align: left; padding: 1em 1.2em; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); transition: border-color .3s var(--ease-out), background .3s var(--ease-out), transform .3s var(--ease-out);
}
.quiz-option:hover { border-color: var(--accent); transform: translateX(4px); }
.quiz-option.is-selected { border-color: var(--accent); background: rgba(224,103,42,.12); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 1.6rem; }
.quiz-result { display: none; }
.quiz-result.is-visible { display: block; }
.quiz-result p { color: var(--cream-2); margin-bottom: 1rem; }
.quiz-result .disclaimer { font-size: .82rem; color: var(--cream-3); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.4rem; }
.quiz-form { display: none; }
.quiz-form.is-visible { display: block; }

/* --- FAQ --- */
.faq-list { max-width: 780px; }

/* --- Chat --- */
.chat-launcher {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 32px -12px rgba(224,103,42,.7);
  color: #1a0d05; font-size: 1.4rem;
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-panel {
  position: fixed; right: 1.4rem; bottom: 9.6rem; z-index: 200;
  width: min(360px, calc(100vw - 2.4rem)); max-height: min(560px, 70vh);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .7rem; }
.chat-head strong { font-family: var(--sans); font-size: .95rem; }
.chat-head span { display: block; font-size: .72rem; color: var(--cream-3); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #58d16b; flex: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.chat-msg { max-width: 88%; padding: .7em 1em; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.chat-msg.bot { background: var(--bg-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: rgba(224,103,42,.18); border: 1px solid rgba(224,103,42,.4); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.2rem 1rem; }
.chat-suggest button { font-size: .76rem; padding: .5em .9em; border-radius: 999px; border: 1px solid var(--line-2); color: var(--cream-2); }
.chat-suggest button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: .6rem; padding: .9rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .7em 1.1em; color: var(--cream); }
.chat-form button { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #1a0d05; flex: none; }

/* --- WhatsApp float --- */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.wa-options { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .2rem; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.wa-float.is-open .wa-options { opacity: 1; transform: none; pointer-events: auto; }
.wa-option {
  display: flex; align-items: center; gap: .7rem; background: var(--bg-3); border: 1px solid var(--line-2);
  padding: .6rem 1rem .6rem .6rem; border-radius: 999px; box-shadow: var(--shadow);
}
.wa-option:hover { border-color: #25d366; }
.wa-option .ic { width: 34px; height: 34px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; color: #06210f; flex: none; }
.wa-option strong { display: block; font-size: .85rem; }
.wa-option span { display: block; font-size: .72rem; color: var(--cream-3); }
.wa-toggle {
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #06210f;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 16px 32px -12px rgba(37,211,102,.7);
}
.wa-toggle:hover { transform: scale(1.06); }

/* --- Contact --- */
.contact-grid { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-side .pill { margin-top: 1.6rem; }
.contact-card { padding: 2rem; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}
.footer-grid { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-brand strong { font-family: var(--serif); font-size: 1.3rem; }
.footer-brand p { color: var(--cream-3); font-size: .85rem; margin-top: .6rem; max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { font-size: .88rem; color: var(--cream-2); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--cream-3); max-width: 70ch; }

/* =============================================================
   7. Effects
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash-mark { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--cream); opacity: .8; }
.splash.is-out { animation: splashOut .7s var(--ease-out) forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }

/* =============================================================
   8. Responsive helpers already inline per-component above
   ============================================================= */
@media (min-width: 540px) {}
@media (min-width: 960px) {
  .hero-title { max-width: 12ch; }
}
@media (min-width: 1280px) {}

/* =============================================================
   9. Reduced motion — only intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash { display: none; }
}
