/* ============= TOKENS ============= */
:root {
  /* Modo claro (default) */
  --cream: #F5EFE4;
  --carbon: #1A1A1A;
  --gold: #C9A24B;
  --gold-soft: #D9B97A;
  --mist-1: #D9D4CA;
  --mist-2: #B0AAA0;
  --mist-3: #6B6B6B;

  /* Modo oscuro (solo promo) */
  --black: #0A0A0A;
  --gold-metal: #D4AF37;
  --gold-metal-light: #F4D27A;
  --cream-on-black: #EDE6D6;

  --shadow-soft: 0 10px 40px rgba(26, 26, 26, 0.08);
  --shadow-card: 0 4px 20px rgba(26, 26, 26, 0.06);
  --radius: 4px;

  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--carbon);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============= TIPOGRAFÍA ============= */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--carbon);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }

p { margin: 0; }

.serif-italic {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--mist-3);
}

.attribution {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============= ELEMENTOS ORNAMENTALES ============= */
.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px auto;
  max-width: 280px;
}

.divider-gold::before,
.divider-gold::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.divider-gold .diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
  flex-shrink: 0;
}

/* ============= LAYOUT ============= */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

/* ============= HERO ============= */
.hero {
  min-height: 100vh;
  padding: 96px 28px 64px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* Sol dorado superior izquierdo */
  content: "";
  position: absolute;
  top: 9%;
  left: 7%;
  width: clamp(80px, 10vw, 140px);
  height: clamp(80px, 10vw, 140px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold) 70%);
  box-shadow: 0 0 60px rgba(201, 162, 75, 0.25);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.hero-text-only .hero-inner h1 { max-width: 18ch; }
.hero-text-only .hero-inner .hero-sub { max-width: 56ch; }

.hero-eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-weight: 500;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--mist-3);
  max-width: 46ch;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--carbon);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--carbon);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--carbon);
  border-color: var(--carbon);
}
.btn-ghost:hover {
  background: var(--carbon);
  color: var(--cream);
}


/* Cita pequeña al pie del hero */
.hero-foot {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mist-3);
  letter-spacing: 0.04em;
  z-index: 2;
}

/* ============= EDITORIAL SECTION ============= */
.container.narrow { max-width: 880px; }

.section-editorial {
  padding: 120px 28px 96px;
  background: var(--cream);
}

.eyebrow-gold {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-editorial h2 {
  max-width: 22ch;
  margin-bottom: 24px;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--mist-3);
  max-width: 62ch;
}

.lede strong { color: var(--carbon); font-weight: 600; }

.block-manifesto,
.block-servicio,
.block-dinamica,
.block-agendar {
  margin-bottom: 40px;
}

.note-discreto {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mist-3);
  max-width: 56ch;
}

/* ============= QUOTE FRAME (art déco) ============= */
.quote-frame {
  position: relative;
  max-width: 660px;
  margin: 56px auto;
  padding: 56px 44px;
  text-align: center;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 8px;
}

.quote-frame p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.45;
  color: var(--carbon);
  margin: 0;
}

.quote-frame::before,
.quote-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gold);
  transform: rotate(45deg);
}

.quote-frame::before { top: -7px; left: 50%; margin-left: -7px; }
.quote-frame::after { bottom: -7px; left: 50%; margin-left: -7px; }

/* ============= SERVICIO (3 tiempos) ============= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}

.service-card {
  padding: 28px 0 0;
  border-top: 1px solid var(--gold);
  position: relative;
}

.service-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--carbon);
}

.service-card p {
  color: var(--mist-3);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
}

/* ============= SUCURSALES ============= */
.section-sucursales {
  padding: 96px 28px 112px;
  background: var(--cream);
  text-align: center;
  border-top: 1px solid rgba(201, 162, 75, 0.18);
}

.section-sucursales h2 {
  max-width: 22ch;
  margin: 0 auto 24px;
}

.section-sucursales .lede {
  margin: 0 auto 56px;
  text-align: center;
}

.map-frame {
  margin: 0;
  display: flex;
  justify-content: center;
}

.map-frame img {
  max-width: 880px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 36px rgba(26, 26, 26, 0.1));
  border-radius: 2px;
}

/* ============= ATENCIÓN DIRECTA ============= */
.section-atencion {
  padding: 88px 28px 88px;
  background: var(--cream);
  text-align: center;
  border-top: 1px solid rgba(201, 162, 75, 0.18);
}

.section-atencion .eyebrow-gold { margin-bottom: 18px; }

.section-atencion h2 {
  max-width: 22ch;
  margin: 0 auto 22px;
}

.section-atencion .lede {
  margin: 0 auto 36px;
  text-align: center;
}

.atencion-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============= CATÁLOGO ============= */
.section-catalogo {
  padding: 96px 28px 120px;
  background: var(--cream);
  border-top: 1px solid rgba(201, 162, 75, 0.18);
}

.catalogo-header {
  text-align: center;
  margin-bottom: 56px;
}

.catalogo-header h2 {
  margin: 0 auto 14px;
  max-width: 18ch;
}

.fecha-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--mist-3);
  letter-spacing: 0.06em;
  text-transform: capitalize;
  margin: 0 0 22px;
}

.status-banner {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--carbon);
  background: rgba(201, 162, 75, 0.06);
}

.status-banner.closed {
  border-color: var(--mist-2);
  color: var(--mist-3);
  background: transparent;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.therapist-card {
  background: #FBF7EE;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.therapist-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 36px rgba(26, 26, 26, 0.08);
}

.therapist-card .photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: var(--mist-1);
  display: block;
}

.therapist-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.therapist-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  color: var(--carbon);
}

