/* ===== KYOSAI STARTER — tokens + preset + componentes ===== */
/* Copia para demo-barberia: solo el preset "calido"; se quitó CSS no usado (galería, reseñas, otros presets). */

/* ---- Tokens base ---- */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --fs-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2.2rem, 1.6rem + 3vw, 3.5rem);

  --container: 1200px;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
  --ease: cubic-bezier(.2,.7,.2,1);

  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-transform: none; --head-weight: 700;
}

/* ---- Preset ---- */
[data-theme="calido"] {
  --font-head: "Fraunces", Georgia, serif;
  --bg: #fbf7f1; --bg-alt: #f3ebe0; --surface: #fffdf9;
  --text: #1f1a17; --muted: #5c5048; --border: #e6dccf;
  --brand: #a4461f; --brand-contrast: #ffffff; --radius: 14px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font-head); font-weight: var(--head-weight);
  text-transform: var(--head-transform); line-height: 1.12;
  margin: 0 0 var(--s-4); letter-spacing: -0.01em; text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--s-6); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-4); max-width: 65ch; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * 20px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center p { margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; padding: var(--s-3) var(--s-4); background: var(--brand); color: var(--brand-contrast); z-index: 100; }
.skip-link:focus { left: var(--s-4); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  background: var(--brand); color: var(--brand-contrast);
  border: 2px solid var(--brand); border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 44px; padding: var(--s-2) var(--s-4); }
.btn-lg { min-height: 56px; padding: var(--s-4) var(--s-6); font-size: var(--fs-lg); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-family: var(--font-head); font-weight: var(--head-weight); font-size: var(--fs-lg); color: var(--text); text-decoration: none; text-transform: var(--head-transform); }
.nav { display: flex; gap: var(--s-5); align-items: center; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: var(--s-2); min-width: 44px; min-height: 44px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-4) 20px var(--s-5); background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: var(--s-3) 0; }
  .nav .btn { margin-top: var(--s-3); }
}

/* ---- Hero ---- */
.hero { padding: var(--s-8) 0; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: var(--s-9) 0; } }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-3); }
.lead { font-size: var(--fs-lg); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0; }

/* ---- Secciones ---- */
.section { padding: var(--s-8) 0; }
@media (min-width: 900px) { .section { padding: var(--s-9) 0; } }
.section-alt { background: var(--bg-alt); }
.cards { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-6); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price { font-weight: 600; color: var(--text); margin: 0; }

.split { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
address { font-style: normal; font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.hours { border-collapse: collapse; margin-bottom: var(--s-5); width: 100%; max-width: 420px; }
.hours caption { text-align: left; font-weight: 600; margin-bottom: var(--s-2); }
.hours th, .hours td { text-align: left; padding: var(--s-2) var(--s-4) var(--s-2) 0; border-bottom: 1px solid var(--border); font-weight: 400; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--bg-alt); }

.faq details { border-bottom: 1px solid var(--border); padding: var(--s-4) 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--brand); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: var(--s-3) 0 0; color: var(--muted); }

.cta-final { background: var(--brand); color: var(--brand-contrast); }
.cta-final .btn { background: var(--brand-contrast); color: var(--brand); border-color: var(--brand-contrast); }

/* ---- Footer ---- */
.site-footer { padding: var(--s-7) 0 var(--s-9); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-5); }
.site-footer a { color: inherit; }

/* ---- WhatsApp flotante ---- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: var(--shadow); transition: transform .18s var(--ease); }
.wa-float:hover { transform: scale(1.06); }

/* ---- Aparición suave ---- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* cliente — Lapacho Barbería (demo) */
[data-theme="calido"] { --brand: #9e2b5b; } /* magenta lapacho: 7.1:1 con blanco, 6.0:1 sobre --bg-alt */

.demo-bar { margin: 0; max-width: none; padding: var(--s-2) 20px; background: var(--text); color: var(--bg); font-size: var(--fs-sm); text-align: center; }

.brand { display: inline-flex; align-items: baseline; min-height: 44px; padding-top: 10px; }
.brand span { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: var(--s-1); }

/* Bloque visual del hero (reemplaza la foto mientras no haya fotos reales) */
.hero-visual {
  position: relative; aspect-ratio: 4 / 5; max-height: 560px; width: 100%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 30% 25%, rgb(255 255 255 / .18), transparent 55%),
    repeating-linear-gradient(-45deg, var(--brand) 0 28px, #87244d 28px 56px);
  display: grid; place-items: center;
}
@media (max-width: 899px) { .hero-visual { aspect-ratio: 16 / 9; } }
.hero-mono { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 4rem + 10vw, 11rem); line-height: 1; color: var(--brand-contrast); background: var(--brand); width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; border: 6px solid var(--brand-contrast); }
.hero-chip { position: absolute; left: var(--s-4); bottom: var(--s-4); background: var(--surface); color: var(--text); padding: var(--s-2) var(--s-4); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }

/* Firma visual: marquesina de servicios */
.marquee { overflow: hidden; background: var(--text); color: var(--bg); border-block: 1px solid var(--text); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: var(--fs-lg); padding: var(--s-4) var(--s-5); white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: #e7a6c3; margin-left: var(--s-5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Servicios: lista tipo menú */
.menu { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.menu li { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.menu-row { display: flex; align-items: baseline; gap: var(--s-3); }
.menu-row h3 { margin: 0; font-size: var(--fs-lg); }
.menu-dots { flex: 1; border-bottom: 2px dotted var(--border); transform: translateY(-4px); min-width: var(--s-5); }
.menu .price { white-space: nowrap; color: var(--brand); }
.menu-desc { margin: var(--s-1) 0 0; color: var(--muted); }
.note { font-size: var(--fs-sm); color: var(--muted); }

.icon { color: var(--brand); margin-bottom: var(--s-4); }
.credit p { margin: 0 0 var(--s-2); }
