/* Tsing · Dirección A "El plato" — estilos compartidos por index.html y nosotros.html */
:root {
  --ink: #17331F;
  --ink-soft: #42594A;
  --bg: #F4F8F1;
  --paper: #FFFFFF;
  --line: #DCE7D6;
  --link: #1E57A7;
  --wa: #0F7A40;

  /* Colores del plato: uno por especialidad */
  --c-peso: #2E7D4F;
  --c-nutri: #7FB13A;
  --c-consulta: #F2C230;
  --c-acu: #EE8A2C;
  --c-ozono: #B43A5E;
  --c-estetica: #479CD4;

  --display: "Gabarito", "Trebuchet MS", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lede: 1.25rem;
  --t-h3: 1.5rem;
  --t-h2: clamp(2rem, 3.4vw, 2.625rem);
  --t-h1: clamp(2.5rem, 5.2vw, 4rem);

  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --r-lg: 24px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-estetica); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .5rem 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 1rem/1.2 var(--text);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0B6233; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--c-peso); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.75rem; height: 76px; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--c-nutri); }
.nav a[aria-current="page"] { border-bottom-color: var(--c-peso); font-weight: 600; }
.header-cta { min-height: 44px; padding: .6rem 1.15rem; font-size: .95rem; }
.menu-toggle { display: none; }

