/* App de Colo Studios: los colores y la letra de colostudios.com */
@font-face { font-family: Archivo; src: url(/fuentes/archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --papel: #f4efe6; --papel2: #ebe3d6; --tinta: #1d1a16; --gris: #6d6458; --linea: #ddd3c4; --marca: #cf4520; --marca-osc: #9c3215;
  --ok: #2f7d4f; --blanco: #fffdf9; --r: 22px; --sombra: 0 1px 0 rgba(29,26,22,.06), 0 10px 26px -14px rgba(29,26,22,.35);
  --mono: ui-monospace, 'Cascadia Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 16px/1.45 Archivo, system-ui, sans-serif; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
#app { max-width: 640px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom)); }

/* títulos */
.cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.cabeza h1 { margin: 0; font-size: 34px; line-height: 1; font-weight: 850; letter-spacing: -0.03em; font-stretch: 92%; }
.cabeza small { display: block; font-family: var(--mono); font-size: 12px; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.logo { width: 46px; height: 46px; border-radius: 14px; background: var(--tinta) url(/icono-192.png) center/86% no-repeat; flex: none; }
h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
h2 small { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--gris); }

/* tarjetas */
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: var(--sombra); }
.fila { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linea); }
.fila:first-of-type { border-top: 0; }
.fila__txt { flex: 1; min-width: 0; }
.fila__txt b { display: block; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila__txt span { display: block; color: var(--gris); font-size: 14px; }
.num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.vacio { color: var(--gris); font-size: 15px; padding: 6px 0; }
.barra { height: 10px; background: var(--papel2); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.barra i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.grande { font-size: 40px; font-weight: 850; letter-spacing: -0.03em; line-height: 1; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 750; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn--marca { background: var(--marca); color: #fff; }
.btn--tinta { background: var(--tinta); color: var(--papel); }
.btn--suave { background: var(--papel2); color: var(--tinta); }
.btn--borde { background: transparent; border: 1.5px solid var(--tinta); }
.btn--ancho { width: 100%; }
.btn--chico { min-height: 36px; padding: 7px 13px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--papel2); white-space: nowrap; }
.pill--ok { background: #dcefe2; color: var(--ok); }
.pill--marca { background: #f8dccf; color: var(--marca-osc); }
.toggle { border: 0; border-radius: 99px; padding: 8px 13px; font-weight: 750; font-size: 14px; cursor: pointer; min-width: 96px; }
.toggle--si { background: var(--ok); color: #fff; }
.toggle--no { background: var(--papel2); color: var(--gris); }

/* formularios */
label.campo { display: block; margin-bottom: 12px; }
label.campo > span { display: block; font-size: 13px; font-weight: 700; color: var(--gris); margin-bottom: 5px; }
.entrada { width: 100%; border: 1.5px solid var(--linea); background: var(--papel); border-radius: 14px; padding: 12px 14px; min-height: 48px; }
.entrada:focus { outline: 0; border-color: var(--tinta); background: #fff; }
textarea.entrada { min-height: 90px; resize: vertical; }
.opcion { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--linea); border-radius: 16px; margin-bottom: 8px; cursor: pointer; background: var(--papel); }
.opcion input { width: 20px; height: 20px; accent-color: var(--marca); margin: 2px 0 0; flex: none; }
.opcion b { display: block; }
.opcion span { color: var(--gris); font-size: 14px; }
.opcion .num { margin-left: auto; white-space: nowrap; }
.opcion:has(input:checked) { border-color: var(--tinta); background: #fff; }
.opcion > div { flex: 1; min-width: 0; }
.precio-extra { flex: none; width: 118px !important; margin-left: auto; min-height: 40px; padding: 6px 10px; text-align: right; }

/* total del cotizador */
.total { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.total .grande { color: #fff; }
.total small { color: #cfc6b8; }

/* navegación de abajo */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: rgba(255,253,249,.94);
  backdrop-filter: blur(12px); border-top: 1px solid var(--linea); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--gris); padding: 6px 0; border-radius: 14px; }
.tabs svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.activa { color: var(--marca); }

/* hoja de abajo (formularios) */
.hoja { position: fixed; inset: 0; background: rgba(29,26,22,.45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.hoja__caja { background: var(--blanco); width: 100%; max-width: 640px; border-radius: 26px 26px 0 0; padding: 20px 16px calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; }
.aviso { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--tinta); color: var(--papel); padding: 11px 18px; border-radius: 99px; font-weight: 700; z-index: 40; max-width: 92vw; }

/* entrada */
.entrar { min-height: 80dvh; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.entrar .logo { width: 84px; height: 84px; border-radius: 24px; }
.entrar h1 { font-size: 40px; line-height: .95; margin: 6px 0 8px; font-weight: 850; letter-spacing: -0.03em; }
.error { color: var(--marca-osc); font-weight: 700; min-height: 1.4em; }

/* vidriera */
.vid-carril { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.vid-carril::-webkit-scrollbar { display: none; }
.vid { flex: 0 0 82%; scroll-snap-align: center; border-radius: 24px; overflow: hidden; background: var(--tinta); color: #fff; position: relative; box-shadow: var(--sombra); }
.vid img, .vid video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; background: #111; }
.vid video.vertical { aspect-ratio: 9/16; object-fit: cover; }
.vid__pie { padding: 14px 16px 16px; }
.vid__pie small { font-family: var(--mono); font-size: 12px; opacity: .75; text-transform: uppercase; letter-spacing: .05em; }
.vid__pie b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 10px; }
.vid__color { position: absolute; top: 12px; left: 12px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.precios li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--linea); }
.precios { list-style: none; padding: 0; margin: 0; }
.presentar { position: fixed; inset: 0; background: #0f0d0b; z-index: 50; display: flex; flex-direction: column; }
.presentar .vid-carril { flex: 1; align-items: center; margin: 0; }
.presentar .vid { flex-basis: 88%; }
.presentar__cerrar { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; }

/* presupuesto para imprimir (PDF) */
.imprimir { display: none; }
@media print {
  body { background: #fff; }
  #app, .tabs, .hoja, .aviso { display: none !important; }
  .imprimir { display: block; padding: 40px; color: #1d1a16; font: 15px/1.5 Archivo, sans-serif; }
  .imprimir h1 { font-size: 34px; margin: 18px 0 4px; letter-spacing: -0.02em; }
  .imprimir table { width: 100%; border-collapse: collapse; margin: 22px 0; }
  .imprimir td { padding: 10px 0; border-bottom: 1px solid #ddd3c4; }
  .imprimir td:last-child { text-align: right; font-family: var(--mono); }
  .imprimir .tot td { font-weight: 800; font-size: 19px; border-bottom: 0; }
  .imprimir img { width: 150px; }
}
