/* =============================================================
   Great Dental — hoja de estilos
   Clínica dental convencional, ejecutada en serio.
   El azul del logotipo manda; el rosa es exclusivamente acción.
   ============================================================= */

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

:root {
  /* Azules: el estructural sale del trazo del logotipo. */
  --blue-900: #0C1E3C;
  --blue-700: #1B3A6B;
  --blue-500: #2E5FA8;
  --blue-100: #E7EEF8;

  --paper: #FFFFFF;
  --bone: #F4F6F9;
  --ink: #10264A;
  --ink-mute: #5A6B85;
  --line: #DCE4EF;

  /* Rosa: SOLO acción. Botón primario, precio, estado activo.
     Nunca como fondo decorativo ni como color de texto corrido. */
  --pink: #B94E6E;
  --pink-press: #9F3F5C;
  --pink-tint: #FBEFF3;

  --cyan: #3FA9D4;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Salida exponencial: arranca rápido, se posa. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-sm: 0 1px 2px rgba(16, 38, 74, 0.06), 0 2px 8px -4px rgba(16, 38, 74, 0.10);
  --shadow-md: 0 4px 12px -4px rgba(16, 38, 74, 0.10), 0 12px 32px -12px rgba(16, 38, 74, 0.16);
  --shadow-lg: 0 8px 24px -8px rgba(16, 38, 74, 0.14), 0 32px 64px -24px rgba(16, 38, 74, 0.22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 1180px;
}

/* =============================================================
   Base
   ============================================================= */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; }

p { text-wrap: pretty; }
a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
strong { font-weight: 600; }

/* Superficies que pinta el navegador y que también son diseño. */
::selection { background: var(--blue-100); color: var(--blue-900); }
:root { accent-color: var(--pink); caret-color: var(--pink); }
/* Asistente de chat (lib/chat.js). Mismo criterio que el resto de la web: el
   azul estructural manda y el rosa se reserva para lo que se pulsa. */
:root {
  --chat-accent: var(--blue-700);
  --chat-action: var(--pink);
  --chat-bubble: var(--blue-100);
  --chat-paper: var(--paper);
  --chat-ink: var(--ink);
  --chat-line: var(--line);

  /* El botón de WhatsApp ya ocupa la esquina (52px en bottom:1rem), así que el
     del chat se coloca justo encima. En móvil WhatsApp sube para dejar paso a
     la barra de reservar, y el chat sube con él. */
  --chat-bottom: 5.25rem;
}
@media (max-width: 899px) {
  :root { --chat-bottom: calc(9.5rem + env(safe-area-inset-bottom)); }
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}
html { scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 99px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: #C3CEDE; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.bone { background: var(--bone); }
.measure { max-width: 68ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-700); color: #fff; padding: .85rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
/* Es un <a> sobre fondo azul-700: sin esto, la regla global `a:hover` le
   pinta el texto del mismo color que su fondo. */
.skip-link:hover, .skip-link:focus { color: #fff; }

/* Cifras siempre tabulares: precios y horas no bailan. */
.num, .price, .schedule-list li span:last-child, .bk-slot, .slot-time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* =============================================================
   Navegación
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; flex: none; }
.nav-brand img { height: 34px; width: auto; }
@media (min-width: 900px) { .nav-brand img { height: 40px; } }

.nav-links { display: none; gap: 1.75rem; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none;
  padding-block: .35rem; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--pink); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }

.nav-links.mobile-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); padding: .5rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.nav-links.mobile-open a { padding-block: .85rem; border-bottom: 1px solid var(--line); }
.nav-links.mobile-open a::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: grid; place-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s linear;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* =============================================================
   Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: .85rem 1.6rem;
  font-family: var(--font); font-size: .9375rem; font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .15s var(--ease-out), background-color .2s ease,
              border-color .2s ease, color .2s ease, box-shadow .25s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--pink-press); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-700); background: var(--blue-100); color: var(--blue-700); }
.btn-on-dark { background: #fff; color: var(--blue-700); }
.btn-on-dark:hover { background: var(--blue-100); color: var(--blue-900); }
.btn-small { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* =============================================================
   Héroe
   ============================================================= */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem); }
