/* =========================================================
   GC · Clínica integral
   Mobile-first · paleta neutra cálida · Cormorant + Inter
   ========================================================= */

:root {
  /* Paleta */
  --ivory: #FBF8F3;
  --cream: #F4EEE5;
  --linen: #EDE5DA;
  --sand: #E1D3C1;
  --taupe: #B5A493;
  --taupe-deep: #8A7766;
  --coffee: #7A5A45;
  --coffee-deep: #5F4535;
  --charcoal: #2E2B28;
  --ink-soft: #5E5852;
  --white: #FFFDFA;
  --line: rgba(46, 43, 40, .12);
  --line-strong: rgba(46, 43, 40, .24);

  /* Tipografía */
  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Forma */
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(46, 43, 40, .04), 0 18px 40px -20px rgba(46, 43, 40, .18);

  --header-h: 68px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  interpolate-size: allow-keywords;
  color-scheme: light;
}

html.nav-locked,
html:has(dialog[open]) { overflow: hidden; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 500; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--charcoal);
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--coffee);
}

:focus-visible {
  outline: 2px solid var(--coffee);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--ivory);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(72px, 11vw, 128px); }
.section--cream { background: var(--cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coffee);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2.125rem, 5.6vw, 3.25rem);
}
.section-head > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 .9375rem/1.2 var(--font-sans);
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--coffee); color: var(--white); }
.btn-primary:hover { background: var(--coffee-deep); box-shadow: 0 12px 24px -14px rgba(95, 69, 53, .7); }

.btn-ghost { border-color: var(--line-strong); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { border-color: var(--charcoal); background: rgba(46, 43, 40, .03); }

.btn-light { background: var(--ivory); color: var(--coffee-deep); }
.btn-light:hover { background: var(--white); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .45); }

.btn-sm { min-height: 44px; padding: 0 20px; font-size: .875rem; white-space: nowrap; }
.btn-lg { min-height: 58px; padding: 0 36px; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--coffee);
  text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--coffee-deep); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Selector segmentado ---------- */

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.segmented label { position: relative; display: flex; }
.segmented input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: .875rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.segmented label:hover span { color: var(--charcoal); }
.segmented input:checked + span { background: var(--charcoal); color: var(--ivory); }
.segmented input:focus-visible + span { outline: 2px solid var(--coffee); outline-offset: 2px; }

/* ---------- Accesos a la agenda ---------- */

.book-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}
.book-hint { max-width: 38ch; font-size: .875rem; color: var(--ink-soft); }

/* "Agendar" en cada tratamiento */
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--coffee);
  font: 500 .875rem/1 var(--font-sans);
  letter-spacing: .02em;
  color: var(--white);
  cursor: pointer;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.book-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.book-link:hover { background: var(--coffee-deep); box-shadow: 0 12px 24px -14px rgba(95, 69, 53, .7); }
.book-link:hover .icon { transform: translateX(3px); }
.book-link:active { transform: translateY(1px); }

/* Sin JavaScript la agenda no existe: se ocultan sus accesos */
html:not(.js) .book-link,
html:not(.js) .book-hint,
html:not(.js) .book-fab { display: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(251, 248, 243, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.nav-open { background: var(--ivory); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 26px; }
@media (min-width: 768px) { .brand-logo { height: 30px; } }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.nav-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 32px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav-open .main-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.main-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 379px) {
  .header-actions .btn-sm { padding: 0 14px; font-size: .8125rem; }
}

@media (min-width: 1080px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .main-nav ul { display: flex; gap: 30px; }
  .main-nav a {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-family: var(--font-sans);
    font-size: .875rem;
    font-weight: 400;
    color: var(--ink-soft);
    transition: color .25s var(--ease);
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--coffee);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .main-nav a:hover,
  .main-nav a[aria-current] { color: var(--charcoal); }
  .main-nav a:hover::after,
  .main-nav a[aria-current]::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(36px, 8vw, 80px));
  padding-bottom: clamp(56px, 9vw, 112px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -30%;
  width: 90vw;
  height: 90vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 211, 193, .55), rgba(225, 211, 193, 0));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.75rem, 9.5vw, 5rem);
  line-height: 1.02;
}
.hero .lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  font-weight: 300;
  color: var(--ink-soft);
}
.hero .btn-row { margin-top: 32px; }
.hero .btn-row .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero .btn-row .btn { flex: 0 0 auto; } }

.hero-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--ink-soft);
}
.hero-hint .icon { width: 16px; height: 16px; color: var(--coffee); }

.hero-media { position: relative; container-type: inline-size; }

