/* 善Q療癒氛享空間 · hoja única del sitio
   Layout: papel cálido, mucho aire y letra fina. El color sale solo del logo: azul para la línea de los maestros,
   rosa para el masaje, y la línea gris topo que los separa. Un solo tema claro, a propósito: es la paleta de la marca. */
:root {
  --blue: #99c9d3;        /* medido en el logo */
  --pink: #e2b0a9;
  --taupe: #a09e91;
  --olive: #cecb94;
  --blue-soft: #e6f1f3;
  --pink-soft: #f8ebe8;
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #3b3933;         /* el gris topo, oscurecido para leer */
  --muted: #6c695f;
  --line: #dfdcd3;
  --todo-bg: #f4f2dc;     /* huecos que rellena Emma, en el oliva del logo */
  --todo-fg: #55511f;
  --todo-line: #b9b56f;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  --measure: 36em;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.9;
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--ink); text-decoration-color: var(--taupe); text-decoration-thickness: 1px; text-underline-offset: .3em; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 300; letter-spacing: .14em; text-wrap: balance; }
h3 { font-weight: 500; letter-spacing: .08em; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
strong { font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-left: max(20px, 5vw, env(safe-area-inset-left, 0px));
  padding-right: max(20px, 5vw, env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: .5rem 1rem; background: var(--card); color: var(--ink); border: 1px solid var(--ink); }
.skip:focus { top: 16px; }

/* Cabecera: una sola línea y lo más baja posible */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: nowrap; align-items: center; gap: 1.5rem; min-height: 3.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; font-size: .95rem; letter-spacing: .16em; white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; }
.menu-btn { min-height: 40px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); font: inherit; font-size: var(--step--1); letter-spacing: .16em; cursor: pointer; }
.menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav.is-open { display: block; }
.nav ul { display: grid; margin: 0; padding: .25rem max(20px, 5vw) .75rem; list-style: none; }
.nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; letter-spacing: .14em; }
.nav li:last-child a { border-bottom: 0; }
.nav a[aria-current="page"] { font-weight: 600; }
.site-header .header-cta { display: none; }
@media (min-width: 60rem) {
  .site-header { position: sticky; top: 0; }
  .menu-btn { display: none; }
  .nav { display: block; position: static; border: 0; background: none; }
  .nav ul { display: flex; gap: 2rem; padding: 0; white-space: nowrap; }
  .nav a { min-height: 3.25rem; border: 0; color: var(--muted); font-size: var(--step--1); }
  .nav a:hover { color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--ink); font-weight: 400; box-shadow: inset 0 -1px 0 var(--ink); }
  .site-header .header-cta { display: inline-flex; }
}
html { scroll-padding-top: 4.5rem; }

/* Botones */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .5rem 1.7rem; border: 1px solid var(--ink); border-radius: 2px; font-size: .95rem; font-weight: 400; letter-spacing: .16em; text-decoration: none; transition: background-color .2s, color .2s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.site-header .btn { min-height: 36px; padding-inline: 1.1rem; font-size: .82rem; white-space: nowrap; }

/* Portada: el nombre y la reserva arriba; el logo al lado (encima en el móvil) */
.hero-art { display: flex; justify-content: center; background: linear-gradient(90deg, var(--blue) 50%, var(--pink) 50%); }
.hero-art img { width: auto; height: clamp(8.5rem, 34vw, 12rem); }
.hero.hero-home .wrap { gap: 2rem; padding-top: 0; }
.hero-home .hero-art { margin-inline: calc(-1 * max(20px, 5vw)); }
.hero-note { color: var(--muted); font-size: var(--step--1); letter-spacing: .1em; }
@media (min-width: 56rem) {
  .hero.hero-home .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; column-gap: clamp(2rem, 6vw, 5rem); padding-top: clamp(2.75rem, 6vw, 5rem); }
  .hero-home .hero-art { order: 2; margin-inline: 0; }
  .hero-home .hero-art img { width: 100%; height: auto; }
}
.hero .wrap { display: grid; gap: 1.5rem; padding-block: clamp(2.75rem, 6vw, 5rem); }
.eyebrow { color: var(--muted); font-size: var(--step--1); letter-spacing: .24em; }
.hero h1 { font-size: var(--step-3); letter-spacing: .2em; }
.h1-sub { display: block; margin-top: .6em; font-size: .46em; font-weight: 400; letter-spacing: .16em; }
.lead { max-width: 30em; font-size: var(--step-1); font-weight: 300; line-height: 1.9; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0; width: 100%; max-width: 54rem; margin-top: 1rem; border-top: 1px solid var(--line); text-align: left; }
.facts div { min-width: 0; padding: 1.1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .8rem; letter-spacing: .2em; }
.facts dd { font-variant-numeric: tabular-nums; line-height: 1.7; }