.therapist-card .horario {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--mist-3);
  font-size: 1rem;
  margin: 0;
}

.therapist-card .precios {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 4px;
}

.therapist-card .precio-actual {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--carbon);
  letter-spacing: 0.01em;
}

.therapist-card .precio-tachado {
  font-size: 0.92rem;
  color: var(--mist-3);
  text-decoration: line-through;
}

.promo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--carbon);
  padding: 6px 14px;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.3);
  z-index: 2;
}

.nueva-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--carbon);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.25);
  z-index: 2;
}

.btn-card,
.btn-card-disabled {
  margin-top: 14px;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  text-align: center;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-card {
  background: var(--carbon);
  color: var(--cream);
}
.btn-card:hover {
  background: var(--gold);
  color: var(--carbon);
}

.btn-card-disabled {
  background: transparent;
  color: var(--mist-3);
  border-color: var(--mist-2);
  border-style: dashed;
  cursor: not-allowed;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.empty-msg {
  text-align: center;
  color: var(--mist-3);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  padding: 56px 0;
}

.empty-msg code {
  background: rgba(201, 162, 75, 0.12);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.95rem;
}

/* ============= MODAL ============= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  border-radius: 3px;
  width: 100%;
  max-width: 460px;
  padding: 38px 30px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--mist-3);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--carbon); }

.modal-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.4);
}

.modal-header img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--carbon);
}

.modal-header p {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--carbon);
}

.modal-horario {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic;
  color: var(--mist-3) !important;
  font-size: 0.95rem !important;
  margin-top: 4px !important;
}

#booking-form { display: flex; flex-direction: column; gap: 16px; }

#booking-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mist-3);
  letter-spacing: 0.04em;
}

#booking-form input {
  background: #FBF7EE;
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--carbon);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-style: normal;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#booking-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: #FFF;
}

.hint {
  color: var(--mist-3);
  font-size: 0.82rem;
  font-style: italic;
}

#submit-btn {
  margin-top: 8px;
  padding: 14px 18px;
}

#submit-btn:disabled { opacity: 0.6; cursor: wait; }

/* Confirmación */
#confirm-view, #error-view {
  text-align: center;
  padding: 14px 0 4px;
}

#confirm-view h3, #error-view h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin: 18px 0 14px;
  color: var(--carbon);
}

.confirm-msg {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--mist-3);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 auto 26px;
  max-width: 38ch;
}

.confirm-msg strong {
  color: var(--carbon);
  font-weight: 600;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.check-icon svg { width: 84px; height: 84px; }

.check-icon circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw 0.6s ease-out forwards;
}

.check-icon polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.4s 0.5s ease-out forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.error-icon { font-size: 2.6rem; color: var(--gold); }

#error-view p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--mist-3);
  font-size: 1rem;
  margin: 0 auto 24px;
  max-width: 40ch;
}

/* ============= DISCRECIÓN ============= */
.section-discrecion {
  padding: 120px 28px 110px;
  background: var(--cream);
  text-align: center;
  border-top: 1px solid rgba(201, 162, 75, 0.18);
}

.section-discrecion .eyebrow-gold {
  margin-bottom: 32px;
}

.quote-grande {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  color: var(--carbon);
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

.discrecion-pie {
  margin-top: 32px;
  color: var(--mist-3);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* ============= FOOTER ============= */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(201, 162, 75, 0.3);
  padding: 64px 28px 48px;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--carbon);
  margin: 0;
}

.footer-mark span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.9em;
  margin-left: 4px;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--mist-3);
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--carbon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer-sep {
  color: var(--gold);
  font-size: 1rem;
}

.footer-copy {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--mist-2);
  letter-spacing: 0.05em;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 880px) {
  .hero {
    min-height: auto;
    padding: 84px 22px 64px;
  }
  .hero-foot { position: static; transform: none; margin-top: 36px; }
}

@media (max-width: 880px) {
  .section-editorial { padding: 88px 22px 72px; }
  .service-grid { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .service-card { padding: 24px 0; border-top: 1px solid var(--gold); }
  .quote-frame { padding: 44px 28px; outline-offset: 6px; }
  .section-sucursales { padding: 72px 22px 88px; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 18px 56px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .atencion-ctas { flex-direction: column; align-items: stretch; }
  .section-atencion { padding: 64px 18px 64px; }
  .btn-primary, .btn-ghost { width: 100%; }
  .section-editorial { padding: 64px 18px 56px; }
  .quote-frame { padding: 36px 22px; outline-offset: 5px; }
  .section-sucursales { padding: 56px 18px 72px; }
  .section-discrecion { padding: 80px 18px 76px; }
  .site-footer { padding: 48px 22px 36px; }
  .footer-mark { font-size: 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .section-catalogo { padding: 64px 16px 88px; }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .therapist-card { max-width: 420px; margin: 0 auto; width: 100%; }
  .therapist-card .body { padding: 20px 22px 22px; gap: 6px; }
  .therapist-card h3 { font-size: 1.5rem; }
  .therapist-card .horario { font-size: 1rem; }
  .therapist-card .precio-actual { font-size: 1.3rem; }
  .promo-badge { top: 10px; left: 10px; padding: 4px 10px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .nueva-badge { top: 10px; right: 10px; padding: 4px 10px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .btn-card, .btn-card-disabled { padding: 12px 14px; font-size: 0.78rem; letter-spacing: 0.1em; }
  .modal-content { padding: 32px 22px 22px; outline-offset: 4px; }
  .modal-header img { width: 64px; height: 64px; }
  .modal-header h3 { font-size: 1.3rem; }
}