.arch {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  border-radius: 50cqw 50cqw var(--radius-lg) var(--radius-lg);
  background:
    radial-gradient(120% 90% at 30% 15%, #F5EDE2 0%, rgba(245, 237, 226, 0) 60%),
    linear-gradient(160deg, #EADFCF 0%, #D9C7B1 100%);
}
@media (min-width: 640px) { .arch { aspect-ratio: 1 / 1; } }
@media (min-width: 960px) { .arch { aspect-ratio: 4 / 5; } }

.arch > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 8%;
}
.arch-logo { width: 74%; height: auto; opacity: .55; }

.hero-note {
  position: absolute;
  left: 12px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 253, 250, .92);
  box-shadow: var(--shadow);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.hero-note-line { width: 18px; height: 1px; background: var(--coffee); }
@media (min-width: 960px) { .hero-note { left: -24px; bottom: 40px; } }

/* ---------- Barra de confianza ---------- */

.trust {
  background: var(--cream);
  border-block: 1px solid var(--line);
}
.trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 12px;
  text-align: center;
  font-size: .875rem;
  line-height: 1.45;
}
.trust-item .icon { width: 28px; height: 28px; color: var(--coffee); }
.trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-item {
    flex-direction: row;
    justify-content: center;
    padding: 32px 20px;
    text-align: left;
    border: 0 !important;
  }
  .trust-item + .trust-item { border-left: 1px solid var(--line) !important; }
}

/* ---------- Tarjetas ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}
@media (min-width: 640px) { .card { padding: 40px; } }

.group-head {
  display: flex;
  flex-wrap: wrap; /* en pantallas angostas el contador baja de línea */
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 18px;
}
.group-head h3 { font-size: clamp(1.75rem, 4vw, 2.125rem); }
.group-count { font-size: .8125rem; color: var(--ink-soft); white-space: nowrap; }

.badge {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--coffee);
  white-space: nowrap;
}

/* ---------- Equipo ---------- */

.team-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 80%);
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.team-grid::-webkit-scrollbar { display: none; }
.team-card { scroll-snap-align: start; }

@media (min-width: 768px) {
  .team-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

.photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #F0E7DB 0%, #DCCAB4 100%);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-style: italic;
  color: rgba(122, 90, 69, .4);
}

.team-card h3 { margin-top: 22px; font-size: 1.75rem; }
.team-role {
  margin-top: 6px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coffee);
}
.team-quote {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
}

.swipe-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .8125rem;
  color: var(--ink-soft);
}
.swipe-hint .icon { width: 16px; height: 16px; }
@media (min-width: 768px) { .swipe-hint { display: none; } }

/* ---------- Estética ---------- */

.treat-groups { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .treat-groups { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}

.treatment {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.treatment:last-child { padding-bottom: 0; }

.treatment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.treatment-name { font-size: 1.375rem; line-height: 1.2; }
.treatment-desc {
  margin-top: 8px;
  max-width: 46ch;
  font-size: .9375rem;
  color: var(--ink-soft);
}

.price {
  flex: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--coffee);
  white-space: nowrap;
}
.price small { font-size: .8125rem; font-weight: 400; color: var(--ink-soft); }
.price--muted {
  flex: 0 1 auto;
  font-size: .875rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  white-space: normal;
  text-align: right;
}

.pack {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: .875rem;
}
.pack-text { flex: 1; color: var(--charcoal); }
.pack-price { font-weight: 500; color: var(--coffee); font-variant-numeric: tabular-nums; }

.tag {
  padding: 3px 10px;
  border: 1px solid rgba(122, 90, 69, .35);
  border-radius: 999px;
  background: var(--white);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coffee);
}

.footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.footnote .icon { width: 18px; height: 18px; color: var(--coffee); }

/* ---------- Depilación ---------- */

.laser-grid { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .laser-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
}

.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.price-list--packs li:last-child { padding-bottom: 0; }
.price-list .book-link { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }

/* Zonas: nombres cortos, el botón va en la misma línea */
.price-list--zones li { grid-template-columns: 1fr auto auto; align-items: center; padding: 10px 0; }
.price-list--zones .book-link { grid-column: auto; margin-top: 0; padding: 0 16px; }
@media (max-width: 479px) {
  .price-list--zones li { column-gap: 12px; }
  .price-list--zones .book-link .icon { display: none; }
}
/* Teléfonos muy angostos (320 px): el botón baja de línea, igual que en los packs */
@media (max-width: 359px) {
  .card { padding-inline: 18px; }
  .price-list--zones li { grid-template-columns: 1fr auto; padding: 16px 0; }
  .price-list--zones .book-link { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
}
.price-list--packs .pl-name { font-family: var(--font-serif); font-size: 1.3125rem; font-weight: 500; line-height: 1.25; }
.price-list--zones .pl-name { font-size: .9375rem; }
.plus { color: var(--taupe-deep); font-weight: 400; margin-inline: .1em; }

@media (min-width: 640px) and (max-width: 959px) {
  .price-list--zones { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* ---------- Psicología ---------- */

.psy {
  position: relative;
  overflow: hidden;
  background: var(--linen);
}
.psy::before {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -30%;
  width: 80vw;
  height: 80vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251, 248, 243, .7), rgba(251, 248, 243, 0));
  pointer-events: none;
}

.psy-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .psy-grid { grid-template-columns: .85fr 1.15fr; gap: 88px; }
}