/* Cabecera de página de servicio: texto y foto sobre el color de su línea */
.hero-split { background: var(--pink-soft); }
.hero-split.is-blue { background: var(--blue-soft); }
.hero-split .wrap { align-items: center; }
.hero-split .facts { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.hero-split .facts div { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 56rem) {
  .hero-split .wrap { grid-template-columns: 1.05fr .95fr; column-gap: clamp(2rem, 5vw, 4.5rem); }
  .hero-split .hero-text { display: grid; gap: 1.5rem; }
  .hero-split .hero-photo img { aspect-ratio: 4 / 5; }
}
.hero-text { display: grid; gap: 1.5rem; min-width: 0; }

/* Migas */
.crumbs { background: var(--pink-soft); }
.crumbs .wrap { padding-block: 1rem 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; letter-spacing: .12em; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; }
.crumbs a { color: var(--muted); }

/* Secciones */
.section .wrap { display: grid; gap: 2rem; padding-block: clamp(3.25rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: var(--step-2); }
.section-intro { max-width: var(--measure); color: var(--muted); }
.prose { display: grid; gap: 1rem; max-width: var(--measure); }

/* Inicio: las dos líneas, cada una con su color */
.panels { display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .panels { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.panel { display: grid; grid-template-rows: auto 1fr; color: var(--ink); text-decoration: none; }
.panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel img.pos-low { object-position: 50% 80%; }
.panel-body { display: grid; align-content: start; gap: .7rem; padding: 1.75rem 1.75rem 2rem; background: var(--pink); }
.panel.is-blue .panel-body { background: var(--blue); }
.panel .who { font-size: .8rem; letter-spacing: .22em; }
.panel h3 { font-size: var(--step-2); font-weight: 300; letter-spacing: .16em; }
.panel .more { justify-self: start; margin-top: .4rem; font-size: .92rem; letter-spacing: .14em; border-bottom: 1px solid var(--ink); }
.panel:hover .more { border-bottom-width: 2px; }
.minor { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 46rem) { .minor { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; border-top: 0; } }
.minor-item { display: grid; align-content: start; gap: .5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 46rem) { .minor-item { border-top: 1px solid var(--line); } }
.minor-item h3 { font-size: var(--step-1); font-weight: 400; }
.minor-item p { color: var(--muted); }
.minor-item .more { justify-self: start; font-size: .92rem; letter-spacing: .12em; }

/* Servicios */
.services { display: grid; max-width: 56rem; border-top: 1px solid var(--line); }
.service { display: grid; gap: .5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--step-1); font-weight: 400; letter-spacing: .12em; }
.service .fit { color: var(--muted); }
.service dl { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin-top: .25rem; font-size: var(--step--1); }
.service dl div { display: flex; gap: .6rem; }
.service dt { color: var(--muted); letter-spacing: .14em; }
@media (min-width: 48rem) {
  .service { grid-template-columns: 14rem 1fr; column-gap: 2.5rem; }
  .service h3 { grid-row: span 3; }
}

/* Reseñas con el aspecto de Google Maps (copiadas a mano; fecha relativa en site.js) */
.g-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.g-score { font-size: 3rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.g-summary-meta { display: grid; gap: .2rem; }
.g-count { color: var(--muted); font-size: var(--step--1); letter-spacing: .06em; }
.g-stars {
  display: inline-block; width: 5.25rem; height: 1rem; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fbbc04' d='M12 17.3l6.2 3.7-1.6-7 5.4-4.7-7.1-.6L12 2 9.1 8.7 2 9.3l5.4 4.7-1.6 7z'/%3E%3C/svg%3E") left center / 1.05rem 1rem repeat-x;
}
.g-summary .g-stars { width: 6.6rem; height: 1.25rem; background-size: 1.32rem 1.25rem; }
.g-summary .btn { margin-left: auto; }
.g-reviews { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .g-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .g-reviews { grid-template-columns: repeat(3, 1fr); } }
.g-card { display: grid; align-content: start; gap: .6rem; min-width: 0; padding: 1.25rem 1.35rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
.g-head { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .8rem; align-items: center; }
.g-avatar { grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--av, #455a64); color: #fff; font-size: 1.05rem; font-weight: 500; }
.g-name { font-size: .98rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.g-sub { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.g-rating { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .82rem; }
.g-text { font-size: .96rem; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.qa-item .g-card { max-width: 34rem; }

/* Preguntas antes de venir */
.qa { display: grid; gap: 2.75rem; max-width: 46rem; }
.qa-item { display: grid; gap: .9rem; }
.qa-item h3 { font-size: var(--step-1); font-weight: 400; }

/* Pasos */
.steps { display: grid; gap: 0; max-width: 46rem; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; padding-block: 1.1rem; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); color: var(--taupe); font-size: var(--step-1); font-weight: 300; letter-spacing: .1em; font-variant-numeric: tabular-nums; }

/* Visita */
.visit { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48rem) { .visit { grid-template-columns: 1fr 1fr; } }

/* Preguntas frecuentes */
.faq { display: grid; gap: 0; max-width: 46rem; border-top: 1px solid var(--line); }
.faq > div { display: grid; gap: .35rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.faq h3 { font-size: var(--step-0); font-weight: 500; }
.faq p { color: var(--muted); }

/* Cierre con el color de la línea */
.section.is-pink { background: var(--pink-soft); }
.section.is-blue { background: var(--blue-soft); }

/* Huecos para Emma: se ven a propósito y se buscan con grep antes de publicar */
.todo { padding: .1em .45em; border: 1px dashed var(--todo-line); border-radius: 2px; background: var(--todo-bg); color: var(--todo-fg); font-size: .9em; letter-spacing: 0; }
.photo-todo { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; padding: 1rem; border: 1px dashed var(--todo-line); background: var(--todo-bg); color: var(--todo-fg); font-size: var(--step--1); text-align: center; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; padding-block: 3.5rem 4rem; }
.site-footer h2 { color: var(--ink); font-size: var(--step--1); font-weight: 400; letter-spacing: .22em; margin-bottom: .75rem; }
.site-footer address { display: grid; gap: .25rem; font-style: normal; }
.site-footer ul { display: grid; gap: .25rem; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); }
.footer-line { height: 6px; background: linear-gradient(90deg, var(--blue) 50%, var(--pink) 50%); }

/* Barra de reserva en el móvil */
.cta-bar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; gap: .6rem;
  padding-top: .6rem;
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
}
.cta-bar .btn { flex: 1 1 0; min-width: 0; padding-inline: .75rem; }
@media (min-width: 62rem) {
  .cta-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Lista de servicios dentro de un panel del inicio */
.panel-list { display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.panel-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-block: .55rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.panel-list span { font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.section.is-blue .services, .section.is-blue .service { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.section.is-blue .service .fit, .section.is-blue .service dt, .section.is-blue .section-intro { color: var(--ink); }

/* Tabla de precios */
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: .9rem 1.25rem .9rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.price-table thead th { color: var(--muted); font-size: .8rem; letter-spacing: .2em; border-bottom-color: var(--ink); }
/* 定價 tachado solo si la fila tiene 優惠價 */
.price-table td:not(:empty) + td:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--taupe); }
.note { color: var(--muted); font-size: var(--step--1); }
.visit .facts { margin-top: 0; }
.disclaimer { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; }
@media (max-width: 40rem) {
  /* En el móvil cada fila es un bloque: nombre arriba, y debajo tiempo, precio y precio de lista */
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .price-table tr { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; padding-block: .95rem; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table tbody th { flex: 1 1 100%; font-weight: 500; }
  .price-table td:empty { display: none; }
}
.price-table .group th { padding-top: 2rem; color: var(--muted); font-size: .8rem; letter-spacing: .2em; border-bottom-color: var(--ink); }
.price-table tbody:first-of-type .group th { padding-top: .5rem; }
.price-table thead th { border-bottom: 0; padding-bottom: 0; }
.offer { max-width: 56rem; padding: 1.1rem 1.4rem; background: var(--pink-soft); }
@media (max-width: 40rem) { .price-table tr.group { padding-bottom: .5rem; border-bottom-color: var(--ink); } }
/* Quiénes somos: foto y texto */
.about { display: grid; gap: 1.75rem; align-items: start; max-width: 58rem; }
.about img { width: 100%; max-width: 20rem; aspect-ratio: 1; object-fit: cover; }
.about h3 { font-size: var(--step-1); font-weight: 400; }
@media (min-width: 46rem) { .about { grid-template-columns: 18rem 1fr; column-gap: clamp(2rem, 5vw, 4rem); } }
.table-scroll + .table-scroll { margin-top: 3rem; }
/* Las dos tablas de precios con las mismas columnas */
@media (min-width: 40.01rem) {
  .price-table { table-layout: fixed; }
  .price-table thead th:nth-child(1) { width: 42%; }
  .price-table thead th:nth-child(2) { width: 14%; }
  .price-table thead th:nth-child(3) { width: 28%; }
}
[hidden] { display: none !important; }
