/* Refinamientos de diseño — se cargan después del estilo base de la página.
   Todo respeta la paleta y tipografía originales. */

/* Los anclajes del menú ya no quedan tapados por la barra fija */
section[id] { scroll-margin-top: 84px; }

/* Selección de texto con la marca */
::selection { background: color-mix(in srgb, var(--teal) 25%, transparent); }

/* Foco visible para navegación con teclado */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Barra de progreso de lectura ---------- */
.progreso-lectura {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--clay));
  transition: width 0.1s linear;
}

/* ---------- Aurora del hero: fondo vivo, muy sutil ---------- */
.hero { position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.aurora-1 {
  width: 420px; height: 420px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 35%, transparent), transparent 70%);
  animation: auroraDrift 16s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 360px; height: 360px;
  bottom: -140px; right: 10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%);
  animation: auroraDrift 20s ease-in-out infinite alternate-reverse;
}
@keyframes auroraDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- Revelado con cadencia (el JS asigna el retardo) ---------- */
[data-reveal] { transition-delay: var(--rd, 0s); }

/* ---------- Menú: sección activa resaltada ---------- */
.nav-links a.activa {
  background: var(--mist-dim);
  color: var(--teal);
}

/* ---------- Micro-interacciones ---------- */
.quick-card .icon,
.booking-card .icon {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.quick-card:hover .icon {
  transform: translateY(-2px) rotate(-4deg);
  background: var(--teal);
  color: #F6EFE6;
}
.specialty-badge { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.specialty-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--gold) 60%, transparent); }

/* Respuestas del FAQ entran con suavidad */
.faq-item[open] p { animation: faqEntra 0.35s ease; }
@keyframes faqEntra {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* La foto del hero respira al pasar el mouse */
.hero-visual { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.hero-visual:hover { transform: translateY(-4px); }

/* Con movimiento reducido, nada de esto anima (la regla global ya lo cubre) */

/* ---------- Tarjetas de agendamiento: botones alineados ---------- */
/* Los textos tienen distinto largo; sin esto los botones quedan a
   distinta altura entre una tarjeta y otra. */
.booking-card ul { flex: 1; }
.booking-actions { margin-top: auto; }

/* Lo mismo en las tarjetas de acceso rápido */
.quick-card small { flex: 1; }

/* ---------- Galería con fotos reales ---------- */
.gallery-tile {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: var(--mist-dim);
  box-shadow: 0 12px 30px -20px rgba(22, 48, 44, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 45%,
    color-mix(in srgb, var(--ink) 55%, transparent) 78%,
    color-mix(in srgb, var(--ink) 88%, transparent) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.gallery-tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: #F3ECE1;
  text-shadow: 0 1px 12px rgba(11, 25, 23, 0.5);
  transition: transform 0.35s ease;
}
.gallery-tile figcaption::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  transition: width 0.35s ease;
}
.gallery-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile:hover figcaption::before { width: 46px; }

@media (prefers-reduced-motion: reduce) {
  .gallery-tile, .gallery-tile img, .gallery-tile figcaption::before { transition: none !important; }
  .gallery-tile:hover img { transform: none; }
}
