/* ==========================================================================
   CLÍNICA LIMA A ESTHETIC — Dra. Fiorella Castillo
   Paleta tomada de sus piezas reales (catálogo + feed de Facebook):
   crema / arena / mocha caramelo, con rosa nude como acento secundario.
   Base estructural: proyecto Dra. Elsa Sánchez (mismo sistema de secciones,
   cards de servicio con foto, slider antes/después, booking, footer, wa-float).
   ========================================================================== */

/* ─── RESET & BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Fondos claros (base de la marca) */
  --bg:        #FAF6F1;   /* crema, fondo principal */
  --bg-2:      #F2E9E0;   /* arena cálida */
  --bg-3:      #EADFD3;   /* arena media */
  --bg-card:   #FFFFFF;

  /* Bloques oscuros (mocha, el marrón de su feed) */
  --bg-dark:   #3B2A20;
  --bg-dark-2: #4E392C;

  /* Texto */
  --ink:       #33241B;
  --text-soft: #6F5747;
  --text-mute: #A78B75;
  --text-light:#F7F1EA;

  /* Acento mocha caramelo (el del catálogo) */
  --accent:      #A97C58;
  --accent-dark: #8A6244;
  --accent-light:#D9BFA6;
  --accent-faint:rgba(169,124,88,0.09);
  --rose:        #E0BEB8;
  --wa:          #25D366;

  /* Semánticos: se reescriben dentro de .section--dark (gotcha B.8) */
  --fg:        var(--ink);
  --fg-soft:   var(--text-soft);
  --fg-mute:   var(--text-mute);
  --line:      rgba(51,36,27,0.13);
  --tone:      var(--accent-dark);   /* color de kickers y detalles */

  /* UI */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-h:     78px;

  /* Spacing — NO CAMBIAR (gotcha B.13) */
  --section-pad:   50px;
  --container:     1200px;
  --container-pad: clamp(1rem, 5vw, 2.5rem);
  --gap:           clamp(1rem, 2.2vw, 1.6rem);

  /* Tipografía */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(51,36,27,0.06);
  --shadow-md: 0 10px 34px rgba(51,36,27,0.10);
  --shadow-lg: 0 22px 60px rgba(51,36,27,0.14);

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ─── SECTION SPACING — NO CAMBIAR (gotcha B.13) ─────────────────────────
   Cada <section> lleva su propio padding-block fijo de 50px. El espacio vive
   DENTRO de la sección, nunca en un margin transparente entre dos, así el
   color de cada bloque ocupa también ese aire.
   Excepciones: .nav (fixed), .hero, .trust-strip y .footer. */
section { padding-block: var(--section-pad); }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #FFF; }

/* ─── BLOQUES OSCUROS ─────────────────────────────────────────────────── */
.section--dark {
  background: var(--bg-dark);
  --fg:      var(--text-light);
  --fg-soft: rgba(247,241,234,0.72);
  --fg-mute: rgba(247,241,234,0.45);
  --line:    rgba(247,241,234,0.14);
  --tone:    var(--accent-light);
  color: var(--fg);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--fg); }
.section--dark p { color: var(--fg-soft); }

/* ─── DEFENSIVE CSS (gotcha A.4.5) ─────────────────────────────────────
   Los estados iniciales ocultos cuelgan de html.js: sin JS la web se ve
   completa, nunca con texto invisible. */
.reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ─── TIPOGRAFÍA ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
em { font-style: italic; color: var(--accent); }

p { font-size: clamp(0.92rem, 1.4vw, 1.02rem); color: var(--fg-soft); line-height: 1.75; font-weight: 300; }

.section-kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tone);
  margin-bottom: 0.9rem;
}

