/* ============================================================
   Mente Colectiva — design system (v2, elevated)
   Warm, editorial, calm. Salvia sage + Arcilla terracotta.
   Fraunces (display serif) + Inter (UI/body).
   Tokens mirror wiki/brand/design-system.md
   ============================================================ */

:root {
  /* Palette */
  --salvia: #3E8E7E;
  --salvia-dark: #2C6B5E;
  --salvia-deep: #234f45;
  --arcilla: #E07856;
  --arcilla-dark: #c4623f;
  --durazno: #FBEDE6;
  --arena: #FAF8F4;
  --arena-2: #F4EFE7;
  --tinta: #23241F;
  --piedra: #6B6F6A;
  --disponible: #2E9E6B;
  --ocupado: #C9742E;
  --error: #C0492F;

  --white: #FFFFFF;
  --line: #E7E0D6;
  --line-soft: #F0EAE1;
  --salvia-tint: #E6F0EC;
  --salvia-tint-2: #D7E8E2;

  /* Type */
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Warm, layered shadows */
  --sh-1: 0 1px 2px rgba(44,79,69,.05), 0 2px 6px rgba(44,79,69,.05);
  --sh-2: 0 2px 6px rgba(44,79,69,.06), 0 10px 24px -8px rgba(44,79,69,.12);
  --sh-3: 0 4px 10px rgba(44,79,69,.07), 0 24px 48px -14px rgba(44,79,69,.20);
  --sh-arcilla: 0 14px 34px -12px rgba(196,98,63,.42);
  --sh-salvia: 0 16px 38px -14px rgba(44,107,94,.45);

  /* Motion */
  --ease: cubic-bezier(.22,.7,.2,1);

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(18px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tinta);
  background-color: var(--arena);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Filmic grain overlay (injected by app.js as <div class="grain">) */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--tinta);
  margin: 0 0 .4em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 460; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.26rem; font-weight: 520; }

p { margin: 0 0 1rem; }
a { color: var(--salvia-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }
::selection { background: var(--salvia-tint-2); color: var(--salvia-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.muted { color: var(--piedra); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--salvia-dark); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .55; }
.eyebrow.no-rule::before { display: none; }

.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; z-index: 2; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; position: relative; z-index: 2; }
.section-head { max-width: 660px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--piedra); font-size: 1.1rem; }

