/* Habita Taller Demo · base compartida por la portada y el taller de muestra */
@font-face { font-family: Archivo; src: url(/fonts/Archivo.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(/fonts/InterTight.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --tinta: #12150F; --tinta-2: #23271F; --papel: #F5F4EE; --hoja: #FFFFFF; --linea: #DAD8CD; --gris: #5A5F55;
  --lima: #AEFA48; --verde: #2C6100; --verde-suave: #E4F4CB; --ambar: #855600; --ambar-suave: #FBEFD0;
  --rojo: #B3261E; --rojo-suave: #FBE3DF; --azul: #1D56A8; --azul-suave: #E1EBFA;
  --titulo: Archivo, 'Arial Narrow', system-ui, sans-serif; --texto: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 10px; --sombra: 0 1px 0 rgba(18, 21, 15, .06), 0 8px 24px -12px rgba(18, 21, 15, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 16px/1.5 var(--texto); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 4px; }
.vis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salto { position: absolute; left: 8px; top: -60px; background: var(--lima); color: var(--tinta); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.salto:focus { top: 8px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 1.5px solid var(--tinta); border-radius: var(--r); background: var(--hoja); color: var(--tinta); font-weight: 650; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; }
.boton:hover { background: var(--papel); }
.boton.primario { background: var(--lima); border-color: var(--tinta); box-shadow: 0 2px 0 var(--tinta); }
.boton.primario:hover { background: #BEFF63; }
.boton.primario:active { transform: translateY(2px); box-shadow: none; }
.boton.chico { min-height: 44px; padding: 6px 12px; font-size: .9rem; }
.boton.ancho { width: 100%; }
.boton:disabled { opacity: .5; cursor: not-allowed; }
.enlace { background: none; border: 0; padding: 0; color: var(--verde); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-align: left; }
.icono { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: inherit; font-size: 1rem; flex: none; }
.icono:hover { background: rgba(18, 21, 15, .08); }

.campo { display: grid; gap: 6px; margin: 0 0 14px; }
.rotulo { font-weight: 600; font-size: .92rem; }
.ayuda, .nota { color: var(--gris); font-size: .9rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #8C9086; border-radius: 8px; background: var(--hoja); }
textarea { resize: vertical; min-height: 72px; }
input::placeholder, textarea::placeholder { color: #71766B; }
.mayus { text-transform: uppercase; }
fieldset { border: 1px solid var(--linea); border-radius: var(--r); padding: 16px; margin: 0 0 16px; background: var(--hoja); min-width: 0; }
fieldset.sin-borde { border: 0; padding: 0; background: none; }
legend { font-family: var(--titulo); font-weight: 800; font-size: 1.1rem; padding: 0 6px; }
legend.rotulo { font-family: var(--texto); font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 8px; }
.opciones { display: grid; gap: 8px; }
.opciones.fila { display: flex; flex-wrap: wrap; }
.opciones label { position: relative; display: flex; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opciones label > span { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 8px 14px; border: 1.5px solid #8C9086; border-radius: 8px; background: var(--hoja); }
.opciones small { color: var(--gris); }
.opciones input:checked + span { background: var(--tinta); color: #fff; border-color: var(--tinta); box-shadow: inset 4px 0 0 var(--lima); }
.opciones input:checked + span small { color: #D5D9CE; }
.opciones input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.casilla { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; cursor: pointer; }
.casilla input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--verde); }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

#aviso { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 10px; background: var(--tinta); color: #fff; font-weight: 550; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; box-shadow: var(--sombra); }
#aviso.ver { opacity: 1; transform: translate(-50%, 0); }
#aviso.ok { box-shadow: inset 5px 0 0 var(--lima), var(--sombra); }
#aviso.error { background: #5B120D; box-shadow: inset 5px 0 0 #FF9B8F, var(--sombra); }

.fondo { position: fixed; inset: 0; background: rgba(18, 21, 15, .55); display: grid; place-items: end center; z-index: 60; }
.hoja { background: var(--papel); width: min(100%, 520px); max-height: 92dvh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; box-shadow: var(--sombra); }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 18px; border-bottom: 1px solid var(--linea); }
.hoja-cab h2 { font-size: 1.15rem; }
.hoja-cuerpo { padding: 16px 18px 22px; overflow: auto; }
.hoja-cuerpo h3 { font-size: 1rem; margin: 18px 0 8px; }
@media (min-width: 640px) { .fondo { place-items: center; } .hoja { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
