/* Fuentes alojadas en el propio sitio (licencia OFL, ver assets/fonts/LICENSE-*): sin pedidos a Google,
   más rápido y sin salto de fuente. Fraunces (peso 600) para títulos, Plus Jakarta Sans para el texto. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces-latin-opsz-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  --color-bg: #fbf8f3;
  --color-bg-alt: #f2ede4;
  --color-surface: #ffffff;
  --color-primary: #2d5a52;
  --color-primary-dark: #1c3d37;
  --color-primary-light: #e6eee9;
  --color-accent: #a37533;
  --color-accent-text: #86601f;
  --color-accent-on-dark: #dcbb85;
  --color-accent-light: #f3eadb;
  --color-text: #1e2b28;
  --color-text-muted: #5c6864;
  --color-border: #e5ddd0;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1160px;
  --shadow: 0 18px 50px -20px rgba(28, 61, 55, 0.25);
  --shadow-soft: 0 6px 24px -10px rgba(28, 61, 55, 0.18);
  /* Fotos: sombra en capas (contorno finito + sombra cercana + sombra difusa)
     para un relieve sutil, sin marcos ni bloques de color. */
  --radius-photo: 28px;
  --shadow-photo:
    0 0 0 1px rgba(28, 61, 55, 0.06),
    0 2px 4px rgba(28, 61, 55, 0.06),
    0 12px 24px -8px rgba(28, 61, 55, 0.16),
    0 32px 56px -24px rgba(28, 61, 55, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-synthesis: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-primary-dark);
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font-family: inherit; }

/* Sin palabras sueltas en la última línea. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Que los títulos no queden tapados por el header sticky al navegar por anclas */
[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent-text);
  margin: 0 0 1.1em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.section-heading .eyebrow { justify-content: center; }
.section-heading .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.3s ease, color 0.3s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(28, 61, 55, 0.6);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(28, 61, 55, 0.7);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Feedback al presionar (después de los :hover para que gane). */
.btn:active { transform: scale(0.98); }

/* Botón con flecha anidada en un círculo (CTAs principales). La flecha es un SVG como imagen de fondo. */
.btn-arrow { padding: 8px 8px 8px 28px; gap: 16px; }
.btn-arrow::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.5s var(--ease);
}
.btn-arrow:hover::after { transform: translate(2px, -2px) scale(1.06); }
.btn-light.btn-arrow::after {
  background-color: rgba(28, 61, 55, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c3d37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
}

/* Grano muy sutil, fijo y sin interacción, para que el fondo no se vea digital y plano. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 243, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 30px -22px rgba(28, 61, 55, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
  padding: 4px 0;
}

.logo small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a:not(.btn) {
  position: relative;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav a:not(.btn):hover { color: var(--color-primary-dark); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav a:not(.btn)[aria-current="true"] { color: var(--color-primary-dark); }
.nav a:not(.btn)[aria-current="true"]::after { width: 100%; }

.btn-nav { padding: 11px 24px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}

.nav-toggle:hover { border-color: var(--color-primary); }

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 56px;
  z-index: 2;
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(163, 117, 51, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(45, 90, 82, 0.09), transparent 60%),
    var(--color-bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.5rem);
  line-height: 1.04;
  margin-bottom: 0.45em;
}

.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.16rem;
  color: var(--color-text-muted);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-urgent-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.93rem;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-accent);
  padding: 4px 0 4px 14px;
  max-width: 50ch;
}

.hero-urgent-note a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 38px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-trust li { display: flex; align-items: center; gap: 8px; }

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Foto de la doctora trabajando: marco vertical 4:5, sin bloques de color detrás. */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 0 -110px auto;
  align-self: start;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-photo);
  background: var(--color-bg-alt);
}

.about-quote {
  margin: 0 0 1.2em;
  padding-left: 18px;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--color-primary-dark);
}

/* CTA final */
.final-cta {
  padding: 96px 0;
  background:
    radial-gradient(640px 300px at 88% 0%, rgba(220, 187, 133, 0.18), transparent 70%),
    radial-gradient(560px 280px at 6% 100%, rgba(255, 255, 255, 0.07), transparent 70%),
    var(--color-primary);
  color: #fff;
  text-align: center;
}