.psy-media { container-type: inline-size; max-width: 440px; width: 100%; }
.arch--tall { aspect-ratio: 4 / 5; }
.arch--tall .photo-initials { position: static; }

.psy-copy h2 {
  margin-top: 16px;
  font-size: clamp(2.125rem, 5.4vw, 3.25rem);
}
.psy-intro {
  margin-top: 20px;
  max-width: 40em;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.psy-person {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 1px solid var(--coffee);
}
.psy-name { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; }
.psy-role { font-size: .875rem; color: var(--ink-soft); }

.psy-label {
  margin-top: 28px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coffee);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chips li {
  padding: 8px 16px;
  border: 1px solid rgba(122, 90, 69, .25);
  border-radius: 999px;
  background: rgba(255, 253, 250, .6);
  font-size: .875rem;
}

.psy-facts {
  display: grid;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .psy-facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.psy-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.psy-fact .icon { margin-top: 2px; color: var(--coffee); }
.psy-fact dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.psy-fact dd { margin: 2px 0 0; font-size: 1rem; }
.psy-fact dd.psy-price { font-family: var(--font-serif); font-size: 1.625rem; font-weight: 500; line-height: 1.2; font-variant-numeric: lining-nums; }

.psy-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

/* ---------- Por qué GC ---------- */

.why-grid { display: grid; border-top: 1px solid var(--line); }
.why-item { padding: 32px 0; border-bottom: 1px solid var(--line); }
.why-num { font-family: var(--font-serif); font-size: 1.125rem; font-style: italic; color: var(--coffee); }
.why-item h3 { margin-top: 10px; font-size: 1.875rem; }
.why-item > p:last-child { margin-top: 12px; max-width: 36ch; color: var(--ink-soft); }

@media (min-width: 900px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 0; }
  .why-item { padding: 32px 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong); }
}

/* ---------- Sedes ---------- */

.sedes-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .sedes-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.sede-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.map { position: relative; aspect-ratio: 16 / 10; background: var(--linen); }
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.4) sepia(.12) contrast(.95);
}
.sede-body { display: flex; flex-direction: column; flex: 1; padding: 28px 22px 24px; }
@media (min-width: 640px) { .sede-body { padding: 32px 36px 28px; } }
.sede-body h3 { font-size: 2rem; }
.sede-info { display: grid; gap: 10px; margin-top: 16px; color: var(--ink-soft); }
.sede-info li { display: flex; align-items: flex-start; gap: 12px; }
.sede-info .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--coffee); }
.sede-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}
.faq-aside .text-link { margin-top: 12px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--coffee); }

.faq-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--coffee);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.faq-icon .icon { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--cream); }

.faq-answer { padding: 0 52px 24px 0; color: var(--ink-soft); }

/* Apertura suave donde el navegador lo soporta */
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

mark.todo { background: #F6E7C8; color: var(--charcoal); padding: 2px 6px; border-radius: 4px; }

/* ---------- CTA final ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 12vw, 136px);
  background: var(--coffee);
  color: var(--ivory);
  text-align: center;
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(820px, 150vw);
  height: auto;
  transform: translate(-50%, -50%);
  filter: brightness(0) invert(1); /* el logo café pasa a marfil */
  opacity: .06;
  pointer-events: none;
}
.cta h2 {
  max-width: 14ch;
  font-size: clamp(2.375rem, 7vw, 4rem);
  color: var(--ivory);
}
.cta p {
  max-width: 34em;
  margin-top: 20px;
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(251, 248, 243, .85);
}
.cta .btn { margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 72px;
  padding-bottom: 104px; /* espacio para el botón flotante */
  background: var(--cream);
  font-size: .9375rem;
  color: var(--ink-soft);
}

.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; } }

.footer-logo { display: block; width: 270px; max-width: 100%; height: auto; }
.footer-brand p { margin-top: 24px; max-width: 30ch; }
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--coffee);
}
.footer-title--spaced { margin-top: 28px; }
.footer-list { display: grid; gap: 12px; }
.footer-list strong { color: var(--charcoal); }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--charcoal);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-link:hover { color: var(--coffee); }
.footer-link .icon { width: 20px; height: 20px; color: var(--coffee); }
.footer-link small { display: block; font-size: .8125rem; color: var(--ink-soft); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
}
@media (min-width: 900px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 32px; }
}

/* ---------- Botón flotante ---------- */