/* ---------- Héroe con el plato ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.025em; max-width: 13ch; margin-bottom: 1.25rem; }
.hero-lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.75rem; }

.plate-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-width: 540px; margin-bottom: 1.25rem; }
.pick {
  display: flex; align-items: center; gap: .65rem; min-height: 48px; padding: .6rem .9rem;
  border-radius: var(--r-md); border: 2px solid transparent; background: rgba(255,255,255,.6);
  font: 500 .975rem/1.25 var(--text); color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.pick:hover { background: var(--paper); }
.pick[aria-pressed="true"] { background: var(--paper); border-color: var(--ink); font-weight: 600; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--c, var(--ink)); }

.plate-detail { background: var(--paper); border-radius: var(--r-lg); padding: 1.4rem 1.6rem 1.5rem; max-width: 540px; }
.js .plate-detail[hidden] { display: none; }
.plate-detail + .plate-detail { margin-top: 1rem; }
.js .plate-detail + .plate-detail { margin-top: 0; }
.plate-detail h2 { font-size: var(--t-h3); margin-bottom: .4rem; }
.plate-detail p { color: var(--ink-soft); margin-bottom: .8rem; }
.plate-detail ul { list-style: none; display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.plate-detail li { display: flex; gap: .65rem; align-items: baseline; }
.plate-detail li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-2px); background: var(--c); }
.detail-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 600; }

.plate { width: 100%; max-width: 540px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.plate .wedge { cursor: pointer; fill-opacity: .36; transition: transform .35s cubic-bezier(.3,.7,.2,1), fill-opacity .25s; }
.plate .wedge:hover { fill-opacity: .6; }
.plate .wedge.is-on { fill-opacity: 1; transform: translate(var(--dx), var(--dy)); }
.plate-label { font-family: var(--display); font-weight: 700; font-size: 26px; fill: var(--ink); }
.plate-sub { font-family: var(--text); font-size: 15px; fill: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .plate .wedges { animation: plato-girar 1.1s cubic-bezier(.2,.8,.2,1) both; transform-origin: 260px 260px; }
  @keyframes plato-girar { from { opacity: 0; transform: rotate(-40deg) scale(.86); } to { opacity: 1; transform: none; } }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-white { background: var(--paper); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 60ch; }
.section-head h2 { font-size: var(--t-h2); margin-bottom: .75rem; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; margin: 0; }

/* Pasos (secuencia real: valoración → plan → seguimiento) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.step { border-top: 4px solid var(--c); padding-top: 1.25rem; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--n); margin-bottom: .35rem; }
.step h3 { font-size: var(--t-h3); margin-bottom: .5rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* Especialidades en detalle */
.specs { display: grid; gap: .75rem; }
.spec { background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); }
.spec[open] { border-color: var(--c); box-shadow: inset 6px 0 0 var(--c); }
.spec summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.5rem; min-height: 64px;
}
.spec summary::-webkit-details-marker { display: none; }
.spec summary h3 { font-size: 1.375rem; flex: 1; }
.spec summary .dot { width: 18px; height: 18px; }
.spec summary .chev { width: 24px; height: 24px; flex: none; transition: transform .2s; color: var(--ink-soft); }
.spec[open] summary .chev { transform: rotate(180deg); }
.spec-body { padding: 0 1.5rem 1.6rem calc(1.5rem + 18px + 1rem); }
.spec-body > p { max-width: 68ch; color: var(--ink-soft); }
.spec-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem 2.5rem; margin: 1.25rem 0 1.5rem; }
.spec-lists h4 { font: 600 .95rem/1.3 var(--text); color: var(--ink-soft); margin: 0 0 .5rem; }
.ticks { list-style: none; }
.ticks li { padding: .45rem 0 .45rem 1.3rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.conditions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 2.5rem; margin: 1.25rem 0 1.5rem; }
.conditions div { padding: .8rem 0; border-top: 1px solid var(--line); }
.conditions dt { font-weight: 600; }
.conditions dd { margin: .15rem 0 0; color: var(--ink-soft); font-size: var(--t-small); }
.ask { font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.ask svg { width: 18px; height: 18px; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 .85rem; font-family: var(--display); font-weight: 600; font-size: 1.375rem; line-height: 1.35; }
.quote-main blockquote { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.22; }
.quote figcaption { color: var(--ink-soft); }

/* Ubicación */
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 2.5rem); }
.branch-map { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--line); margin-bottom: 1.1rem; }
.branch-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.branch h3 { font-size: var(--t-h3); margin-bottom: .4rem; }
.branch address { font-style: normal; color: var(--ink-soft); margin-bottom: .9rem; max-width: 44ch; }
.branch-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; }
.hours-row { margin-top: clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; align-items: start; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hours h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 2rem; margin: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.status { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); margin: 0; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status[data-open="true"] .status-dot { background: #2E9B57; box-shadow: 0 0 0 4px rgba(46,155,87,.2); }
.status strong { color: var(--ink); }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--text); color: var(--ink); width: 100%;
  min-height: 48px; padding: .8rem .9rem; border: 1.5px solid #B7C8B0; border-radius: 12px; background: var(--paper);
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-peso); box-shadow: 0 0 0 3px rgba(127,177,58,.35); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .9rem; }
.field-error:empty { display: none; }
.consent { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--c-peso); flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: 12px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-kind="ok"] { background: #E5F3E8; color: #0B5A2E; }
.form-status[data-kind="error"] { background: #FBEAEA; color: #8C1D18; }
.form-foot { grid-column: 1 / -1; }
.channels h3 { font-size: 1.375rem; margin-bottom: .4rem; }
.channels > p { color: var(--ink-soft); }
.channel { display: block; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.channel span { display: block; font-size: .9rem; color: var(--ink-soft); }
.channel strong { font-weight: 600; font-size: 1.125rem; color: var(--link); }
.channel:hover strong { text-decoration: underline; }

/* Banda de llamada a la acción */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; padding-top: clamp(3rem, 6vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4rem); }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: .4rem; }
.cta-band p { margin: 0; color: #C9DACD; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Nosotros ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 1.25rem; max-width: 14ch; }
.page-hero p { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; margin: 0; }
.mini-plate { width: 100%; max-width: 340px; height: auto; margin: 0 auto; display: block; }

.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.pillar { background: var(--paper); border-radius: var(--r-lg); padding: 1.6rem; }
.pillar::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 3px; background: var(--c); margin-bottom: 1rem; }
.pillar h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.mv h2 { font-size: var(--t-h2); margin-bottom: .9rem; }
.mv p { font-size: 1.125rem; color: var(--ink-soft); max-width: 52ch; margin: 0; }

.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; list-style: none; }
.disciplines li { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.disciplines .dot { width: 18px; height: 18px; }

.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.team-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.team-card h3 { font-size: 1.75rem; margin-bottom: .25rem; }
.cedula { color: var(--ink-soft); margin-bottom: 1.25rem; }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.creds li { border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .95rem; font-size: .95rem; font-weight: 500; }

/* ---------- Pie ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 3rem 0 6rem; font-size: .975rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 52px; width: auto; margin-bottom: .75rem; }
.footer-brand p { color: var(--ink-soft); max-width: 40ch; }
.site-footer h3 { font: 600 1rem/1.3 var(--text); margin-bottom: .7rem; }
.site-footer ul { list-style: none; display: grid; gap: .4rem; }
.site-footer a { color: var(--ink); }
.footer-legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--ink-soft); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; transition: opacity .2s, transform .2s; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.wa-float .btn { min-height: 56px; padding: .9rem 1.4rem .9rem 1.15rem; box-shadow: 0 10px 28px -8px rgba(15,60,30,.55); }

/* Aviso de privacidad */
dialog { max-width: 680px; width: calc(100% - 32px); border: 0; border-radius: var(--r-lg); padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(23,51,31,.55); }
.dialog-body { padding: clamp(1.25rem, 4vw, 2.25rem); max-height: 78vh; overflow: auto; }
.dialog-body h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.dialog-body p { font-size: .975rem; color: var(--ink-soft); }
.dialog-close { display: flex; justify-content: flex-end; padding: 1rem clamp(1.25rem, 4vw, 2.25rem); border-top: 1px solid var(--line); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 1.1rem; }
  .nav a { font-size: .95rem; }
}
@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; min-height: 44px; padding: .45rem 1.1rem;
    background: none; border: 1.5px solid var(--line); border-radius: 999px; font: 600 .95rem var(--text); color: var(--ink); cursor: pointer;
  }
  .header-cta { display: none; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-plate { order: -1; }
  .plate { max-width: 360px; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .quotes, .branches, .contact, .mv, .team, .page-hero .wrap { grid-template-columns: 1fr; }
  .disciplines { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mini-plate { max-width: 240px; margin: 0; }
}
@media (max-width: 600px) {
  .plate-picker { grid-template-columns: 1fr 1fr; }
  .pick { font-size: .92rem; padding: .55rem .7rem; }
  .form { grid-template-columns: 1fr; }
  .disciplines, .footer-grid { grid-template-columns: 1fr; }
  .spec summary { padding: 1rem 1.1rem; }
  .spec-body { padding: 0 1.1rem 1.4rem; }
  .hero-actions .btn { width: 100%; }
  .wa-float .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-float .btn { width: 58px; height: 58px; padding: 0; }
  .wa-float .btn svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate .wedge, .spec summary .chev { transition: none; }
}
