/* Base común de las demos de Tereré Estudio (Pared, Remolino, Ceibo, Bigote, Ámbar).
   Cada demo define su identidad en su propio CSS; acá van piezas compartidas. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 8px 14px; background: #111; color: #fff; }
.saltar:focus { left: 8px; }
.oculto-visual { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.te-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 120; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 16px; text-align: center; background: var(--te-toast-bg, #111); color: var(--te-toast-fg, #fff); font-size: .92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.te-wa { --sube: 0px; position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #148a47; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transform: translateY(calc(var(--sube) * -1)); transition: opacity .2s ease, visibility .2s ease; }
.te-wa svg { width: 30px; height: 30px; }
.te-wa--oculto { opacity: 0; visibility: hidden; }
.te-demo { display: block; padding: 6px 12px; font-size: .76rem; letter-spacing: .02em; text-align: center; text-decoration: none; background: var(--te-demo-bg, #111); color: var(--te-demo-fg, #fff); }
.te-demo:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
/* Transiciones de vista: suaves y cortas */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- Firma Tereré Estudio (no modificar) ---------- */
.firma-te { background: #161415; padding: 14px 16px; text-align: center; }
.firma-te a { display: inline-flex; align-items: center; gap: 10px; color: #F3E9DA; text-decoration: none; font: 500 14px/1 system-ui, sans-serif; }
.firma-te img { height: 28px; width: auto; opacity: 0.9; }
.firma-te a:hover img, .firma-te a:focus-visible img { opacity: 1; }
.firma-te a:focus-visible { outline: 2px solid #9FBD2B; outline-offset: 4px; }
@media (max-width: 600px) { .firma-te img { height: 24px; } }