/* ---------- Icons (SVG injected via app.js from data-icon) ---------- */
.ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: inherit; line-height: 0; }
.ico svg { width: 1.2em; height: 1.2em; display: block; stroke: currentColor; fill: none; }
.ico-circle {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: var(--salvia-tint); color: var(--salvia-dark);
}
.ico-circle svg { width: 21px; height: 21px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--salvia); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-size: .98rem; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .18s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico svg { width: 1.05em; height: 1.05em; }
.btn-primary { box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--salvia-dark); box-shadow: var(--sh-salvia); }
.btn-accent { --btn-bg: var(--arcilla); }
.btn-accent:hover { background: var(--arcilla-dark); box-shadow: var(--sh-arcilla); }
.btn-secondary { --btn-bg: var(--white); --btn-fg: var(--salvia-dark); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-secondary:hover { border-color: var(--salvia); background: var(--salvia-tint); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--tinta); }
.btn-ghost:hover { background: rgba(35,36,31,.05); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-sm { padding: 11px 18px; font-size: .9rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.82);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(231,224,214,.8);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 1.32rem; font-weight: 560; color: var(--tinta); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, var(--salvia) 10%, var(--salvia-dark) 90%);
  display: grid; place-items: center; color: #fff; font-size: 1.05rem; font-weight: 600;
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.25);
}
.nav-links { display: none; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; color: var(--tinta); font-weight: 500; font-size: .96rem; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--salvia); transition: right .25s var(--ease); }
.nav-links a:hover { text-decoration: none; color: var(--salvia-dark); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; align-items: center; gap: 12px; }
.nav-burger { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--tinta); padding: 8px; line-height: 0; }
.nav-burger .ico svg { width: 26px; height: 26px; }
@media (max-width: 879px) {
  .nav-links.show-mobile {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--arena); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px; box-shadow: var(--sh-2);
    animation: fadeUp .3s var(--ease) both;
  }
  .nav-links.show-mobile a { padding: 16px 4px; border-bottom: 1px solid var(--line-soft); font-size: 1.06rem; }
  .nav-links.show-mobile a::after { display: none; }
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-burger { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; z-index: 2;
  background:
    radial-gradient(70% 80% at 88% -8%, var(--durazno) 0%, rgba(251,237,230,0) 60%),
    radial-gradient(60% 70% at -8% 4%, var(--salvia-tint) 0%, rgba(230,240,236,0) 58%),
    linear-gradient(180deg, var(--arena) 0%, var(--arena) 70%, var(--arena-2) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44,107,94,.18), transparent);
}
.hero-inner { display: grid; gap: clamp(32px, 6vw, 56px); padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { margin-bottom: .25em; }
.hero h1 .accent { color: var(--salvia-dark); font-style: italic; font-weight: 420; }
.hero-lead { font-size: clamp(1.05rem, .98rem + .5vw, 1.22rem); color: #4a4e48; max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 40% 35%, var(--salvia-tint-2), var(--durazno));
  filter: blur(6px); opacity: .85; z-index: 0;
}
@media (min-width: 940px) {
  .hero-inner { grid-template-columns: 1.04fr .96fr; align-items: center; }
}

/* Inline hero search */
.searchbar {
  margin-top: 30px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 10px; display: grid; gap: 6px; position: relative; z-index: 2;
}
.searchbar .field { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.searchbar .field + .field { border-top: 1px solid var(--line-soft); }
.searchbar input, .searchbar select { border: 0; outline: none; font-family: var(--font-body); font-size: 1rem; width: 100%; background: transparent; color: var(--tinta); }
.searchbar select { appearance: none; cursor: pointer; }
.searchbar .ico { color: var(--salvia); }
@media (min-width: 720px) {
  .searchbar { grid-template-columns: 1.3fr 1fr auto; align-items: center; }
  .searchbar .field + .field { border-top: 0; border-left: 1px solid var(--line-soft); }
  .searchbar .btn { height: 100%; }
}

/* ---------- Trust band ---------- */
.trust-band { background: linear-gradient(135deg, var(--salvia-deep), var(--salvia-dark)); color: #e9f2ef; position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px 26px; padding: clamp(26px,4vw,38px) 0; }
.trust-item { display: flex; align-items: center; gap: 13px; font-size: .95rem; font-weight: 500; line-height: 1.3; }
.trust-item .ico { width: 40px; height: 40px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); color: #cfe6df; }
.trust-item .ico svg { width: 20px; height: 20px; }
@media (min-width: 880px) { .trust-grid { grid-template-columns: repeat(4,1fr); } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px,3vw,32px); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step .num { width: 46px; height: 46px; border-radius: var(--r-pill); background: var(--durazno); color: var(--arcilla); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.3rem; font-weight: 560; margin-bottom: 18px; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--piedra); margin: 0; font-size: .98rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3,1fr); gap: 24px; } }

/* ---------- Why columns ---------- */
.why-grid { display: grid; gap: 20px; }
.why-card { padding: clamp(24px,3vw,30px); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.why-card .ico { width: 52px; height: 52px; border-radius: 15px; background: var(--salvia-tint); color: var(--salvia-dark); margin-bottom: 16px; }
.why-card .ico svg { width: 26px; height: 26px; }
.why-card h3 { margin: 0 0 .35em; }
.why-card p { color: var(--piedra); margin: 0; }
@media (min-width: 820px) { .why-grid { grid-template-columns: repeat(3,1fr); gap: 24px; } }

/* ---------- Therapist card ---------- */
.therapist-grid { display: grid; gap: 22px; }
@media (min-width: 600px) { .therapist-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .therapist-grid { grid-template-columns: repeat(3,1fr); } }

.tcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.tcard:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.tcard-photo { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.7rem; font-weight: 560; color: rgba(255,255,255,.94); }
.tcard-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.14)); }
.tcard-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(255,255,255,.94); color: var(--disponible); font-size: .74rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--sh-1); }
.tcard-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--disponible); box-shadow: 0 0 0 3px rgba(46,158,107,.2); }
.tcard-save { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; cursor: pointer; color: var(--piedra); display: grid; place-items: center; box-shadow: var(--sh-1); transition: color .15s, transform .15s var(--ease); }
.tcard-save:hover { color: var(--arcilla); transform: scale(1.08); }
.tcard-save .ico svg { width: 18px; height: 18px; }
.tcard-body { padding: 18px 19px 20px; display: flex; flex-direction: column; flex: 1; }
.tcard-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 560; margin: 0; letter-spacing: -.01em; }
.tcard-title { font-size: .82rem; color: var(--piedra); margin: 3px 0 13px; }
.tcard-approach { font-size: .92rem; color: var(--tinta); margin: 0 0 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .78rem; font-weight: 500; padding: 5px 11px; border-radius: var(--r-pill); background: var(--salvia-tint); color: var(--salvia-dark); }
.chip-plain { background: var(--arena); color: var(--piedra); border: 1px solid var(--line); }
.tcard-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price-from { font-size: .74rem; color: var(--piedra); }
.price-val { font-family: var(--font-head); font-size: 1.42rem; font-weight: 560; color: var(--tinta); }
.price-unit { font-size: .74rem; color: var(--piedra); }