.section-header { text-align: center; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.section-header h2 { margin-bottom: 0.7rem; }
.section-header p  { max-width: 56ch; margin-inline: auto; }

.link-underline {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  position: relative;
  padding-bottom: 3px;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: left; }

/* ─── UTILIDADES ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(169,124,88,0.28);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 34px rgba(169,124,88,0.36); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(51,36,27,0.22);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-faint); }

.section--dark .btn-ghost { color: var(--text-light); border-color: rgba(247,241,234,0.3); }
.section--dark .btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); background: rgba(247,241,234,0.07); }

.btn-full { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(59,42,32,0.62);
  color: #FFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.34);
}

/* ─── SCROLL PROGRESS ─────────────────────────────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 150;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
}

/* ─── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.3rem 0;
  transition: background 0.45s var(--ease-out), padding 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(250,246,241,0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 0.8rem 0;
  border-bottom-color: rgba(51,36,27,0.09);
  box-shadow: 0 2px 20px rgba(51,36,27,0.05);
}

.nav > .container { max-width: none; padding-left: clamp(2rem, 8.3vw, 9rem); padding-right: clamp(2rem, 5vw, 5rem); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav__logo { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; }
.nav__logo-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.nav__logo-sub {
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.25s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--accent-dark); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav__cta {
  padding: 0.55rem 1.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: #FFF;
  border-radius: 50px;
  transition: background 0.25s, transform 0.25s;
}
.nav__cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav.is-mobile-open { background: rgba(250,246,241,0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nav.is-mobile-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250,246,241,0.99);
    padding: 1.5rem var(--container-pad) 1.9rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-mobile-open .nav__links a { font-size: 0.95rem; letter-spacing: 0.08em; }
}

/* En pantallas angostas el logo en versalitas + el CTA + la hamburguesa no
   entran en 375px y se salían del viewport. Se achican los tres. */
@media (max-width: 540px) {
  .nav__inner { gap: 0.7rem; }
  .nav__logo { min-width: 0; }
  .nav__logo-name { font-size: 0.98rem; letter-spacing: 0.05em; }
  .nav__logo-sub  { font-size: 0.5rem; letter-spacing: 0.16em; }
  .nav__actions { gap: 0.6rem; }
  .nav__cta { padding: 0.48rem 0.95rem; font-size: 0.6rem; letter-spacing: 0.1em; }
}

/* ─── HERO ────────────────────────────────────────────────────────────────
   Composición tipo portada de catálogo: bloque crema con la tipografía a la
   izquierda, fotografía a sangre a la derecha. */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--bg);
  padding-block: 0;
  overflow: hidden;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-h) + 50px) clamp(2rem, 5vw, 5rem) 50px;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.hero__panel::after {
  display: none;
}

.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.06);
  transition: transform 9s var(--ease-in-out);
}
.hero.is-ready .hero__media img { transform: scale(1); }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,246,241,0.5) 0%, rgba(250,246,241,0) 32%);
}

.hero__inner { position: relative; z-index: 2; max-width: 30rem; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  transition: opacity 0.8s 0.25s var(--ease-out), transform 0.8s 0.25s var(--ease-out);
}
.js .hero__eyebrow { opacity: 0; transform: translateY(18px); }
.hero.is-ready .hero__eyebrow { opacity: 1; transform: none; }
.hero__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: dotPulse 3.4s var(--ease-in-out) infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169,124,88,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(169,124,88,0); }
}
.hero__eyebrow-text {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.7;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 1.4rem;
  text-wrap: balance;
  transition: opacity 0.9s 0.42s var(--ease-out), transform 0.9s 0.42s var(--ease-out);
}
.js .hero__title { opacity: 0; transform: translateY(28px); }
.hero.is-ready .hero__title { opacity: 1; transform: none; }
.hero__title em { font-style: italic; color: var(--accent); }

.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  color: var(--text-soft);
  max-width: 40ch;
  margin-bottom: 2.1rem;
  transition: opacity 0.8s 0.62s var(--ease-out), transform 0.8s 0.62s var(--ease-out);
}
.js .hero__sub { opacity: 0; transform: translateY(18px); }
.hero.is-ready .hero__sub { opacity: 1; transform: none; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0;
  transition: opacity 0.8s 0.8s var(--ease-out), transform 0.8s 0.8s var(--ease-out);
}
.js .hero__actions { opacity: 0; transform: translateY(18px); }
.hero.is-ready .hero__actions { opacity: 1; transform: none; }

