/* Base común: accesibilidad y diálogo de mensaje.
   La identidad de cada negocio vive en su estilos.css, que carga después.
   Todo va en :where() o con poca especificidad para poder redefinirlo. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:where(img, svg, video) { display: block; max-width: 100%; height: auto; }
:where(picture.foto-responsive) { display: contents; }
:where(:has(> img[data-foto], > picture.foto-responsive > img[data-foto])) { position: relative; }
.foto-skeleton {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--skeleton-foto);
}
@media (prefers-reduced-motion: no-preference) {
  .foto-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, var(--brillo-foto) 50%, transparent 75%);
    transform: translateX(-100%);
    animation: brillo-foto 1.4s linear 3;
  }
}
@keyframes brillo-foto { to { transform: translateX(100%); } }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button, a, summary) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(button) { cursor: pointer; }
:where(h1, h2, h3) { line-height: 1.1; text-wrap: balance; }
:where(p) { text-wrap: pretty; }
:where(h1, h2, h3, p, li, a, button) { overflow-wrap: break-word; }
:where(input, select, textarea) { font-size: max(1rem, 16px); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--foco, currentColor); outline-offset: 3px; }
html:not(.js) .requiere-js { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: fixed; inset: 0 auto auto 0.5rem; z-index: 100; padding: 0.6rem 1rem; background: #fff; color: #111; translate: 0 -200%; }
.saltar:focus { translate: 0 0.5rem; }
.volver-sweb { border-block-end: 1px solid currentColor; background: #fff5e4; color: #633500; text-align: center; }
.volver-sweb a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: .75rem; color: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: .15em; }
.volver-sweb a:focus-visible { outline-offset: -3px; }

html:has(dialog:modal) { overflow: hidden; }
.mensaje { width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.25rem; border: 0; border-radius: var(--radio-dialogo, 0.75rem); background: var(--fondo-dialogo, #fff); color: var(--texto-dialogo, #1c1a17); overscroll-behavior: contain; }
.mensaje::backdrop { background: rgb(10 8 6 / 0.55); }
.mensaje-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mensaje h2 { margin: 0; font-size: 1.35rem; }
.mensaje-cerrar { width: 2.75rem; height: 2.75rem; border: 0; background: none; font-size: 1.1rem; }
.mensaje-nota { margin: 0.5rem 0 0.75rem; font-size: 0.9rem; }
.mensaje textarea { width: 100%; padding: 0.75rem; border: 1px solid; border-radius: 0.4rem; background: #fff; color: #1c1a17; resize: vertical; }
.mensaje-acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.mensaje-estado { min-height: 1.5em; margin: 0.5rem 0 0; font-size: 0.9rem; }
:where(.mensaje .boton) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem; border: 0; border-radius: 0.4rem; background: var(--acento-dialogo, #1c1a17); color: var(--sobre-acento-dialogo, #fff); font-weight: 600; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