.final-cta-inner { max-width: 720px; }

.final-cta h2 { color: #fff; margin-bottom: 0.4em; }
.final-cta p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; margin-bottom: 1.8em; }

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-light:hover { background: var(--color-accent-light); transform: translateY(-2px); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary-dark); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-sub { color: var(--color-text-muted); }

/* Sobre mi */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.about-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  width: 100%;
}

.about-media-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-photo);
}

/* Detalle del consultorio: foto chica que se superpone a la esquina del retrato. */
.about-media-detail {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 38%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-photo);
  box-shadow: var(--shadow-photo);
  border: 4px solid var(--color-bg);
}

.about-text h2 { margin-bottom: 0.6em; }

.about-text > p { color: var(--color-text-muted); font-size: 1.04rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0 6px;
}

.about-stat {
  padding: 20px 24px;
  background: var(--color-primary-light);
  border-radius: 18px;
}

.about-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--color-primary-dark);
}

.about-stat span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.about-highlights li {
  padding-left: 34px;
  position: relative;
  color: var(--color-text);
  font-weight: 500;
}

.about-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

.about-highlights li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 4px;
  height: 8px;
  border: solid var(--color-primary);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Servicios: lista editorial; título a la izquierda y los 5 servicios a la vista. */
.services-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.services-intro { position: sticky; top: 120px; }
.services-intro h2 { margin: 0; }

.services-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.service-row:last-child { border-bottom: 1px solid var(--color-border); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg { width: 22px; height: 22px; }

.service-row h3 { font-size: 1.4rem; margin: 0 0 6px; }
.service-row p { color: var(--color-text-muted); margin: 0; max-width: 52ch; }

.booking-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

/* Cómo pedir turno */
.steps-head { max-width: 640px; margin: 0 0 56px; }
.steps-head h2 { margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 500;
  color: var(--color-accent-text);
  margin-bottom: 18px;
}

.step h3 { font-size: 1.25rem; }
.step p { margin: 0; color: var(--color-text-muted); font-size: 1rem; }

.steps-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.steps-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Preguntas frecuentes */
.faq-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.faq-intro { position: sticky; top: 120px; }
.faq-intro > p:not(.eyebrow) { color: var(--color-text-muted); }

.faq-link {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(180, 138, 76, 0.55);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 60px 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--color-accent);
  transition: transform 0.25s ease;
}

.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--color-text-muted);
  font-size: 0.97rem;
}

/* Asistente de turnos — página propia (site/turnos.html), no un modal
   sobre la landing (decisión 2026-09-15: separación real de "trámite" vs
   "sitio"). El card reusa la misma barra de título que tenía el modal. */
.booking-page {
  padding: 56px 0 90px;
  min-height: 70vh;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(180, 138, 76, 0.12), transparent 60%),
    var(--color-bg-alt);
}

.booking-page-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* Header reducido de turnos.html: sólo logo + volver, sin el nav de
   secciones ni el hamburger — a los 375px de un celular, "Dra. Valeria
   Ortega" + el botón no entran en una sola línea con la altura fija de
   80px del header normal, así que acá la dejamos crecer. */
.site-header-simple .header-inner {
  height: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 12px;
}

@media (max-width: 480px) {
  .site-header-simple .logo { font-size: 1.05rem; }
  .site-header-simple .btn-nav { padding: 8px 16px; font-size: 0.85rem; }
}

