/* Estilos de las páginas de TuMercado (portada, crear y panel). La tienda tiene los suyos en /tienda/. */
:root {
  --fondo: #f4f5f8;
  --papel: #ffffff;
  --tinta: #17203a;
  --suave: #5c6478;
  --linea: #e0e4ec;
  --marca: #17203a;
  --acento: #f5b400;
  --acento-claro: #fff3cc;
  --ok: #1f7a3a;
  --ok-claro: #e3f3e8;
  --rojo: #b3261e;
  --rojo-claro: #fbe7e6;
  --wa: #2aa13a;
  --radio: 16px;
  --sombra: 0 1px 0 rgba(0, 0, 0, .03), 0 10px 26px -16px rgba(23, 32, 58, .35);
  --titulos: 'Montserrat', 'Arial Black', Arial, sans-serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:where(button, a, input, select, textarea, label):focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.marco { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ marca */
.barra-sitio { background: var(--marca); color: #fff; border-bottom: 4px solid var(--acento); }
.barra-sitio .marco { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: italic 900 21px/1 var(--titulos); letter-spacing: -.01em; }
.logo b { color: var(--acento); font-weight: 900; }
.logo svg { width: 30px; height: 28px; stroke: none; }
.barra-sitio .lado { font-size: 14px; color: rgba(255, 255, 255, .8); }

/* ---------------------------------------------------------------- botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; background: var(--papel); color: var(--tinta);
}
.boton.principal { background: var(--marca); color: #fff; }
.boton.acento { background: var(--acento); color: var(--tinta); }
.boton.whatsapp { background: var(--wa); color: #fff; }
.boton.borde { border-color: var(--linea); }
.boton.peligro { color: var(--rojo); border-color: #f0c9c6; }
.boton.chico { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.boton.ancho { width: 100%; }
.boton:disabled { opacity: .55; cursor: default; }
.enlace { background: none; border: 0; padding: 0; color: var(--suave); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ----------------------------------------------------------------- tarjetas */
.tarjeta { background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px; }
.tarjeta + .tarjeta { margin-top: 14px; }
.tarjeta > h2 { font: 800 19px/1.2 var(--titulos); margin-bottom: 4px; }
.tarjeta > .bajada { color: var(--suave); font-size: 14px; margin-bottom: 14px; }

/* ----------------------------------------------------------------- campos */
.campo { display: block; margin-top: 12px; }
.campo > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.campo > span small { font-weight: 500; color: var(--suave); }
.campo input, .campo textarea, .campo select, .prod-campos input {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--linea); border-radius: 10px; background: #fff;
}
.campo textarea { min-height: 70px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .prod-campos input:focus { border-color: var(--marca); outline: none; }
.ayuda { margin-top: 5px; font-size: 13px; color: var(--suave); }
.error { margin-top: 5px; font-size: 13px; font-weight: 700; color: var(--rojo); }
.invalido input, input.invalido { border-color: var(--rojo) !important; background: var(--rojo-claro); }
.dos { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .dos { grid-template-columns: 1fr 1fr; } }

.opciones-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; }
.opcion span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 1.5px solid var(--linea); border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
}
.opcion input:checked + span { border-color: var(--marca); background: var(--marca); color: #fff; }
.opcion input:focus-visible + span { outline: 3px solid var(--acento); outline-offset: 2px; }
.muestra { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }

/* --------------------------------------------------------------- productos */
.prods { display: grid; gap: 10px; }
.prod-fila { border: 1.5px solid var(--linea); border-radius: 12px; padding: 10px; background: #fbfcfe; }
.prod-campos { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.prod-campos .ancho-total { grid-column: 1 / -1; }
@media (min-width: 620px) { .prod-campos { grid-template-columns: 1.4fr 1fr 120px; } .prod-campos .ancho-total { grid-column: auto; } .prod-campos .mas-campos { grid-column: 1 / -1; } }
.prod-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.prod-mas { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 620px) { .prod-mas { grid-template-columns: 1fr 1fr; } }
.prods-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* --------------------------------------------------------------- aviso */
.aviso {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  padding: 11px 16px; border-radius: 12px; background: var(--tinta); color: #fff; font-weight: 600; box-shadow: var(--sombra);
}
.aviso button { background: none; border: 0; color: var(--acento); font-weight: 800; cursor: pointer; }

/* ----------------------------------------------------- vista previa (celu) */
.telefono { position: relative; width: 100%; max-width: 400px; height: min(780px, calc(100vh - 110px)); margin: 0 auto; border-radius: 30px; border: 10px solid #1d2230; background: #1d2230; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.telefono iframe { width: 100%; height: 100%; border: 0; border-radius: 20px; background: #fff; }
.vista-titulo { text-align: center; font-size: 13px; font-weight: 700; color: var(--suave); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
.vista-flotante { position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 28, .85); display: flex; flex-direction: column; padding: 12px; }
.vista-flotante .telefono { height: 100%; max-width: 440px; border-width: 6px; }
.vista-flotante .cerrar-vista { align-self: flex-end; margin-bottom: 8px; }