.hero__note {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  transition: opacity 0.8s 1s var(--ease-out);
}
.js .hero__note { opacity: 0; }
.hero.is-ready .hero__note { opacity: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__panel { padding: calc(var(--nav-h) + 46px) var(--container-pad) 46px; order: 2; }
  .hero__panel::after { inset: 0.9rem; }
  .hero__media { order: 1; height: 52vh; min-height: 320px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(250,246,241,0.32) 0%, rgba(250,246,241,0) 40%); }
  .hero__inner { max-width: none; }
}

/* ─── TRUST STRIP ─────────────────────────────────────────────────────────
   Excepción de spacing: nav → hero → trust-strip van pegados, sin padding.
   Va en claro (arena media) porque la sección que sigue, antes/después, es
   el bloque oscuro: si las dos fueran mocha se fundirían en una sola mancha. */
.trust-strip {
  padding: 0;
  background: var(--bg-3);
  border-bottom: 1px solid rgba(51,36,27,0.1);
}
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-strip__item {
  padding: 1.9rem 1.4rem;
  text-align: center;
  border-right: 1px solid rgba(51,36,27,0.1);
}
.trust-strip__item:last-child { border-right: none; }

.trust-strip__num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent-dark);
  margin-bottom: 0.45rem;
}
.trust-strip__mark { display: block; font-size: 1.4rem; line-height: 1; color: var(--accent); margin-bottom: 0.7rem; }
.trust-strip__label {
  display: block;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 22ch;
  margin-inline: auto;
}

/* ─── NUESTRO ESPACIO ─────────────────────────────────────────────────────
   Galería alimentada por Firebase Storage (ver initEspacioGallery en main.js).
   .espacio-gallery__item es la clase común a <img> y <video> generados por JS. */
.espacio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
  max-width: 900px;
  margin-inline: auto;
}
.espacio-gallery__item {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}
.espacio-gallery__empty { grid-column: 1 / -1; text-align: center; color: var(--text-mute); font-size: 0.85rem; }

@media (max-width: 700px) {
  .espacio-gallery { grid-template-columns: 1fr; max-width: 320px; }
}

@media (max-width: 780px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__item:nth-child(2n) { border-right: none; }
  .trust-strip__item:nth-child(-n+2) { border-bottom: 1px solid rgba(51,36,27,0.1); }
}

/* ─── PILARES (dentro de la sección de la doctora) ────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: clamp(2.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.pillar__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.89rem; }

@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 1.9rem; } }

/* ─── TRATAMIENTOS ────────────────────────────────────────────────────────
   Cards de foto a sangre: la imagen ocupa toda la card y un degradado mocha
   la cubre desde abajo para que el texto blanco siempre se lea. */
#tratamientos { background: var(--bg-2); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card--featured { outline: 2px solid var(--accent); outline-offset: -2px; }

.service-card__img { position: absolute; inset: 0; }
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,31,23,0.93) 0%, rgba(45,31,23,0.58) 36%, rgba(45,31,23,0.06) 68%);
}

.service-card__badges { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2; display: flex; gap: 0.4rem; }
.service-card__index {
  position: absolute;
  top: 0.85rem; right: 1rem;
  z-index: 2;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

.service-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.3rem 1.35rem; }
.service-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: #FFF;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.service-card__desc { font-size: 0.82rem; color: rgba(255,255,255,0.8); line-height: 1.55; }

.treat-note { text-align: center; margin-top: 2.2rem; font-size: 0.86rem; color: var(--text-mute); font-style: italic; }

.treat-catalog { max-width: 760px; margin: 2.6rem auto 0; border-top: 1px solid var(--line); }
.treat-catalog-intro { text-align: center; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-mute); margin: 1.7rem 0 0.2rem; }

.treat-catalog-item { border-bottom: 1px solid var(--line); }
.treat-catalog-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink);
  user-select: none;
  transition: color 0.25s;
}
.treat-catalog-item summary:hover { color: var(--accent-dark); }
.treat-catalog-item summary::-webkit-details-marker { display: none; }
.treat-catalog-item__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text-mute);
  transition: transform 0.35s var(--ease-out), border-color 0.25s, color 0.25s;
}
.treat-catalog-item[open] summary { color: var(--accent-dark); }
.treat-catalog-item[open] .treat-catalog-item__icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent-dark); }