.booking-modal-header {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 20px 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.booking-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-widget-body {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Encabezado del paso actual */
.booking-step-header {
  margin-bottom: 22px;
}

.booking-step-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}

.booking-step-subtitle {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.booking-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.booking-step-footer-left,
.booking-step-footer-right {
  display: flex;
  gap: 10px;
}

.booking-btn-back {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 4px;
}

.booking-btn-back:hover {
  color: var(--color-primary-dark);
}

.booking-btn-primary {
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.booking-btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.booking-btn-primary:disabled {
  opacity: 0.4;
  cursor: default;
}

.booking-btn-secondary {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 8px;
}

.booking-btn-secondary:hover {
  background: var(--color-primary-light);
}

.booking-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.booking-loading::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: booking-spin 0.8s linear infinite;
}

@keyframes booking-spin { to { transform: rotate(360deg); } }

.booking-privacy {
  max-width: 600px;
  margin: 18px auto 0;
  padding: 0 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.booking-select-wrap {
  margin-bottom: 4px;
}

.booking-select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.booking-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.booking-detail-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-detail-list li {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.5;
  padding: 12px 16px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
}

.booking-detail-list li strong {
  color: var(--color-primary-dark);
}

.booking-detail-list li a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

.booking-urgent-note {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-accent-light);
  border: 1px solid #e9dcc3;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.booking-urgent-note a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

.booking-options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.booking-option {
  text-align: left;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.booking-option:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateX(3px);
}

.booking-option:disabled {
  opacity: 0.45;
  cursor: default;
}

.booking-option.is-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-option.is-checkbox.is-selected {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.booking-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.booking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.booking-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.booking-form input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
}

/* El campo de fecha del celular (iOS/Android) trae un ancho propio y se salía del recuadro:
   se le quita el estilo nativo, se fija su alto y se deja que encoja. */
.booking-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 50px;
  text-align: left;
}
.booking-form input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.booking-form input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; }

.booking-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.booking-form-error {
  color: #b23a2e;
  font-size: 0.85rem;
  margin: -6px 0 0;
}

.booking-calendar {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  background: var(--color-bg);
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.booking-calendar-label {
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  text-transform: capitalize;
}

.booking-calendar-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.booking-calendar-nav:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}

.booking-calendar-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.booking-calendar-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.booking-calendar-weekdays {
  margin-bottom: 8px;
}

.booking-calendar-weekdays div {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.booking-calendar-day {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.booking-calendar-day:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}

/* El primer día disponible se distingue del resto (pasos del calendario, ver renderCalendar en booking.js) */
.booking-calendar-day.is-first:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}

.booking-first-available {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-accent, #b48a4c);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}

.booking-first-available-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.booking-first-available-text strong {
  color: var(--color-primary-dark);
}

.booking-calendar-day.is-disabled {
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted);
  opacity: 0.4;
  cursor: default;
}

.booking-restart {
  display: block;
  margin: 4px auto 0;
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Ubicacion */
.location-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}

.location-text > p { color: var(--color-text-muted); }

.location-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 0;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}

.location-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  font-size: 0.97rem;
}

.location-list strong {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  padding-top: 3px;
}

.location-list a {
  display: inline-block;
  padding: 13px 0;
  margin: -13px 0;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.location-map:focus-within { outline: 3px solid var(--color-primary); outline-offset: 3px; }

.location-map {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

/* Antes era un style="" inline en el <iframe> — se movió acá para poder
   sacar 'unsafe-inline' de style-src en la CSP (ver vercel.json). */
.location-map-iframe {
  border: 0;
  position: absolute;
  top: -70px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 140px);
  filter: saturate(0.75) contrast(1.02);
}

/* Instagram */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.instagram-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 36px;
}

.instagram-head h2 { margin: 0; }

.instagram-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 61, 55, 0.45));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.instagram-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.instagram-tile:hover img { transform: scale(1.05); }
.instagram-tile:hover::after { opacity: 1; }

.instagram-section { padding: 80px 0; }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 12px;
}

.footer-brand-text { max-width: 36ch; font-size: 0.92rem; margin: 0; }

.footer-title {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent-on-dark);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  font-size: 0.92rem;
}

.footer-muted { color: rgba(255, 255, 255, 0.6); }

.footer-links a { display: inline-block; padding: 13px 0; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner p { margin: 0; }

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom));
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
  z-index: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px -8px rgba(37, 211, 102, 0.55);
}

