/* ==========================================================================
   Mónica Girona · Kobido — estilos compartidos
   ========================================================================== */

/* ---------- Fuentes (alojadas en la propia web: más rápido y sin enviar datos a Google) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/karla-latin.woff2') format('woff2');
}
/* Solo contiene los kanji usados en la web: 古美道間筋肌静一二三四 */
@font-face {
  font-family: 'Noto Serif JP';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/noto-serif-jp-kanji.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --cream: #F7F1E7;
  --cream-alt: #F0E9DC;
  --card: #FBF8F2;
  --ink: #2E2A24;
  --body: #524A3E;
  --muted: #766752;          /* diseño: #8A7A64 — oscurecido para contraste AA */
  --muted-soft: #8A7A64;
  --muted-light: #A4937A;
  --accent: #A8543B;
  --accent-hover: #8F4430;
  --accent-hover-dark: #C26248;
  --gold: #C9B27E;
  --gold-soft: rgba(201, 178, 126, 0.4);
  --kanji-soft: #B79F7C;
  --border: #E2D7C3;
  --dark: #2B2722;
  --on-dark: #F2E7D3;
  --on-dark-body: #C9BCA8;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --jp: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad-x: clamp(22px, 7vw, 72px);
  --pad-y: clamp(100px, 15vw, 180px);
}
.page-centros { --pad-y: clamp(88px, 13vw, 150px); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3 { margin: 0; }
p { text-wrap: pretty; }
em { font-style: italic; }
strong { font-weight: 700; color: var(--ink); }
::selection { background: var(--accent); color: var(--card); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.section--dark a:focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--ink); color: var(--card);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- Layout ---------- */
.section { position: relative; padding: var(--pad-y) var(--pad-x); }
.section--alt { background: var(--cream-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); overflow: hidden; }
.section--footer { padding-bottom: clamp(56px, 8vw, 80px); }

.wrap { position: relative; max-width: var(--w, 1000px); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 18px); }
.center { align-items: center; text-align: center; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr));
  gap: var(--gap, clamp(18px, 3vw, 26px));
}

/* ---------- Tipografía ---------- */
.h1 {
  font-family: var(--serif); font-weight: 500;
  line-height: 1.16; letter-spacing: 0.005em; text-wrap: balance;
}
.h1 > span { display: block; }
.h1 .accent { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.15; text-wrap: balance;
}
.h2--lg { font-size: clamp(30px, 5.4vw, 50px); line-height: 1.18; }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; }

.prose {
  display: flex; flex-direction: column; gap: var(--gap, 18px);
  font-size: clamp(15px, 2.2vw, 17px); line-height: var(--lh, 1.8); color: var(--body);
}
.lead { font-size: clamp(15px, 2.2vw, 17.5px); line-height: 1.8; color: var(--body); }
.quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.6vw, 21px); color: var(--ink); text-align: center;
}
.quote--lg { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.6; max-width: 620px; margin-inline: auto; }
.small-note { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

.section--dark .h2 { color: var(--on-dark); }
.section--dark .prose { color: var(--on-dark-body); }
.section--dark .prose .bright { color: var(--on-dark); }

/* Eyebrow (etiqueta superior de sección) */
.eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 700; color: var(--muted);
}
.section--dark .eyebrow { color: var(--muted-light); }
.eyebrow-row { display: flex; align-items: center; gap: 14px; }
.eyebrow-row--center { justify-content: center; }
.rule { flex: 1; height: 1px; background: var(--gold); transform-origin: left; }
.section--dark .rule { background: var(--gold-soft); }
.tick { width: 28px; height: 1px; background: var(--gold); flex: none; }

.kanji { font-family: var(--jp); font-weight: 400; }
.kanji--card { font-size: 21px; color: var(--accent); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--card);
  text-decoration: none; text-align: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 17px 36px; border-radius: 999px;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168, 84, 59, 0.28); }
.btn--lg { padding: 18px 38px; }
.section--dark .btn:hover { background: var(--accent-hover-dark); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4); }
.page-centros .btn { padding-inline: 34px; }
.page-centros .btn--lg { padding-inline: 38px; }

.link-line {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
  transition: color .3s ease;
}
.link-line:hover { color: var(--accent); }