.treat-catalog-item__body { padding: 0 0 1.2rem; font-size: 0.86rem; color: var(--text-soft); max-width: 62ch; }
ul.treat-catalog-item__body { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
ul.treat-catalog-item__body li { padding-left: 1.05rem; position: relative; }
ul.treat-catalog-item__body li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }

/* ─── ANTES / DESPUÉS ─────────────────────────────────────────────────── */
.ba-section { background: var(--bg-dark); }
.ba-section .container { max-width: min(1420px, 96vw); }
.ba-section .section-header { margin-bottom: 1.7rem; }

/* Misma familia que .treat-note / .myth-note, en clave clara para el fondo mocha. */
.ba-note { text-align: center; margin-top: 2rem; font-size: 0.8rem; color: rgba(247,241,234,0.55); font-style: italic; }

.ba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; }

.ba-card { display: flex; flex-direction: column; gap: 0.6rem; }
.ba-card__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,241,234,0.62);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.ba-card__label::before { content: '✦'; font-size: 0.5rem; color: var(--accent-light); }

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
  touch-action: none;
  aspect-ratio: 4/3;
  background: var(--bg-dark-2);
  cursor: col-resize;
}
.ba-slider__before, .ba-slider__after { position: absolute; inset: 0; }
.ba-slider__before img, .ba-slider__after img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider__after { clip-path: inset(0 0 0 50%); }

.ba-slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #FFF;
  z-index: 3;
  pointer-events: none;
}
.ba-slider__btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #FFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  pointer-events: none;
}
.ba-slider__arrow { color: var(--bg-dark); font-size: 0.95rem; font-weight: 600; letter-spacing: -2px; }

.ba-slider__tag {
  position: absolute;
  bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 4;
}
.ba-slider__tag--before { left: 0.6rem;  background: rgba(45,31,23,0.75); color: rgba(247,241,234,0.9); }
.ba-slider__tag--after  { right: 0.6rem; background: var(--accent); color: #FFF; }

@media (max-width: 900px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ba-grid { grid-template-columns: 1fr; } }

/* ─── MITOS Y VERDADES ────────────────────────────────────────────────────
   Réplica del formato que ya usa en redes: foto de piel con velo mocha
   encima y el texto en dos tiempos (mito / verdad). */
#mitos { background: var(--bg-2); }

.myth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

.myth { perspective: 1500px; min-height: 320px; cursor: pointer; outline: none; }
.myth__inner {
  position: relative;
  width: 100%; height: 100%;
  min-height: 320px;
  transition: transform 0.85s var(--ease-out);
  transform-style: preserve-3d;
}
.myth:hover .myth__inner,
.myth:focus-visible .myth__inner,
.myth.is-flipped .myth__inner { transform: rotateY(180deg); }

.myth__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: var(--shadow-sm);
}
.myth__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.myth__face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59,42,32,0.94) 8%, rgba(59,42,32,0.72) 48%, rgba(59,42,32,0.42) 100%);
}
.myth__face--back { transform: rotateY(180deg); }
.myth__face--back::after {
  background: linear-gradient(to top, rgba(59,42,32,0.96) 8%, rgba(59,42,32,0.88) 60%, rgba(59,42,32,0.7) 100%);
}
.myth__face > *:not(img) { position: relative; z-index: 2; }

.myth__tag {
  align-self: flex-start;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(224,190,184,0.55);
  color: var(--rose);
  order: -1;
}
.myth__tag--true { border-color: rgba(217,191,166,0.6); color: var(--accent-light); }

.myth__text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.38; color: #FBF7F2; }
.myth__face--back .myth__text { font-family: var(--sans); font-size: 0.89rem; line-height: 1.7; color: rgba(251,247,242,0.86); font-weight: 300; }
.myth__hint { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(251,247,242,0.5); }

.myth-note { text-align: center; margin-top: 2rem; font-size: 0.78rem; color: var(--text-mute); font-style: italic; }

/* ─── LA DOCTORA ──────────────────────────────────────────────────────── */
#doctora { background: var(--bg); }

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.2rem); align-items: stretch; }

/* Placa provisional. Cuando llegue la foto real de la doctora, reemplazar
   este bloque por <img class="about__img" src="assets/img/doctora.jpg"> */
