/* Reseñas UpWing · estilo. Marca UpWing: papel crema, tinta oscura, dorado y Jost. Sin esquinas redondeadas. */
:root {
  --papel: #faf5ea; --papel-2: #f1e9d6; --tinta: #1f170d; --tinta-2: #5d5040; --linea: #dccfb3;
  --oro: #d4a24a; --oro-fuerte: #8a6115; --verde: #1f7a45; --ojo: #a3401f;
  --fuente: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;
  --e1: .5rem; --e2: 1rem; --e3: 1.5rem; --e4: 2.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--fuente); font-size: 17px; line-height: 1.5; }
h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: var(--oro-fuerte); }
label { font-weight: 500; }
label span { color: var(--tinta-2); font-weight: 400; }
input, textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--tinta-2); background: #fffdf8; color: var(--tinta); font: inherit; border-radius: 0; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid var(--oro-fuerte); outline-offset: 2px; }

.marca { font-weight: 500; letter-spacing: .01em; color: var(--tinta-2); }
.marca b { color: var(--oro-fuerte); font-weight: 600; }
.bajada { color: var(--tinta-2); max-width: 60ch; }
.ayuda { color: var(--tinta-2); font-size: .92rem; max-width: 60ch; }
.vacio { color: var(--tinta-2); padding: var(--e2) 0; border-top: 1px solid var(--linea); }
.cuando { color: var(--tinta-2); font-size: .9rem; font-variant-numeric: tabular-nums; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.2rem; border: 2px solid var(--tinta); background: var(--tinta); color: var(--papel); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 0; }
.boton:hover { background: var(--oro-fuerte); border-color: var(--oro-fuerte); }
.boton--wa { background: var(--verde); border-color: var(--verde); color: #fff; }
.boton--wa:hover { background: #17603a; border-color: #17603a; }
.boton--linea { background: transparent; color: var(--tinta); }
.boton--linea:hover { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.boton--grande { width: 100%; min-height: 60px; font-size: 1.15rem; background: var(--oro); border-color: var(--oro); color: var(--tinta); }
.boton--grande:hover { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.enlace { background: none; border: 0; padding: .6rem 0; min-height: 44px; font: inherit; color: var(--tinta-2); text-decoration: underline; text-align: left; cursor: pointer; }
.enlace--ojo { color: var(--ojo); font-weight: 600; }

.aviso { padding: .7rem .9rem; border-left: 4px solid var(--verde); background: var(--papel-2); }
.aviso--error { border-left-color: var(--ojo); }
.aviso--nota { border-left-color: var(--oro); }
.pila { display: flex; flex-direction: column; gap: var(--e1); }
.pila > .boton { margin-top: var(--e1); }
.pila--ancha { max-width: 40rem; }
.suelto { margin: 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Entrada y página del cliente: una columna angosta */
.caja { max-width: 28rem; margin: 0 auto; padding: var(--e4) 20px; display: flex; flex-direction: column; gap: var(--e2); min-height: 100svh; }
.caja--cliente { justify-content: center; }
.negocio { font-weight: 600; font-size: 1.1rem; color: var(--oro-fuerte); }
.equipo { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.equipo summary { cursor: pointer; padding: .9rem 0; font-weight: 500; min-height: 48px; }
.equipo form { padding-bottom: var(--e2); }
.equipo .aviso { margin-bottom: var(--e1); }
.hecho { margin-top: auto; padding-top: var(--e3); font-size: .9rem; color: var(--tinta-2); }

/* Panel */
.ancho { max-width: 62rem; margin: 0 auto; padding-inline: 20px; }
.cab { border-bottom: 1px solid var(--linea); background: var(--papel-2); }
.cab__in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e1) var(--e3); padding-block: .6rem; }
.cab nav { display: flex; flex-wrap: wrap; gap: var(--e1) var(--e2); margin-right: auto; }
.cab nav a { color: var(--tinta); text-decoration: none; padding: .55rem 0; border-bottom: 3px solid transparent; min-height: 44px; display: inline-flex; align-items: center; }
.cab nav a[aria-current] { border-bottom-color: var(--oro); font-weight: 600; }
.cab form { margin: 0; }
.panel { padding-block: var(--e3) var(--e4); display: flex; flex-direction: column; gap: var(--e3); }
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--linea); background: var(--papel-2); }
.cifra { padding: var(--e2); display: flex; flex-direction: column; border-left: 1px solid var(--linea); }
.cifra:first-child { border-left: 0; }
.cifra b { font-size: 2.2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.cifra span { color: var(--tinta-2); font-size: .95rem; }
.tramo { display: flex; flex-direction: column; gap: var(--e2); }
.nuevo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e2); align-items: end; }
.nuevo > div { display: flex; flex-direction: column; gap: .3rem; }
.nuevo .boton { grid-column: 1 / -1; justify-self: start; }
.lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.pedido { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--e1) var(--e2); align-items: start; padding: var(--e2) 0; border-bottom: 1px solid var(--linea); }
.pedido__quien { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pedido__quien span { color: var(--tinta-2); }
.pedido__estado { display: flex; flex-direction: column; gap: .2rem; }
.pedido__accion { display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.pedido__accion form { margin: 0; }
.estado { font-weight: 600; }
.estado--fue-a-google { color: var(--verde); }
.estado--abrio-el-enlace { color: var(--oro-fuerte); }
.estado--por-enviar { color: var(--ojo); }
.texto summary, .borrar summary { cursor: pointer; color: var(--tinta-2); padding: .45rem 0; min-height: 40px; }
.texto p { padding: .6rem .8rem; background: var(--papel-2); border-left: 3px solid var(--oro); overflow-wrap: anywhere; }
.mensaje { padding: var(--e2) 0; border-bottom: 1px solid var(--linea); display: flex; flex-direction: column; gap: var(--e1); align-items: flex-start; }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--e3); align-items: start; }
.dos > div:first-child { display: flex; flex-direction: column; gap: var(--e2); align-items: flex-start; }
.url { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; padding: .5rem .7rem; background: var(--papel-2); border: 1px solid var(--linea); overflow-wrap: anywhere; }
.qr img { display: block; width: 240px; max-width: 100%; height: auto; border: 1px solid var(--linea); }

@media (max-width: 44rem) {
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifra:nth-child(3) { border-left: 0; }
  .cifra:nth-child(n + 3) { border-top: 1px solid var(--linea); }
  .nuevo { grid-template-columns: minmax(0, 1fr); }
  .nuevo .boton { justify-self: stretch; }
  .pedido { grid-template-columns: minmax(0, 1fr); }
  .pedido__estado { flex-direction: row; gap: var(--e2); align-items: baseline; }
  .pedido__accion .boton { width: 100%; }
  .pedido__accion form { width: 100%; }
  .dos { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .boton { transition: background-color .15s, border-color .15s, color .15s; }
}
