/* ==========================================================================
   Componentes compartidos — navbar, botones, tarjetas, footer, fotos "arco"
   ========================================================================== */

/* ---- Navbar fija --------------------------------------------------------- */
.site-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs);
  width: 100%;
  max-width: var(--content-max);
  padding: 2px 10px 2px 10px;
  border-radius: var(--radius-pill);
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(8px) url(#nav-glass-distortion) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(180%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.site-nav__logo img {
  width: 38.64px;
  height: 33.46px;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2xs);
  flex-wrap: wrap;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  padding: 12px 6px;
  margin: 0;
}

.site-nav__links a {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--color-ink);
  white-space: nowrap;
}

.site-nav__links a:hover {
  color: var(--color-sage);
}

/* ---- Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-button);
  text-align: center;
  white-space: nowrap;
  transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.btn-sage {
  background: var(--color-sage);
  color: #fff;
  padding: 6px 12px;
  font-size: var(--fs-nav);
}

.btn-sage:hover {
  background: #445044;
}

.btn-sage:active {
  transform: scale(0.97);
}

.btn-terracotta {
  background: var(--color-terracotta);
  color: #fff;
  padding: 12px 25px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
}

.btn-terracotta:hover {
  background: #b65f5c;
}

.btn-terracotta:active {
  transform: scale(0.97);
}

.btn-ghost-sage {
  background: var(--color-sage);
  color: #fff;
  padding: 10px 20px;
}

.btn-ghost-sage:hover {
  background: #445044;
}

/* ---- CTA fijo "Reserva tu cita" -------------------------------------------- */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 90;
}

.floating-cta .btn {
  font-size: var(--fs-button);
  padding: 12px 25px;
}

/* ---- Tarjetas de tarifas ---------------------------------------------------- */
.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--color-ink);
}

.price-card__title {
  font-size: var(--fs-subhead);
  font-weight: var(--fw-regular);
  margin: 0;
}

.price-card__body p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.price-card__body p:last-child {
  margin-bottom: 0;
}

.price-card__note {
  color: var(--color-muted);
  font-size: var(--fs-note);
  font-style: italic;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-2xs);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.price-list__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-list__heading {
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}

.price-list__footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: var(--fs-note);
  margin-top: 2px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-row__label {
  white-space: nowrap;
}

.price-row__leader {
  flex: 1 1 auto;
  min-width: 12px;
  border-bottom: 1px dotted var(--color-muted);
  margin-bottom: 4px;
}

.price-row__value {
  white-space: nowrap;
  font-weight: var(--fw-bold);
}

.price-row__was {
  margin-right: 4px;
  font-size: var(--fs-note);
  font-weight: var(--fw-regular);
  color: var(--color-muted);
  text-decoration: line-through;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-terracotta);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ---- Fotos con forma ------------------------------------------------------- */
.photo-arch {
  border-radius: var(--radius-arch) var(--radius-arch) var(--radius-soft) var(--radius-soft);
  overflow: hidden;
  position: relative;
}

.photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-comma {
  position: relative;
}

.photo-comma img {
  width: 100%;
  height: auto;
}

/* ---- Footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--color-muted);
  padding: 32px 16px 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--color-sage);
  font-size: var(--fs-body);
  width: 100%;
  max-width: 370px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .site-footer {
    max-width: 802px;
  }
}

.site-footer a {
  color: var(--color-sage);
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__policy {
  font-weight: var(--fw-bold);
}

.site-footer__copyright {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-footer__copyright strong {
  font-weight: var(--fw-bold);
}

/* ---- Aviso de cookies ------------------------------------------------------------ */
.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 200;
  width: calc(100% - 28px);
  max-width: 620px;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 22px;
  background: var(--color-bg);
  border: 1px solid rgba(34, 34, 34, 0.1);
  box-shadow: 0 26px 60px -28px rgba(34, 34, 34, 0.34);
  transition: opacity var(--duration-base) var(--ease-reveal), transform var(--duration-base) var(--ease-reveal);
}

.consent--in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.consent__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: var(--fs-note);
  line-height: 1.5;
  color: var(--color-ink);
}

.consent__text a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.consent__btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: var(--color-sage);
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-button);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: opacity var(--duration-fast) ease, background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.consent__btn:hover {
  opacity: 0.88;
}

.consent__btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(34, 34, 34, 0.15);
}

.consent__btn--ghost:hover {
  border-color: var(--color-ink);
  opacity: 1;
}

@media (max-width: 560px) {
  .consent {
    gap: 12px;
  }

  .consent__actions {
    width: 100%;
  }

  .consent__btn {
    flex: 1 1 0;
  }
}

/* ---- Contenedor de contenido compartido --------------------------------------- */
.content-col {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ---- Revelado al hacer scroll --------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