.plate {
  position: relative;
  min-height: 470px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(169,124,88,0.16) 0%, transparent 58%),
    radial-gradient(90% 70% at 80% 100%, rgba(224,190,184,0.28) 0%, transparent 62%),
    linear-gradient(160deg, #F6EFE7 0%, #EADFD3 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.plate__frame { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; padding: 2rem; }
.plate__mono {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8vw, 6.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.plate__name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); letter-spacing: 0.05em; }
.plate__sub { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-mute); }
.plate__corner { position: absolute; width: 40px; height: 40px; border: 1px solid rgba(169,124,88,0.4); }
.plate__corner--tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.plate__corner--br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.about__img {
  width: 100%; height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__name { margin-bottom: 0.25rem; }
.about__role { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1.5rem; }
.about__bio { font-size: 0.94rem; margin-bottom: 1rem; }
.about__bio:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .plate, .about__img { min-height: 340px; }
  .plate { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ─── RESERVA ─────────────────────────────────────────────────────────── */
#reserva { background: var(--bg-3); }
#reserva .section-header { margin-bottom: 2.4rem; }

.booking-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.6rem; align-items: start; }
@media (max-width: 980px) { .booking-grid { grid-template-columns: 1fr; } }

.booking-widget {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.9rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.booking-widget-header h3 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.booking-widget-header p { font-size: 0.83rem; color: var(--text-mute); margin-bottom: 1.4rem; }
.booking-widget-hint { margin-top: -1.1rem; font-size: 0.74rem; }

.booking-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.booking-month-label { font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.booking-nav {
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--text-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.booking-nav:hover { background: var(--accent-faint); border-color: var(--accent); color: var(--accent-dark); }
.booking-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.booking-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}
.booking-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 1.15rem; }
.booking-day {
  aspect-ratio: 1;
  border-radius: 7px;
  font-size: 0.81rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.booking-day--empty { cursor: default; }
.booking-day--off   { color: var(--text-mute); cursor: not-allowed; opacity: 0.4; }
.booking-day--avail { cursor: pointer; }
.booking-day--avail:hover { background: var(--accent-faint); border-color: var(--accent); }
.booking-day--selected { background: var(--accent) !important; color: #FFF !important; border-color: var(--accent-dark) !important; font-weight: 500; }
.booking-day--today { border-color: rgba(51,36,27,0.32); font-weight: 600; }

.booking-slots { margin-bottom: 1.15rem; }
.booking-slots-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.55rem;
}
.booking-slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.42rem; }
@media (min-width: 520px) { .booking-slots-grid { grid-template-columns: repeat(5, 1fr); } }

.slot {
  padding: 0.5rem 0.4rem;
  border-radius: 7px;
  font-size: 0.77rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.slot:hover { background: var(--accent-faint); border-color: var(--accent); }
.slot--selected { background: var(--accent); border-color: var(--accent-dark); color: #FFF; }
.slot--busy { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }
.slot:disabled:not(.slot--busy) { opacity: 0.35; cursor: not-allowed; }

.booking-slots-error {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #B23B3B;
}


.booking-input {
  display: block;
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.89rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  margin-bottom: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.booking-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169,124,88,0.13); }
.booking-form .btn-primary { margin-top: 0.35rem; }
.booking-form-cancel {
  display: block;
  margin: 0.6rem auto 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.booking-form-cancel:hover { color: var(--accent-dark); }

.booking-success { text-align: center; padding: 2rem 1rem; }
.booking-success-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent-faint);
  color: var(--accent-dark);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.booking-success p { color: var(--ink); margin-bottom: 0.3rem; }
.booking-success-sub { color: var(--text-soft); font-size: 0.85rem; }

.booking-demo-label {
  font-size: 0.67rem;
  color: var(--text-mute);
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

.booking-contact-inner {
  padding: 2.1rem 2rem 2.2rem;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}
.booking-contact-inner .section-kicker { color: var(--accent-light); }
.booking-contact-inner h3 { font-size: 1.7rem; color: var(--text-light); margin-bottom: 0.65rem; }
.booking-contact-inner > p { color: rgba(247,241,234,0.6); font-size: 0.89rem; margin-bottom: 1.4rem; }

.booking-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: rgba(247,241,234,0.07);
  color: var(--text-light);
  padding: 0.88rem 1.3rem;
  border-radius: 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(247,241,234,0.15);
  margin-bottom: 0.65rem;
  transition: background 0.25s, border-color 0.25s;
}
.booking-phone-btn:hover { background: rgba(217,191,166,0.16); border-color: rgba(217,191,166,0.45); }

.booking-info-item { padding: 0.88rem 0; border-top: 1px solid rgba(247,241,234,0.1); display: flex; flex-direction: column; gap: 0.18rem; }
.booking-info-item:first-of-type { margin-top: 0.85rem; }
.booking-info-item strong { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-light); font-weight: 500; }
.booking-info-item span { font-size: 0.82rem; color: rgba(247,241,234,0.52); line-height: 1.6; }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
#faq { background: var(--bg); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  color: var(--ink);
  user-select: none;
  transition: color 0.25s;
}
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text-mute);
  transition: transform 0.35s var(--ease-out), border-color 0.25s, color 0.25s;
}
.faq-item[open] summary { color: var(--accent-dark); }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent-dark); }
.faq-item__body { padding: 0 0 1.35rem; font-size: 0.9rem; max-width: 70ch; }