.book-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--coffee);
  color: var(--white);
  font: 500 .9375rem/1 var(--font-sans);
  letter-spacing: .02em;
  box-shadow: 0 14px 30px -12px rgba(60, 40, 28, .6);
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .3s var(--ease), opacity .3s var(--ease), visibility 0s;
}
.book-fab:hover { background: var(--coffee-deep); transform: translateY(-2px); }
.book-fab .icon { width: 22px; height: 22px; }
.book-fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s linear .3s;
}

/* ---------- Agenda (hoja de reserva) ---------- */

.booking {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 92vh;
  max-height: 92dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--ivory);
  color: var(--charcoal);
  box-shadow: 0 -20px 60px -20px rgba(46, 43, 40, .35);
  overflow: hidden;
}
.booking:not([open]) { display: none; }
.booking[open] { display: flex; flex-direction: column; animation: sheet-up .4s var(--ease); }

/* Modo compatible (navegadores sin <dialog> nativo): fondo oscuro con sombra */
html.booking-open { overflow: hidden; }
html.booking-open .booking { z-index: 100; box-shadow: 0 0 0 100vmax rgba(46, 43, 40, .45); }
.booking::backdrop { background: rgba(46, 43, 40, .45); }
.booking[open]::backdrop { animation: fade-in .3s var(--ease); }

@media (min-width: 640px) {
  .booking {
    inset: 0;
    width: min(540px, calc(100% - 48px));
    max-height: min(820px, calc(100vh - 48px));
    max-height: min(820px, calc(100dvh - 48px));
    margin: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -30px rgba(46, 43, 40, .45);
  }
  .booking[open] { animation: dialog-in .3s var(--ease); }
}

@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* flex-basis auto (no 0%): con 0% Safari/iPhone deja la hoja con altura 0 */
.booking-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--line);
}
.booking-head h2 { font-size: 1.875rem; }
.booking-sub { margin-top: 4px; font-size: .875rem; color: var(--ink-soft); }
.booking-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -6px -10px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.booking-close:hover { background: var(--cream); }

.booking-body {
  display: grid;
  align-content: start;
  gap: 20px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.booking-foot {
  padding: 14px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.booking-foot .btn { width: 100%; }
.booking-to { margin-top: 10px; text-align: center; font-size: .8125rem; color: var(--ink-soft); }
.booking-foot .btn + .btn { margin-top: 10px; }
.booking-sede-note { font-size: .8125rem; line-height: 1.45; color: var(--ink-soft); }
.booking-sede-note[hidden], .booking-form[hidden], .booking-agenda[hidden], #booking-agenda-open[hidden] { display: none; }

/* Reserva online (AgendaPro) dentro de la hoja */
.booking.is-agenda { height: 92vh; height: 92dvh; }
.booking-agenda { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.booking-agenda-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.booking-agenda-head .booking-close { margin: 0; }
.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--coffee-deep);
  cursor: pointer;
}
.booking-back .icon { transform: rotate(180deg); }
.booking-agenda-out { margin-left: auto; font-size: .8125rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.booking-agenda-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: var(--white); }
@media (min-width: 640px) {
  .booking.is-agenda { height: min(820px, calc(100vh - 48px)); height: min(820px, calc(100dvh - 48px)); }
}

@media (min-width: 640px) {
  .booking-head, .booking-body, .booking-foot { padding-inline: 28px; }
}

.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { padding: 0; font-size: .8125rem; font-weight: 500; color: var(--charcoal); }
.optional { font-weight: 400; color: var(--ink-soft); }
.field-note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: .875rem;
}

.area-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.area-option { position: relative; display: flex; }
.area-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.area-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.area-card .icon { color: var(--coffee); }
.area-option:hover .area-card { border-color: var(--taupe); }
.area-option input:checked + .area-card {
  border-color: var(--coffee);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--coffee);
}
.area-option input:focus-visible + .area-card { outline: 2px solid var(--coffee); outline-offset: 2px; }

.input,
.select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--charcoal);
  font: 400 1rem/1.3 var(--font-sans); /* 16px evita el zoom automático en iPhone */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.select {
  padding-right: 44px;
  appearance: none;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
.input::placeholder { color: #8F8780; }
.input:focus,
.select:focus { outline: none; border-color: var(--coffee); box-shadow: 0 0 0 3px rgba(122, 90, 69, .15); }

.booking .segmented { display: flex; width: 100%; }
.booking .segmented label { flex: 1; }
.booking .segmented span { justify-content: center; width: 100%; padding: 0 10px; }

.booking-preview {
  padding: 14px 16px;
  border: 1px dashed var(--sand);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.booking-message {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.45;
  font-variant-numeric: lining-nums;
}

/* ---------- Animaciones al hacer scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-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-duration: .01ms !important; }
}