/* ---------- Kanji vertical de fondo (parallax) ---------- */
.bg-kanji {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center; pointer-events: none;
}
.bg-kanji > span {
  writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--jp); font-weight: 300;
  font-size: clamp(140px, 24vw, 280px); letter-spacing: 0.18em;
  color: rgba(242, 231, 211, 0.05);
  user-select: none; will-change: transform;
}
.bg-kanji--right { right: clamp(2px, 4vw, 70px); }
.bg-kanji--left { left: clamp(2px, 4vw, 60px); }
.bg-kanji--hero { right: clamp(2px, 5vw, 90px); }
.bg-kanji--hero > span { font-size: clamp(150px, 26vw, 300px); color: rgba(168, 84, 59, 0.06); }
.page-centros .bg-kanji--hero > span { color: rgba(168, 84, 59, 0.07); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
}
.hero__logo-bar {
  position: relative; z-index: 2; display: flex; justify-content: center;
  padding: clamp(26px, 4vw, 40px) var(--pad-x) 0;
}
.hero__logo { width: clamp(150px, 22vw, 200px); }
.hero__body {
  position: relative; flex: 1; display: flex; align-items: center;
  padding: clamp(56px, 8vw, 90px) var(--pad-x) clamp(110px, 14vw, 140px);
}
.hero__inner { max-width: 820px; margin: 0 auto; gap: clamp(22px, 3.5vw, 32px); }
.hero .h1 { font-size: clamp(34px, 6.2vw, 62px); }
.hero__kicker {
  font-size: clamp(9.5px, 1.4vw, 11.5px); letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); text-wrap: balance;
}
.hero .lead { max-width: 640px; }
.hero__ctas { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__foot {
  position: absolute; bottom: 26px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__motto { font-family: var(--serif); font-style: italic; font-size: clamp(14px, 2vw, 16px); color: var(--muted-soft); }
.scroll-line { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); }

/* Hero de /centros (centrado, como la Home) */
.hero__logo-link { display: inline-flex; transition: opacity .3s ease; }
.hero__logo-link:hover { opacity: .7; }
.hero--centros .hero__logo { width: clamp(130px, 18vw, 170px); }
.hero--centros .hero__body { padding-bottom: clamp(72px, 10vw, 110px); }
.hero--centros .h1 { font-size: clamp(36px, 6.6vw, 64px); line-height: 1.12; }
.hero--centros .hero__kicker { letter-spacing: 0.26em; }
.hero--centros .lead { max-width: 620px; line-height: 1.75; }
.hero--centros .hero__ctas { gap: 12px; }
.hero--centros .tick { width: 34px; background: var(--accent); }
.link-wa { margin-top: 6px; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 38px);
  display: flex; flex-direction: column; gap: 14px;
}
.card p { font-size: 14.5px; line-height: 1.75; color: var(--body); }
.page-centros .card { padding: clamp(26px, 4vw, 36px); }
.page-centros .card .h3 { font-size: 22px; }
.page-centros .card p { line-height: 1.7; }

/* ---------- Cifras ---------- */
.stat {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--gold-soft); padding-top: 20px;
}
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 7vw, 68px); line-height: 1; color: var(--on-dark); font-variant-numeric: lining-nums; }
.stat__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); }
.stat__kanji { font-family: var(--jp); font-weight: 300; font-size: clamp(40px, 6vw, 56px); line-height: 1.25; letter-spacing: 0.22em; color: var(--on-dark); }
.stat-band { background: var(--dark); margin: 0 calc(-1 * var(--pad-x)); padding: clamp(56px, 9vw, 96px) var(--pad-x); }
.stat-band .stat { gap: 10px; padding-top: 22px; }
.stat-band .stat__num { font-size: clamp(52px, 8vw, 76px); }
.stat-band .stat__label { font-size: 12.5px; }

/* ---------- Linaje ---------- */
.lineage {
  list-style: none; margin: 0;
  border-left: 1px solid var(--gold); padding: 0 0 0 28px;
  display: flex; flex-direction: column; gap: 26px;
}
.lineage li { position: relative; display: flex; flex-direction: column; gap: 3px; }
.lineage li::before {
  content: ''; position: absolute; left: -32px; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.lineage__name { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.lineage__role { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.lineage .is-me::before { background: var(--accent); }
.lineage .is-me .lineage__name { color: var(--accent); }

.note-box {
  background: var(--cream-alt); padding: clamp(24px, 4vw, 32px);
  display: flex; flex-direction: column; gap: 10px;
}
.note-box__label { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.note-box p { font-size: 14px; line-height: 1.75; color: var(--body); }
.page-centros .note-box p { line-height: 1.7; }

/* ---------- Vídeo (carga al hacer clic, sin cookies de YouTube) ---------- */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: var(--dark); overflow: hidden;
  box-shadow: 0 24px 60px rgba(62, 48, 34, 0.22);
}
.video__btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit;
}
.video__btn img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .92; transition: transform .8s var(--ease), opacity .6s ease;
}
.video__btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(43, 39, 34, 0.05) 0%, rgba(43, 39, 34, 0.55) 100%);
}
.video__play {
  position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 9vw, 86px); height: clamp(64px, 9vw, 86px); border-radius: 50%;
  background: rgba(251, 248, 242, 0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: transform .4s var(--ease), background .3s ease;
}
.video__play svg { transform: translateX(2px); }
.video__btn:hover img { transform: scale(1.03); opacity: 1; }
.video__btn:hover .video__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video__label, .video__yt {
  position: absolute; z-index: 1; bottom: clamp(16px, 2.6vw, 24px);
  font-size: 11px; text-align: left;
}
.video__label {
  left: clamp(18px, 3vw, 28px); display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--on-dark);
}
.video__label::before { content: ''; width: 18px; height: 1px; background: var(--gold); }
.video__yt { right: clamp(18px, 3vw, 28px); letter-spacing: 0.14em; color: var(--on-dark-body); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { object-fit: cover; background: var(--dark); }
.video__caption { margin-top: 14px; text-align: center; font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); font-style: italic; }

