.ud-header {
  box-sizing: content-box;
  animation: entrada-cabecera 0.5s ease-out;
}

@keyframes entrada-cabecera {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

#formContacto { scroll-margin-top: 6rem; }
.cta-ornaments { pointer-events: none; }
.service-option label { cursor: pointer; }

@media (min-width: 960px) and (max-width: 1139px) {
  .ud-header .px-11 { padding-inline: 1rem; }
  #navbarCollapse { padding-inline: 0.25rem; }
  #navbarCollapse ul { gap: 1rem; }
  #navbarCollapse .ud-menu-scroll { margin-inline: 0; font-size: 0.875rem; white-space: nowrap; }
}

/* Keep the five selectors in reach on intermediate screen widths. */
@media (min-width: 768px) and (max-width: 1399px) {
  .service-controls { justify-content: space-between; gap: 0.5rem; }
}

@media (max-width: 767px) {
  .service-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .service-option { flex-direction: row; }
  .service-controls [data-service-step], .service-photo { display: none; }
}

.field-error {
  margin-top: 0.35rem;
  color: #a12626;
  font-size: 0.875rem;
}

#consulta [aria-invalid="true"] { border-color: #a12626; }
#consulta button:disabled { cursor: wait; opacity: 0.8; }

#estado-consulta {
  width: min(29rem, calc(100% - 2rem));
  margin: auto;
  padding: 2rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  color: #111928;
  box-shadow: 0 12px 45px #11192833;
  text-align: center;
}

#estado-consulta::backdrop { background: rgb(17 25 40 / 55%); }
#estado-titulo { margin-bottom: 0.65rem; font-size: 1.5rem; font-weight: 700; }
#estado-texto { color: #4b5563; }
.dialog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.35rem; }
.dialog-actions a, .dialog-actions button {
  padding: 0.55rem 1rem;
  border: 1px solid #304157;
  border-radius: 0.35rem;
  color: #304157;
  font-weight: 600;
}
.dialog-actions a, .dialog-actions a[hidden] + button { background: #304157; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html.scroll-smooth { scroll-behavior: auto; }
  .ud-header, .hero-background, .hero-content, .hero-content h1, .hero-content p { animation: none; }
}
