/* Cambios propios y animaciones de la copia editable. */
html {
  scroll-behavior: smooth;
}
section[id] {
  scroll-margin-top: 80px;
}
[hidden] {
  display: none !important;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffe400;
  outline-offset: 5px;
}
#navegacion.scrolled {
  background: rgb(5 5 5 / 80%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}
[data-reveal].reveal-pending {
  opacity: 0;
  transform: var(--entrada, translateY(20px));
}
[data-reveal] {
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
#navegacion {
  animation: entrar-nav 0.8s ease-out;
}
@keyframes entrar-nav {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}
#progreso {
  transition: width 0.5s ease;
}
[data-choice][aria-pressed='true'] {
  border-color: white;
  background: rgb(255 255 255 / 10%);
}
[data-step]:not([hidden]) {
  animation: entrar-paso 0.3s ease;
}
@keyframes entrar-paso {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
dialog {
  color: white;
  border: 0;
  padding: 0;
}
dialog::backdrop {
  background: rgb(0 0 0 / 80%);
  backdrop-filter: blur(4px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
#menu-movil {
  background: #050505;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
}
#menu-movil[open] {
  display: grid;
  place-items: center;
}
.cerrar-dialogo {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 20px;
  color: rgb(255 255 255 / 60%);
  font-size: 36px;
  line-height: 1;
  background: transparent;
}
#menu-movil .cerrar-dialogo {
  top: 24px;
  right: 24px;
  font-size: 48px;
}
.cerrar-dialogo:hover {
  color: white;
}
#aviso-cotizar {
  background: transparent;
  width: min(512px, calc(100% - 32px));
  max-width: none;
  margin: auto;
  overflow: visible;
}
@media (max-width: 767px) {
  #cotizador [data-step='1'] button {
    padding: 0.875rem;
    overflow-wrap: normal;
  }
  #cotizador [data-step='1'] button > span:last-child {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
  #inicio h1 {
    font-size: clamp(2.65rem, 8.5vw, 3.75rem);
  }
  #servicios .group p {
    opacity: 1;
    transform: none;
  }
}
/* Mantiene el menú compacto antes de que las etiquetas se encimen. */
@media (min-width: 768px) and (max-width: 1100px) {
  #navegacion .md\:flex {
    display: none;
  }
  #abrir-menu {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal].reveal-pending {
    opacity: 1;
    transform: none;
  }
}