.hero-grid {
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero-title {
  font-size: clamp(2.35rem, 5.6vw, 3.9rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
}
.hero-sub { color: var(--ink-mute); font-size: 1.125rem; max-width: 46ch; margin-bottom: 1.75rem; }

.hero-promise { display: grid; gap: .6rem; margin-bottom: 2rem; }
.hero-promise li { display: flex; align-items: flex-start; gap: .65rem; font-size: .9688rem; font-weight: 500; }
.hero-promise svg { flex: none; width: 20px; height: 20px; color: var(--pink); margin-top: 2px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-media { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .hero-photo { aspect-ratio: 4 / 4.2; } }

/* La tarjeta del próximo hueco: el momento con autoría de la página. */
.slot-card {
  position: absolute; left: clamp(-0.5rem, -1vw, -1.25rem); bottom: clamp(1rem, 3vw, 1.75rem);
  width: min(300px, 86%);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-md); padding: 1.1rem 1.25rem;
  box-shadow: 0 3px 8px -3px rgba(16, 38, 74, 0.16), 0 10px 20px -10px rgba(16, 38, 74, 0.22);
}
.slot-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .4rem;
}
.slot-time {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--blue-700);
  line-height: 1.15; margin-bottom: .85rem;
  min-height: 1.7rem;
}
.slot-time .slot-day { display: block; font-size: .875rem; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.slot-card .btn { width: 100%; }

/* Esqueleto mientras la API responde. */
.slot-skeleton {
  display: block; height: 1.15rem; width: 70%; border-radius: 5px;
  background: linear-gradient(90deg, var(--line) 0%, #EDF1F7 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.slot-skeleton + .slot-skeleton { width: 45%; height: .8rem; margin-top: .45rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =============================================================
   Franja de garantías
   ============================================================= */
.assurances { border-block: 1px solid var(--line); background: var(--bone); }
.assurances-grid {
  display: grid; gap: 1.5rem 2rem;
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 860px) { .assurances-grid { grid-template-columns: repeat(4, 1fr); } }
.assurance { display: flex; gap: .75rem; align-items: flex-start; }
.assurance svg { flex: none; width: 22px; height: 22px; color: var(--blue-500); margin-top: 1px; }
.assurance b { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em; }
.assurance span { font-size: .875rem; color: var(--ink-mute); line-height: 1.5; }

/* =============================================================
   Tratamientos — lista de precios, no tarjetas
   ============================================================= */
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--ink-mute); max-width: 60ch; }

.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: grid; gap: .5rem 1.5rem; align-items: center;
  grid-template-columns: 64px 1fr auto;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease;
}
@media (min-width: 760px) { .price-row { grid-template-columns: 84px 1fr 9rem auto; padding-block: 1.6rem; } }
@media (hover: hover) and (pointer: fine) {
  .price-row:hover { background: var(--bone); }
}

.price-thumb {
  width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover;
  background: var(--blue-100);
  grid-row: span 2;
}
@media (min-width: 760px) { .price-thumb { width: 84px; height: 62px; grid-row: auto; } }
.price-thumb.media-placeholder { background: var(--blue-100); }

.price-info h3 { margin-bottom: .2rem; }
.price-info p { color: var(--ink-mute); font-size: .9375rem; line-height: 1.55; }

.price-meta {
  display: flex; align-items: baseline; gap: .6rem;
  grid-column: 2 / -1;
}
@media (min-width: 760px) { .price-meta { grid-column: auto; display: block; } }
.price {
  font-size: 1.375rem; font-weight: 700; color: var(--pink); letter-spacing: -0.02em;
  white-space: nowrap;
}
.price.is-quote { font-size: 1rem; font-weight: 600; }
.price-dur { font-size: .8125rem; color: var(--ink-mute); font-weight: 500; }
@media (min-width: 760px) { .price-dur { display: block; margin-top: .1rem; } }
.price-row .btn { grid-column: 2 / -1; justify-self: start; }
@media (min-width: 760px) { .price-row .btn { grid-column: auto; justify-self: end; } }

/* =============================================================
   Proceso — la secuencia sí informa, los números se los ganan
   ============================================================= */
.steps { display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--blue-700); color: #fff;
  font-size: .9375rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--ink-mute); font-size: .9375rem; }

/* =============================================================
   Equipo
   ============================================================= */