.faq-cta { text-align: center; margin-top: 2.8rem; }
.faq-cta p { margin-bottom: 1.05rem; font-size: 1.05rem; color: var(--ink); }

/* ─── UBICACIÓN ───────────────────────────────────────────────────────── */
#ubicacion { background: var(--bg-2); }

.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.3rem; align-items: stretch; }
.locations-grid--second { margin-top: clamp(2.4rem, 5vw, 4rem); }

.location-info { display: flex; flex-direction: column; }
.location-info h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 0.6rem; }
.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.92rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-soft);
}
.location-detail:last-of-type { border-bottom: none; }
.location-detail__icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.location-detail strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.18rem;
}
.location-detail a { color: var(--accent-dark); }
.location-cta { margin-top: auto; padding-top: 1.5rem; }
.location-cta .btn { display: inline-flex; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 330px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  filter: grayscale(0.28) sepia(0.12) contrast(1.02);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 330px; }

@media (max-width: 860px) {
  .locations-grid { grid-template-columns: 1fr; }
  .map-wrap, .map-wrap iframe { min-height: 260px; }
}

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.footer { background: var(--bg-dark); padding-block: 3.4rem; color: rgba(247,241,234,0.55); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: 2.3rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(247,241,234,0.14);
  margin-bottom: 1.7rem;
}
.footer__logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
}
.footer__logo-sub { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 1rem; display: block; }
.footer__brand p { font-size: 0.82rem; color: rgba(247,241,234,0.44); max-width: 32ch; }
.footer__col-title {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.95rem;
  display: block;
}
.footer__col-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col-links a { font-size: 0.83rem; color: rgba(247,241,234,0.5); transition: color 0.25s; }
.footer__col-links a:hover { color: var(--text-light); }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__copy { font-size: 0.74rem; color: rgba(247,241,234,0.45); }
.footer__socials { display: flex; gap: 0.65rem; }
.footer__social {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(247,241,234,0.16);
  display: flex; align-items: center; justify-content: center;
  color: rgba(247,241,234,0.5);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.footer__social:hover { border-color: var(--accent-light); color: var(--accent-light); background: rgba(217,191,166,0.1); }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; text-align: center; } }

/* ─── WHATSAPP FLOAT ──────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: #FFFFFF;
  padding: 0.75rem 1.2rem 0.75rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(37,211,102,0.32);
  font-size: 0.83rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  pointer-events: none;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 38px rgba(37,211,102,0.42); }
.wa-float__icon { flex-shrink: 0; }
.wa-float__text { white-space: nowrap; }
.wa-float.is-pulse .wa-float__icon { animation: waPulse 2s var(--ease-in-out) 3; }
@keyframes waPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }

@media (max-width: 620px) {
  .wa-float { padding: 0; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .wa-float__text { display: none; }
}

/* ─── REDUCED MOTION ──────────────────────────────────────────────────────
   Solo se apagan los loops infinitos de fondo. Los micro-efectos (hover,
   fades, reveal) NO se tocan: Windows trae prefers-reduced-motion activado
   por defecto en muchas configuraciones (gotcha A.2). */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation-duration: 150s; }
  .hero__dot { animation: none; }
  .wa-float.is-pulse .wa-float__icon { animation: none; }
  .hero__media img { transition: none; }
}