.slot-mini { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.slot-pill { font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: var(--r-xs); border: 1px solid var(--salvia); color: var(--salvia-dark); background: var(--white); cursor: pointer; transition: background .15s, color .15s; }
.slot-pill:hover { background: var(--salvia); color: #fff; }

/* avatar gradients */
.av-1 { background: linear-gradient(140deg,#4a9b8b,#2C6B5E); }
.av-2 { background: linear-gradient(140deg,#E8895f,#c4623f); }
.av-3 { background: linear-gradient(140deg,#6BA99B,#357567); }
.av-4 { background: linear-gradient(140deg,#E6a060,#d97a4e); }
.av-5 { background: linear-gradient(140deg,#7BB0A2,#2C6B5E); }
.av-6 { background: linear-gradient(140deg,#dd9070,#b8552f); }
.av-7 { background: linear-gradient(140deg,#52988a,#234f45); }
.av-8 { background: linear-gradient(140deg,#EaA56e,#d97a4e); }

/* ---------- Bands ---------- */
.band { background: linear-gradient(160deg, var(--durazno), #f7e2d6); position: relative; z-index: 2; }
.band-salvia { background: linear-gradient(160deg, var(--salvia-tint), var(--salvia-tint-2)); position: relative; z-index: 2; }
.band-flex { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .band-flex { grid-template-columns: 1.05fr .95fr; } }

.pkg-cards { display: grid; gap: 14px; }
@media (min-width: 560px) { .pkg-cards { grid-template-columns: repeat(3,1fr); } }
.pkg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 18px; text-align: center; position: relative; box-shadow: var(--sh-1); }
.pkg.is-featured { border-color: var(--salvia); box-shadow: var(--sh-2); transform: translateY(-4px); }
.pkg-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--arcilla); color: #fff; font-size: .72rem; font-weight: 600; padding: 5px 13px; border-radius: var(--r-pill); box-shadow: var(--sh-arcilla); white-space: nowrap; }
.pkg h4 { font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: var(--piedra); margin: 0 0 10px; }
.pkg .per { font-family: var(--font-head); font-size: 1.8rem; font-weight: 560; }
.pkg .total { font-size: .82rem; color: var(--piedra); }
.pkg .save { font-size: .8rem; color: var(--disponible); font-weight: 600; margin-top: 8px; }

/* ---------- CTA strip ---------- */
.cta-strip { position: relative; overflow: hidden; background: linear-gradient(125deg, var(--salvia-deep), var(--salvia) 130%); color: #fff; border-radius: var(--r-xl); padding: clamp(36px,5vw,56px) clamp(26px,4vw,48px); text-align: center; box-shadow: var(--sh-salvia); }
.cta-strip::before { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(224,120,86,.45), transparent 70%); }
.cta-strip h2 { color: #fff; position: relative; }
.cta-strip p { color: #dcebe7; max-width: 42em; margin: 0 auto 26px; position: relative; }
.cta-strip .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: #c8cac3; padding: clamp(44px,6vw,64px) 0 40px; font-size: .92rem; position: relative; z-index: 2; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand-mark { background: linear-gradient(145deg, var(--salvia), var(--salvia-dark)); }
.footer-cols { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-cols { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer a { color: #c8cac3; }
.footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { color: #fff; font-weight: 600; margin-bottom: 2px; }
.footer-crisis { margin-top: 28px; padding: 16px 18px; border: 1px solid #43463f; border-radius: var(--r-md); background: rgba(255,255,255,.03); color: #e4e5e1; font-size: .86rem; display: flex; gap: 12px; align-items: flex-start; }
.footer-crisis .ico { color: var(--arcilla); margin-top: 2px; }
.footer-crisis strong { color: #fff; }
.footer-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid #3a3d37; color: #989b94; font-size: .82rem; }

/* ---------- Page header ---------- */
.page-head { background: linear-gradient(180deg, var(--white), var(--arena)); border-bottom: 1px solid var(--line); padding: clamp(26px,4vw,40px) 0; position: relative; z-index: 2; }
.crumb { font-size: .85rem; color: var(--piedra); margin-bottom: 12px; }
.crumb a { color: var(--piedra); }

/* ---------- Filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 24px 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font-size: .86rem; font-weight: 500; padding: 9px 15px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); color: var(--tinta); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .15s var(--ease); box-shadow: var(--sh-1); }
.fchip:hover { border-color: var(--salvia); transform: translateY(-1px); }
.fchip.is-active { background: var(--salvia); color: #fff; border-color: var(--salvia); }
.select-wrap { display: inline-flex; align-items: center; gap: 8px; }
.select-wrap select { font-family: var(--font-body); font-size: .9rem; padding: 9px 15px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--tinta); cursor: pointer; }
.results-count { font-weight: 600; }

/* ---------- Profile ---------- */
.profile-hero { background: linear-gradient(180deg, var(--white), var(--arena)); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.profile-hero-grid { display: grid; gap: 30px; padding: clamp(28px,4vw,44px) 0; }
@media (min-width: 860px) { .profile-hero-grid { grid-template-columns: 320px 1fr; } }
.profile-photo { aspect-ratio: 1/1; border-radius: var(--r-lg); display: grid; place-items: center; font-family: var(--font-head); font-size: 4.6rem; color: rgba(255,255,255,.94); box-shadow: var(--sh-2); }
.profile-meta-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.meta-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--tinta); background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-1); }
.meta-badge .ico { color: var(--salvia); }
.meta-badge .ico svg { width: 16px; height: 16px; }
.profile-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 20px; }
.profile-price .price-val { font-size: 1.9rem; }

.layout-2col { display: grid; gap: 32px; }
/* Grid/flex children must be allowed to shrink below their content size,
   otherwise a wide child (e.g. the day strip) forces horizontal page overflow on mobile. */
.layout-2col > *, .booking-layout > *, .profile-hero-grid > *, .band-flex > *, .footer-cols > *, .hero-inner > * { min-width: 0; }
@media (min-width: 960px) { .layout-2col { grid-template-columns: 1fr 364px; align-items: start; } }
.prose h2 { margin-top: 8px; }
.prose p { color: #3c3f3a; }
.card-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px,3vw,28px); box-shadow: var(--sh-1); margin-bottom: 24px; }
.cred-grid { display: grid; gap: 18px; }
@media (min-width: 560px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
.cred-item .label { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--salvia-dark); margin-bottom: 5px; }
.cred-item .val { font-size: .96rem; }

.booking-aside { position: sticky; top: 90px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-2); }

.week-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.day-tab { flex: 0 0 auto; min-width: 64px; text-align: center; padding: 10px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: .8rem; color: var(--piedra); transition: all .15s; }
.day-tab.is-active { background: var(--salvia); color: #fff; border-color: var(--salvia); }
.day-tab .dnum { font-family: var(--font-head); font-size: 1.25rem; display: block; color: inherit; }
.slots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.slot { text-align: center; padding: 12px 6px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; border: 1px solid var(--disponible); color: var(--disponible); background: #fff; cursor: pointer; transition: all .15s; }
.slot:hover { background: var(--disponible); color: #fff; }
.slot.is-taken { border-color: var(--line); color: #bcbeb8; background: var(--line-soft); cursor: not-allowed; text-decoration: line-through; }
.slot.is-selected { background: var(--salvia); color: #fff; border-color: var(--salvia); }

.pkg-select { display: grid; gap: 10px; margin-top: 8px; }
.pkg-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background .15s; }
.pkg-opt:hover { border-color: var(--salvia-tint-2); }
.pkg-opt.is-active { border-color: var(--salvia); background: var(--salvia-tint); }
.pkg-opt .t { font-weight: 600; font-size: .96rem; }
.pkg-opt .s { font-size: .8rem; color: var(--piedra); }
.pkg-opt .p { font-family: var(--font-head); font-size: 1.18rem; font-weight: 560; }

.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.tbadge { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--tinta); }
.tbadge .ico { color: var(--salvia); }
.tbadge .ico svg { width: 18px; height: 18px; }

.note-soft { background: var(--salvia-tint); border-radius: var(--r-md); padding: 16px 18px; font-size: .9rem; color: var(--salvia-deep); display: flex; gap: 11px; align-items: flex-start; }
.note-soft .ico { color: var(--salvia); margin-top: 1px; }

/* sticky mobile cta */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px var(--gutter); display: flex; align-items: center; gap: 14px; box-shadow: 0 -6px 24px rgba(44,79,69,.1); }
.mobile-cta .p { font-family: var(--font-head); font-weight: 600; }
.mobile-cta .btn { margin-left: auto; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* ---------- Booking flow ---------- */
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.stepper .s { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--piedra); }
.stepper .s .n { width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--piedra); display: grid; place-items: center; font-weight: 600; font-size: .82rem; }
.stepper .s.is-active { color: var(--tinta); font-weight: 600; }
.stepper .s.is-active .n { background: var(--salvia); color: #fff; }
.stepper .s.is-done .n { background: var(--disponible); color: #fff; }
.stepper .sep { width: 28px; height: 1.5px; background: var(--line); }

.booking-layout { display: grid; gap: 26px; margin-top: 30px; }
@media (min-width: 900px) { .booking-layout { grid-template-columns: 1fr 364px; align-items: start; } }
.summary-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-2); position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: .94rem; }
.summary-row .k { color: var(--piedra); }
.summary-row .v { font-weight: 600; text-align: right; }
.summary-div { border-top: 1px dashed var(--line); margin: 6px 0; }
.summary-total { font-family: var(--font-head); font-size: 1.5rem; font-weight: 560; }
.fee-note { font-size: .78rem; color: var(--piedra); }

.google-btn { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; padding: 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: .98rem; color: var(--tinta); transition: border-color .15s, box-shadow .2s; }
.google-btn:hover { border-color: var(--piedra); box-shadow: var(--sh-1); }
.google-g { width: 18px; height: 18px; flex: 0 0 auto; }

.pay-methods { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.pay-pill { font-size: .8rem; font-weight: 600; padding: 8px 13px; border-radius: var(--r-xs); background: var(--arena); border: 1px solid var(--line); }

.confirm-hero { text-align: center; padding: 26px; }
.confirm-check { width: 74px; height: 74px; border-radius: 50%; background: var(--disponible); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--sh-2); }
.confirm-check .ico svg { width: 38px; height: 38px; stroke-width: 2.2; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 0; font-family: var(--font-head); font-size: 1.12rem; font-weight: 500; color: var(--tinta); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .plus { color: var(--salvia); flex: 0 0 auto; transition: transform .25s var(--ease); line-height: 0; }
.faq-q .plus svg { width: 22px; height: 22px; }
.faq-item.is-open .faq-q .plus { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); color: var(--piedra); }
.faq-item.is-open .faq-a { max-height: 360px; padding-bottom: 22px; }

/* ---------- Emergency ---------- */
.emergency { background: #FCEEE8; border: 1px solid #f0cab9; border-radius: var(--r-md); padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.emergency .ico { color: var(--error); margin-top: 3px; }
.emergency h3 { color: var(--error); margin-bottom: .3em; }
.emergency p { margin: 0; }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.anim-up { opacity: 0; animation: fadeUp .85s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }

/* ---------- Mobile refinements ---------- */
@media (max-width: 768px) { input, textarea { font-size: 16px; } }
@media (max-width: 959px) {
  .booking-aside { position: static; }
  .summary-panel { position: static; }
  .has-mobile-cta { padding-bottom: 90px; }
}
@media (max-width: 859px) {
  .profile-hero-grid { text-align: center; }
  .profile-photo { max-width: 184px; margin: 0 auto; font-size: 3.4rem; }
  .profile-hero .profile-meta-badges,
  .profile-hero .profile-price,
  .profile-hero .hero-actions { justify-content: center; }
  .profile-price { flex-wrap: wrap; }
  /* day strip: 5 equal tabs fill the row — no fixed widths, no overflow */
  .week-tabs { gap: 6px; }
  .day-tab { flex: 1 1 0; min-width: 0; padding: 9px 4px; }
  .day-tab .dnum { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .toolbar { gap: 14px; }
  .pkg.is-featured { transform: none; }
}
