/* Veterinaria Arapiles (DEMO, negocio ficticio), Chamberí
   Idea: booking-first. The appointment picker is the hero; the emergency line sits right above it.
   Feel: calm and clinical, but warm. Pale sage + deep green ink. Clay red ONLY for urgency.
   Type: Commissioner (one variable file, flare fixed), for display and body.
   Shape rule: interactive chips are full pills; panels are 14px; nothing else is rounded.
   One soft green-tinted shadow, on the booking panel only. */

@font-face { font-family: "Commissioner"; src: url("fonts/commissioner.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f4f7f5;
  --card: #ffffff;
  --ink: #173b33;
  --muted: #4b625b;
  --line: #d4e0db;
  --sage: #e3ece8;
  --green: #1f5c4c;
  --green-deep: #154337;
  --urgent: #b23a2a;
  --urgent-wash: #fbeeec;
  --r: 14px;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 20; border-radius: 8px; }
.skip:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.wrapw { max-width: 1180px; margin: 0 auto; }

/* ---------- Demo label + header ---------- */
.demo-label { text-align: center; font-size: .9rem; color: var(--muted); padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--sage); }
.top { max-width: 1180px; margin: 0 auto; padding: 16px var(--g); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.logo small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.logo-a { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 0; }
.top nav a:hover { color: var(--green); text-decoration: underline; }
.lang-btn { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); padding: 3px; min-height: 44px; font: 600 .9rem/1 var(--sans); cursor: pointer; }
.lang-btn span { display: grid; place-items: center; padding: 0 12px; border-radius: 999px; }
html[data-lang="es"] .lang-btn .es, html:not([data-lang]) .lang-btn .es, html[data-lang="en"] .lang-btn .en { background: var(--ink); color: #fff; }

/* ---------- Booking (hero) ---------- */
.booking { max-width: 1180px; margin: 0 auto; padding: 18px var(--g) 64px; display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.urgent { background: var(--urgent-wash); border-left: 5px solid var(--urgent); border-radius: 0 var(--r) var(--r) 0; padding: 14px 16px; font-weight: 600; margin-bottom: 26px; }
.urgent a { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--urgent); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.urgent a:hover { background: #8f2d20; }
.intro h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
.intro .sub { margin-top: 14px; font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.facts { margin-top: 22px; display: grid; gap: 8px; }
.facts li { padding-left: 18px; position: relative; color: var(--muted); font-size: .98rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.panel { background: var(--card); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 0 rgb(23 59 51 / .05), 0 22px 44px -26px rgb(23 59 51 / .45); border: 1px solid var(--line); }
.panel fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.panel legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips > div { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips label {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #9fb6ad; background: var(--bg); font-weight: 600; color: var(--ink);
}
.chips label small { font-weight: 400; color: var(--muted); font-size: .88rem; }
.chips label:hover { border-color: var(--green); }
.chips input:checked + label { background: var(--green); border-color: var(--green); color: #fff; }
.chips input:checked + label small { color: #d9ebe4; }
.chips input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.chips input:disabled + label { color: #7b8d87; border-style: dashed; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.chips .hint { color: var(--muted); }
.field label { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #9fb6ad; background: #fff; color: var(--ink); font: 400 1rem var(--sans); }
.field input::placeholder { color: #5f736c; }
.confirm { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.sum { color: var(--ink); font-weight: 600; }
.sum-k { color: var(--muted); font-weight: 400; }
.sum .empty { color: var(--muted); font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font: 700 1.05rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--green-deep); }
.btn:disabled { background: #b9c8c2; color: #3c4f49; cursor: not-allowed; }
.hint { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.btn-line { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 700 1rem var(--sans); cursor: pointer; }

/* ---------- Services: a plain list, not cards ---------- */
.services { max-width: 1180px; margin: 0 auto; padding: 56px var(--g); display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; font-weight: 700; }
.svc-list { margin-top: 22px; }
.svc-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.svc-list dt { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.15rem; }
.svc-list dt b { font-weight: 600; color: var(--green); font-size: 1rem; white-space: nowrap; }
.svc-list dt b a { color: var(--urgent); }
.svc-list dd { color: var(--muted); margin-top: 4px; max-width: 58ch; }
.services img { border-radius: var(--r); }

/* ---------- Team: initials, no pet avatars ---------- */
.team { background: var(--sage); padding: 56px var(--g); }
.team > * { max-width: 1180px; margin-inline: auto; }
.vets { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 26px; }
.vets li { display: flex; align-items: center; gap: 14px; }
.initials { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; background: var(--bg); }
.vets h3 { font-size: 1.1rem; font-weight: 700; }
.vets p { color: var(--muted); font-size: .95rem; }
.promise { margin-top: 28px; font-size: 1.2rem; font-weight: 600; }

/* ---------- Hours + map ---------- */
.visit { max-width: 1180px; margin: 0 auto; padding: 56px var(--g); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.hours { width: 100%; border-collapse: collapse; margin-top: 18px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--green); }
.addr { margin-top: 16px; color: var(--muted); }
.map { position: relative; min-height: 340px; border-radius: var(--r); background: var(--sage); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 28px; overflow: hidden; }
.map p { max-width: 32ch; margin-bottom: 16px; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; padding: 16px var(--g) 64px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.1rem; min-height: 44px; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 60ch; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #dce7e2; text-align: center; padding: 36px var(--g) 44px; }
.foot-name { font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.foot .fine { font-size: .92rem; color: #b9cbc4; margin-top: 10px; max-width: 64ch; margin-inline: auto; }
.foot a { color: #fff; }
.foot a:focus-visible { outline-color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .booking, .services, .visit { grid-template-columns: 1fr; }
  .services figure { order: -1; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 8px 16px; }
  .top nav { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; }
  .lang-btn { margin-left: auto; }
  .booking { padding-top: 6px; }
  .facts { display: none; }
  .confirm { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .vets { flex-direction: column; }
}