/* ─── PANEL ADMIN (panel-citas.html, servido en /f) ─────────────────────── */
.admin-page {
  min-height: 100vh;
  background: var(--bg);
  padding: clamp(1.2rem, 4vw, 3rem);
}
.admin-shell { max-width: 880px; margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap; }
.admin-header h1 { font-size: 1.6rem; }
.admin-header p { color: var(--text-mute); font-size: 0.85rem; }

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.9rem;
  box-shadow: var(--shadow-md);
}

.admin-login { max-width: 380px; margin: 10vh auto 0; }
.admin-login h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.admin-login .booking-input { margin-bottom: 0.7rem; }
.admin-login-error { color: #B23B3B; font-size: 0.8rem; margin-top: 0.6rem; min-height: 1.2em; }

.admin-section { margin-bottom: 2rem; }
.admin-section h2 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.admin-empty { color: var(--text-mute); font-size: 0.85rem; }

.admin-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.76rem;
  font-family: var(--sans);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.admin-btn:hover { background: var(--accent-faint); border-color: var(--accent); }
.admin-btn--danger { color: #B23B3B; border-color: rgba(178,59,59,0.3); }
.admin-btn--danger:hover { background: rgba(178,59,59,0.08); border-color: #B23B3B; }

.admin-logout { font-size: 0.8rem; color: var(--text-soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.8rem; }

.admin-week-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.3rem; }
.admin-week-hint { font-size: 0.78rem; color: var(--text-mute); }
.admin-week-nav { display: flex; align-items: center; gap: 0.65rem; }

.admin-week-grid {
  display: grid;
  grid-template-columns: 56px repeat(7, minmax(48px, 1fr));
  gap: 3px;
  overflow-x: auto;
}
.admin-week-cell-head {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  text-align: center;
  padding: 0.35rem 0.1rem;
}
.admin-week-cell-head--today { color: var(--accent-dark); }
.admin-week-time-label {
  font-size: 0.68rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.35rem;
}
.admin-week-cell {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.66rem;
  padding: 0.2rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-soft);
  overflow: hidden;
}
.admin-week-cell:hover { border-color: var(--accent); }
.admin-week-cell--free:hover { background: var(--accent-faint); }
.admin-week-cell--past { cursor: not-allowed; opacity: 0.3; }
.admin-week-cell--blocked { background: rgba(178,59,59,0.09); border-color: rgba(178,59,59,0.25); color: #B23B3B; }
.admin-week-cell--booked { background: var(--accent); border-color: var(--accent-dark); color: #FFF; font-weight: 500; }

.admin-week-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.72rem; color: var(--text-soft); }
.admin-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.35rem; vertical-align: middle; }
.admin-legend-dot--free { background: var(--bg); border: 1px solid var(--line); }
.admin-legend-dot--blocked { background: rgba(178,59,59,0.25); }
.admin-legend-dot--booked { background: var(--accent); }

.admin-week-detail {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-faint);
}
.admin-week-detail p { font-size: 0.85rem; margin-bottom: 0.3rem; }
.admin-week-detail .admin-btn { margin-top: 0.5rem; }
.admin-logout:hover { border-color: var(--accent); color: var(--accent-dark); }

.admin-history { margin-top: 0; }
.admin-history-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  user-select: none;
}
.admin-history-summary::-webkit-details-marker { display: none; }
.admin-history-summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-mute);
  transition: transform 0.3s var(--ease-out);
}
.admin-history[open] .admin-history-summary::after { transform: rotate(45deg); }
.admin-history-body { margin-top: 1.2rem; }

.admin-history-day { margin-bottom: 1.2rem; }
.admin-history-day__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone);
  margin-bottom: 0.55rem;
}
.admin-history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.admin-history-row__time { font-weight: 600; color: var(--ink); flex-shrink: 0; }
.admin-history-row__meta { color: var(--text-soft); }