/* Aparición al hacer scroll (sólo si hay JS; sin JS todo se ve igual) */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about-inner, .location-inner, .faq-inner, .services-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .faq-intro, .services-intro { position: static; }
  .hero { padding: 48px 0 72px; }
  .hero-photo { margin: 0 auto; align-self: auto; }
  .about-media { order: -1; }
  .about-media { max-width: 400px; margin: 0 auto; width: 100%; }
  .about-media-detail { right: -10px; bottom: -22px; width: 34%; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-links a { overflow-wrap: anywhere; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .final-cta-actions .btn { width: 100%; }
  .hero-trust { gap: 6px 18px; margin-top: 28px; padding-top: 20px; font-size: 0.82rem; }
  .final-cta { padding: 64px 0; }
  .final-cta-actions { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .service-row { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; }
  .service-icon { width: 44px; height: 44px; }
  .service-icon svg { width: 20px; height: 20px; }
  .service-row h3 { font-size: 1.2rem; }
  .faq-item summary { font-size: 1rem; padding: 18px 52px 18px 20px; }
  .faq-item p { padding: 0 20px 20px; }
  .whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .whatsapp-float svg { width: 30px; height: 30px; }
  .location-list li { grid-template-columns: 1fr; gap: 2px; }
  /* Calendario del turnero: celdas más separadas y con texto legible sin
     necesitar zoom, tocables cómodo con el dedo. */
  .booking-calendar { padding: 6px; }
  .booking-calendar-weekdays, .booking-calendar-grid { gap: 4px; }
  .booking-calendar-day { font-size: 0.95rem; }
}

/* Pantallas de escritorio: el card del turnero se ve chico a un ancho fijo
   en monitores grandes — lo agrandamos junto con el calendario. */
@media (min-width: 901px) {
  .booking-page-card { max-width: 700px; }
  .booking-widget-body { padding: 38px 42px; }
  .booking-step-title { font-size: 1.55rem; }
  .booking-calendar { padding: 22px; }
  .booking-calendar-day { font-size: 1.05rem; }
  .booking-calendar-label { font-size: 1.15rem; }
}

@media (max-width: 720px) {
  .header-inner { height: 72px; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 30px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 20px 40px -24px rgba(28, 61, 55, 0.4);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a:not(.btn) {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    padding: 6px 0;
    color: var(--color-primary-dark);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav-toggle { display: flex; }
  .btn-nav { align-self: flex-start; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .booking-page { padding: 0; }
  .booking-page-card { max-width: none; border-radius: 0; border: 0; min-height: 60vh; }
  .booking-widget-body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* Página 404 */
.notfound { padding: 96px 0 120px; background: var(--color-bg); }
.notfound-inner > * { max-width: 640px; }
.notfound-inner h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.4em; }
.notfound-inner p:not(.eyebrow) { color: var(--color-text-muted); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Accesibilidad: título de la página sólo para lectores de pantalla y buscadores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* El título del paso recibe el foco al cambiar de pantalla; no necesita anillo (no es un control) */
.booking-step-title:focus { outline: none; }

/* Botones del encabezado de /turnos: mínimo 44px de alto */
.site-header-simple .btn-nav { min-height: 44px; display: inline-flex; align-items: center; }
.site-header-simple .logo { min-height: 44px; }

/* Asistente en celular: que el formulario "Tus datos" (y los pasos parecidos) entre en una sola pantalla
   sin scrollear. Se compacta el encabezado, los espacios y el alto de los campos (siguen siendo >=44px y
   con 16px de letra para que el iPhone no haga zoom al tocarlos). */
@media (max-width: 560px) {
  .site-header-simple .header-inner { height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .booking-modal-header { padding: 12px 20px; }
  .booking-widget-body { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
  .booking-step-header { margin-bottom: 12px; }
  .booking-form { gap: 8px; margin-bottom: 8px; }
  .booking-form label { margin-bottom: 4px; font-size: 0.72rem; }
  .booking-form input { padding: 9px 14px; min-height: 44px; }
  .booking-form input[type="date"] { min-height: 46px; }
  .booking-form-error { margin: 0; }
  .booking-step-footer { margin-top: 12px; padding-top: 12px; }
  .booking-privacy { margin-top: 10px; }
}