/* ---------- Pasos (/centros) ---------- */
.step { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--gold); padding-top: 22px; }
.step__num { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; color: var(--accent); }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--body); }

/* Rejillas equilibradas: sin elementos sueltos en la última fila */
.grid--4, .grid--3 { display: grid; gap: var(--gap, clamp(18px, 3vw, 26px)); grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Precios (Home) ---------- */
.price {
  background: var(--card); border: 1px solid var(--border);
  padding: clamp(26px, 4vw, 34px); display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.price--featured { border-color: var(--gold); box-shadow: 0 14px 34px rgba(62, 48, 34, 0.08); }
.price__name { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.price__amount { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 54px); line-height: 1.1; color: var(--ink); }
.price__note { font-size: 13px; color: var(--muted); }
.offer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 12px;
  background: rgba(168, 84, 59, 0.08); border: 1px solid rgba(168, 84, 59, 0.25);
  padding: 16px 22px; text-align: center; font-size: 14.5px; color: var(--body);
}
.offer strong { color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12.5px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 40px 20px 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2.4vw, 21px); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 400; font-size: 24px; color: var(--accent); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details p { padding: 0 0 22px; font-size: 15.5px; line-height: 1.8; color: var(--body); }

/* ---------- Botón WhatsApp ---------- */
.btn__icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 241, 231, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.wa-bar.is-visible { transform: none; }
.wa-bar .btn { width: 100%; padding-block: 15px; }
@media (min-width: 768px) { .wa-bar { display: none; } }

/* ---------- Foto con pie ---------- */
.photo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photo img {
  width: 100%; max-width: 420px; aspect-ratio: 700 / 1012; object-fit: cover;
  border: 1px solid var(--border); padding: 8px; background: var(--card);
}
.photo figcaption { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }

/* ---------- Retrato ---------- */
.portrait {
  width: min(64vw, 280px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid #CDBEA6; padding: 9px;
}
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------- Cierre / pie ---------- */
.contact-line {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  font-size: 13.5px; color: var(--on-dark-body);
}
.contact-line a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(201, 178, 126, 0.5); transition: border-color .3s ease; }
.contact-line a:hover { border-color: var(--on-dark); }
.contact-line .dot { color: #6E6150; }
.mark {
  width: 32px; height: 32px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--jp); font-weight: 400; font-size: 17px; color: var(--card);
}
.motto-gold { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 2.4vw, 19px); color: var(--gold); }
.site-footer {
  margin-top: clamp(32px, 5vw, 48px); padding-top: 22px;
  border-top: 1px solid rgba(201, 178, 126, 0.25); width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.site-footer__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted-light);
}
.site-footer__meta a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.site-footer__meta a:hover { color: var(--on-dark); border-color: currentColor; }
.footer-cta {
  font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted-light); text-decoration: none;
  border-bottom: 1px solid rgba(164, 147, 122, 0.4); padding-bottom: 2px; transition: color .3s ease;
}
.footer-cta:hover { color: var(--on-dark); }

/* ---------- Páginas legales ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) var(--pad-x) clamp(64px, 10vw, 120px); }
.legal__logo { display: inline-flex; margin-bottom: clamp(40px, 7vw, 72px); }
.legal__logo img { width: clamp(130px, 18vw, 170px); }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; margin-bottom: 10px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.8; color: var(--body); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal a { color: var(--accent); }
.legal__updated { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.legal__back { display: inline-block; margin-top: 48px; }

/* ---------- Cursor personalizado (solo ratón) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 30px; height: 30px; border: 1px solid rgba(168, 84, 59, 0.5); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transform: translate(-200px, -200px);
  transition: transform .14s var(--ease), opacity .3s ease;
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }

/* ---------- Animaciones de entrada ----------
   Solo se ocultan si el JS está activo (clase .js en <html>) y el usuario
   no ha pedido reducir el movimiento. Sin JS todo se ve igual. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .js [data-reveal="line"] {
    opacity: 1; transform: scaleX(0);
    transition: transform 1.4s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