.team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }
.team-card { text-align: left; }
.team-card .avatar {
  width: 100%; aspect-ratio: 1 / 1.1; border-radius: var(--r-md);
  object-fit: cover; margin-bottom: .9rem;
  background: linear-gradient(150deg, var(--blue-100), var(--pink-tint));
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .avatar { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.team-card h3 { font-size: 1rem; margin-bottom: .1rem; }
.team-card .role { color: var(--pink); font-size: .8125rem; font-weight: 600; margin-bottom: .4rem; }
.team-card p { color: var(--ink-mute); font-size: .875rem; line-height: 1.5; }

/* =============================================================
   Opiniones
   ============================================================= */
.testimonials { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .quote { font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.testimonial-card .author { color: var(--ink-mute); font-size: .8125rem; font-weight: 600; }
.stars { display: flex; gap: 2px; margin-bottom: .85rem; color: var(--pink); }
.stars svg { width: 15px; height: 15px; }

/* =============================================================
   Banda de cierre en azul
   ============================================================= */
.closer { background: var(--blue-700); color: #fff; }
.closer h2 { color: #fff; margin-bottom: .85rem; }
.closer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .closer-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
/* Sobre color, el texto secundario se tiñe del propio tono, nunca gris. */
.closer p, .closer li { color: #C3D2E8; }
/* Enlaces sobre azul. Se escribe explícito, incluido el :hover, porque la
   regla global `a:hover` pinta azul-700 y sobre esta banda eso es el mismo
   color del fondo: texto invisible. */
.closer a { color: #fff; }
.closer a:hover { color: #fff; }
.closer .btn-on-dark { color: var(--blue-700); }
.closer .btn-on-dark:hover { color: var(--blue-900); }
.closer .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.closer .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* Base clara (página de contacto). La variante oscura se escribe dentro de
   .closer: al revés, los días salían en blanco sobre blanco. */
.schedule-list { margin-bottom: 1.5rem; }
.schedule-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .65rem; border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.schedule-list li span:first-child { color: var(--ink); font-weight: 500; }
.schedule-list li span:last-child { color: var(--ink-mute); }

.closer .schedule-list li { border-bottom-color: rgba(255,255,255,0.18); }
.closer .schedule-list li span:first-child { color: #fff; }
.closer .schedule-list li span:last-child { color: #C3D2E8; }
.contact-line { font-size: .9375rem; margin-bottom: .35rem; }
.closer-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }

/* =============================================================
   Cabecera de páginas interiores
   ============================================================= */
.page-header { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-title { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.03em; margin-bottom: .9rem; }
.page-sub { color: var(--ink-mute); font-size: 1.0625rem; max-width: 58ch; }

/* =============================================================
   Formularios
   ============================================================= */
.contact-form {
  display: grid; gap: 1.1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.contact-form label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font-family: var(--font); font-size: .9375rem; padding: .8rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #93A1B8; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-tint);
}
.form-note { font-size: .8125rem; color: var(--ink-mute); min-height: 1.2em; }
.form-note[data-state="error"] { color: #C0392B; font-weight: 500; }
.form-note[data-state="ok"] { color: #1E7B4D; font-weight: 500; }

.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .cta-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 3.5rem; } }

/* =============================================================
   Widget de reserva
   ============================================================= */
#booking-widget { max-width: 760px; }

/* Selector de servicio y fecha */
.booking-grid { display: grid; gap: 1.1rem; margin-bottom: 1.75rem; }
@media (min-width: 560px) { .booking-grid { grid-template-columns: 1fr 13rem; } }

.field { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.field select, .field input {
  font-family: var(--font); font-size: .9375rem; width: 100%;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select:focus, .field input:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-tint);
}

/* Rejilla de horas */
.bk-slots { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.bk-slot {
  font-family: var(--font); font-size: .875rem; font-weight: 600;
  padding: .6rem .9rem; min-width: 4.5rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .2s ease,
              border-color .2s ease, color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .bk-slot:hover { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-700); }
}
.bk-slot:active { transform: scale(0.97); }
/* La hora elegida lleva el color de acento: es la acción tomada. */
.bk-slot.selected {
  background: var(--pink); border-color: var(--pink); color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Avisos y estados */
.bk-hint { color: var(--ink-mute); font-size: .9375rem; margin: 0; }
.bk-selected {
  font-size: .9375rem; color: var(--ink); margin-bottom: 1.1rem;
  padding: .75rem 1rem; background: var(--pink-tint);
  border-radius: var(--r-sm);
}
.bk-selected strong { color: var(--pink); font-variant-numeric: tabular-nums; }
.bk-msg { font-size: .875rem; color: var(--ink-mute); margin-top: 1rem; min-height: 1.2em; }
.bk-success {
  font-size: 1.0625rem; font-weight: 600; color: var(--ink);
  padding: 1.5rem; background: var(--blue-100);
  border-radius: var(--r-md); text-wrap: pretty;
}

/* El formulario que aparece al elegir hora, igual que el de contacto. */
.booking-contact-form {
  display: grid; gap: 1.1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.booking-contact-form label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.booking-contact-form input, .booking-contact-form textarea {
  font-family: var(--font); font-size: .9375rem; padding: .8rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.booking-contact-form input:focus, .booking-contact-form textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-tint);
}

/* =============================================================
   Créditos
   ============================================================= */
.credits-list { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .credits-list { grid-template-columns: repeat(2, 1fr); } }
.credits-list li { display: flex; gap: .9rem; align-items: flex-start; font-size: .875rem; }
.credit-thumb { width: 72px; height: 72px; object-fit: cover; flex: none; border-radius: var(--r-sm); }
.credit-meta { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.credit-meta strong { font-weight: 600; }
.credit-meta span { color: var(--ink-mute); }

/* =============================================================
   Contenido legal
   ============================================================= */
.legal-content { max-width: 70ch; }
.legal-content h2 { font-size: 1.25rem; margin: 2.25rem 0 .75rem; }
.legal-content p, .legal-content li { color: var(--ink-mute); margin-bottom: .8rem; font-size: .9688rem; }
.legal-content ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-updated { font-size: .8125rem; margin-top: 2.5rem; }
.legal-notice {
  background: var(--blue-100); border-radius: var(--r-md);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.legal-notice p { color: var(--blue-900); margin: 0; font-size: .9375rem; }

/* =============================================================
   Pie
   ============================================================= */
.footer {
  background: var(--blue-900); color: #A9BBD6;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: .875rem;
}
.footer-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer a { color: #D6E1F2; }
.footer a:hover { color: #fff; }
.footer .social-links a:hover { color: #fff; }
.footer-legal { margin-top: .35rem; opacity: .75; }
.footer-credits { margin-top: .35rem; opacity: .75; font-size: .8125rem; }

.social-links { display: flex; gap: .6rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22); color: #D6E1F2;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s var(--ease-out);
}
.social-links a:hover {
  color: #fff; border-color: #fff; background: rgba(255,255,255,0.1);
  transform: translateY(-2px); text-decoration: none;
}

/* =============================================================
   Barra de reserva pegajosa (móvil)
   ============================================================= */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(101%);
  transition: transform .42s var(--ease-soft);
}
.book-bar.is-visible { transform: translateY(0); }
.book-bar .btn { flex: 1; }
.book-bar-price { font-size: .8125rem; color: var(--ink-mute); line-height: 1.3; }
.book-bar-price b { display: block; color: var(--ink); font-size: .9375rem; font-weight: 600; }
@media (min-width: 900px) { .book-bar { display: none; } }

/* =============================================================
   Botón flotante de WhatsApp
   ============================================================= */
.whatsapp-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 65;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-content: center;
  background: #25D366; color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.06); text-decoration: none; color: #fff; }
.whatsapp-float:active { transform: scale(0.95); }
@media (max-width: 899px) { .whatsapp-float { bottom: calc(5.25rem + env(safe-area-inset-bottom)); } }

/* =============================================================
   Movimiento de entrada
   ============================================================= */
/* Todo el bloque cuelga de .js, que pone un script en línea en el <head>.
   Sin JavaScript no hay quien quite estas clases, y la página entera se
   quedaría invisible: el contenido nunca depende del movimiento. */
.js .reveal { opacity: 0; transform: translateY(30px) scale(0.985); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .62s var(--ease-out), transform .62s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
/* El héroe entra con desenfoque, no con desplazamiento: distingue el momento
   de apertura de los reveals repetidos de más abajo. */
.js .reveal-hero { opacity: 0; filter: blur(12px); transform: translateY(18px) scale(0.97); }
.js .reveal-hero.is-in {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity .8s var(--ease-out), filter .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
/* La foto del héroe se descubre, no se desliza. El recorte va sobre el hijo
   y el observado es el contenedor: un elemento recortado a altura cero no
   intersecta nada, y se quedaría esperando su propia revelación. */
.js .reveal-media > img { clip-path: inset(0 0 100% 0); }
.js .reveal-media.is-in > img {
  clip-path: inset(0 0 0 0);
  transition: clip-path .85s var(--ease-soft);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-hero { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .reveal-media > img { clip-path: none !important; }
  .reveal.is-in, .js .reveal-hero.is-in { transition: opacity .2s linear; }
  .slot-skeleton { animation: none; }
  .btn:active, .whatsapp-float:active, .bk-slot:active { transform: none; }
  .team-card:hover .avatar { transform: none; }
  .book-bar { transition: none; }
}

/* Consentimiento RGPD en formularios. La etiqueta tiene exactamente dos celdas:
   la casilla y un <span> con el texto (si el texto fuera suelto, el enlace sería otra celda). */
.contact-form .consent-check, .booking-contact-form .consent-check {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .6rem;
  font-weight: 400; text-transform: none; letter-spacing: normal; line-height: 1.45; cursor: pointer;
}
.consent-check input[type="checkbox"] {
  width: 18px; height: 18px; margin: .1rem 0 0; padding: 0; border-radius: 0; flex: none;
  accent-color: var(--pink); box-shadow: none;
}
.consent-check a, .form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-check.is-error { color: #B03A2E; }
.form-legal { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--ink-mute, inherit); }
.form-legal strong { font-weight: 600; }
