/* Sistema visual: blanco y negro metálico (cromo y acero) con un solo acento vivo. */
:root {
  --tinta: #0b0b0d; --carbon: #17181b; --papel: #fcfcfb; --fondo: #eef0f2; --linea: #d5d9de; --suave: #5d6168;
  --acento: #d6ff3f; --acento-tinta: #0b0b0d; --bien: #1f7a46; --mal: #c0231c; --aviso: #7a5600;
  --cromo: linear-gradient(180deg, #ffffff 0%, #eceef1 20%, #b4bac2 47%, #777d86 53%, #cfd3d8 72%, #f8f9fa 100%);
  --acero: linear-gradient(135deg, #ffffff 0%, #e3e6ea 38%, #f7f8f9 58%, #d2d6db 100%);
  --grafito: linear-gradient(180deg, #303236 0%, #151619 55%, #0b0b0d 100%);
  --salida: cubic-bezier(0.16, 1, 0.3, 1);
  --radio: 16px; --sombra: 0 10px 34px rgba(11, 11, 13, .14);
  --titular: "Archivo", "Arial Narrow", Arial, sans-serif;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta); background: var(--fondo); -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--fondo); line-height: 1.45; }
::selection { background: var(--acento); color: var(--acento-tinta); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--titular); font-stretch: 118%; font-weight: 800; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.boton { position: relative; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 48px; font-weight: 700; letter-spacing: .01em;
  color: #fff; background: var(--grafito); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 2px 6px rgba(11, 11, 13, .28);
  transition: transform .35s var(--salida), box-shadow .35s var(--salida), filter .35s var(--salida); }
.boton:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.18); }
.boton:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.boton:disabled { opacity: .45; cursor: default; }
.boton.vivo { background: var(--acento); color: var(--acento-tinta); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 4px 16px rgba(160, 200, 0, .35); }
.boton.vivo:hover:not(:disabled) { filter: brightness(1.05); }
.boton.claro { background: var(--acero); color: var(--tinta); box-shadow: inset 0 0 0 1px #c3c8cf, inset 0 1px 0 #fff, 0 1px 3px rgba(11, 11, 13, .1); }
.boton.chico { padding: 7px 15px; min-height: 38px; font-size: .9rem; }
.boton.ancho { width: 100%; }
.boton.peligro { background: #fff; color: var(--mal); box-shadow: inset 0 0 0 1.5px currentColor; }
a.boton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.campo { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--suave); min-width: 0; }
.campo input, .campo select, .campo textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1.5px solid var(--linea); border-radius: 12px; background: #fff; color: var(--tinta);
  font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; transition: border-color .3s var(--salida), box-shadow .3s var(--salida); }
.campo textarea { resize: vertical; min-height: 74px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--tinta); box-shadow: 0 0 0 4px var(--acento); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; box-shadow: 0 0 0 6px var(--acento); border-radius: 6px; }
.boton:focus-visible { border-radius: 999px; }

.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; box-shadow: inset 0 1px 0 #fff; }
.suave { color: var(--suave); }
.oculto { display: none !important; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }

#aviso { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: var(--grafito); color: #fff; padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--salida), transform .4s var(--salida); z-index: 90; max-width: calc(100vw - 32px); text-align: center; font-size: .95rem; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--sombra); }
#aviso.visible { opacity: 1; transform: translate(-50%, 0); }
#aviso.malo { background: var(--mal); }
dialog { border: 0; padding: 0; background: var(--papel); color: var(--tinta); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); width: min(760px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); }
dialog::backdrop { background: rgba(11, 11, 13, .62); backdrop-filter: blur(3px); }
dialog[open] { animation: sube .5s var(--salida); }
@keyframes sube { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.cerrar { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--acero); font-size: 1.35rem; line-height: 1; z-index: 2;
  box-shadow: inset 0 0 0 1px #c3c8cf, 0 2px 8px rgba(0, 0, 0, .2); transition: transform .4s var(--salida); }
.cerrar:hover { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
