/* Familia Serrano — tienda online (/tienda). Mobile first. Mismos colores y tipografía que la landing. */
:root {
  --navy: #17324D;
  --teal: #22A6A1;
  --teal-ink: #137a76;
  --teal-soft: #e3f5f4;
  --yellow: #F2B84B;
  --yellow-soft: #fdf1d8;
  --paper: #F5F7F5;
  --ink: #17324D;
  --muted: #4d6275;
  --line: #e2e8ec;
  --ok: #15803d;
  --wa: #128C4B;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23, 50, 77, .06), 0 6px 18px rgba(23, 50, 77, .07);
  --wrap: 1160px;
  --gutter: 16px;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.envoltura { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.saltar:focus { top: 12px; }

/* ---------- Cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.cab__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-block: 10px; }
.marca img { width: 84px; height: auto; }
.buscador { display: flex; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.buscador:focus-within { border-color: var(--teal); background: #fff; }
.buscador input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: none; font: inherit; color: inherit; outline: none; }
.buscador button { display: grid; place-items: center; padding: 0 12px; border: 0; background: none; color: var(--teal-ink); cursor: pointer; }
.cab__wa { display: inline-flex; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; }
.cab__wa span { display: none; }

.rubros { border-top: 1px solid var(--line); }
.rubros__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rubros__in::-webkit-scrollbar { display: none; }
.rubros a { flex: none; padding: 10px 12px; font-weight: 700; font-size: .95rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.rubros a:hover { color: var(--ink); }
.rubros a.is-activo { color: var(--ink); border-bottom-color: var(--teal); }

.aviso-envio { background: var(--navy); color: #fff; font-size: .85rem; }
.aviso-envio .envoltura { display: flex; align-items: center; gap: 8px; padding-block: 8px; }
.aviso-envio strong { color: var(--yellow); }

/* ---------- Bloques ---------- */
.bloque { padding-block: 24px; }
.bloque__cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.titulo-bloque { font-size: 1.35rem; font-weight: 900; }
.titulo-pagina { font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.volanta { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.ver-todo { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--teal-ink); text-decoration: none; white-space: nowrap; }

.portada { background: linear-gradient(135deg, var(--teal-soft), #fff 70%); padding-block: 28px; }
.portada h1 { margin-top: 6px; font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 900; line-height: 1.1; }
.portada h1 span { color: var(--teal-ink); }
.bajada { margin-top: 8px; color: var(--muted); font-size: 1.05rem; }

.rubros-grilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rubro { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--navy); min-height: 110px; text-decoration: none; box-shadow: var(--shadow); }
.rubro img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; opacity: .85; transition: transform .3s ease; }
.rubro:hover img { transform: scale(1.04); }
.rubro__nombre { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: linear-gradient(transparent, rgba(15, 36, 56, .85)); color: #fff; font-weight: 900; font-size: 1.1rem; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: thin; }
.chip { flex: none; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.chip:hover { border-color: var(--teal); color: var(--ink); }
.chip.is-activo { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }

/* ---------- Grilla de productos ---------- */
.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tarjeta { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.tarjeta__enlace { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tarjeta__foto { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 10px; background: #fff; border-bottom: 1px solid var(--line); }
/* La foto se ancla a la caja cuadrada: una foto vertical entra entera en vez de estirar la caja */
.tarjeta__foto img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.tarjeta__sin-foto { width: 44%; height: auto; color: #b6c2cc; }
.tarjeta__datos { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 10px 12px 12px; }
.tarjeta__nombre { font-size: .95rem; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta__detalle { font-size: .82rem; color: var(--muted); }
.tarjeta__precio { margin-top: auto; padding-top: 6px; font-size: 1.15rem; font-weight: 900; }
.tarjeta__precio span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.tarjeta__mayorista { font-size: .78rem; font-weight: 800; color: var(--ok); }
.tarjeta:hover .tarjeta__nombre { color: var(--teal-ink); }

/* ---------- Listado ---------- */
.migas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: .88rem; color: var(--muted); }
.migas a { color: var(--teal-ink); font-weight: 700; text-decoration: none; }
.listado__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.listado__cuenta { color: var(--muted); font-weight: 600; }
.orden { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.orden select { padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
.vacio { padding: 28px 16px; border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }
.vacio p + p { margin-top: 6px; }
.vacio a { color: var(--teal-ink); font-weight: 800; }

.paginas { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
.paginas__btn { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-weight: 800; text-decoration: none; color: var(--teal-ink); }
.paginas__btn.is-off { color: #a3b1bd; }
.paginas__info { color: var(--muted); font-size: .9rem; }

/* ---------- Ficha ---------- */
.ficha { display: grid; gap: 20px; padding: 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.ficha__foto { position: relative; display: grid; place-items: center; align-content: center; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #fff; }
.ficha__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ficha__sin-foto { margin-top: 6px; color: var(--muted); font-weight: 700; text-align: center; }
.ficha__datos { display: flex; flex-direction: column; gap: 10px; }
.ficha__nombre { font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.ficha__contenido { color: var(--muted); font-weight: 700; }
.ficha__precio { font-size: 2rem; font-weight: 900; }
.ficha__precio span { font-size: 1rem; color: var(--muted); }
.ficha__mayorista { padding: 10px 12px; border-radius: 12px; background: #ecfdf3; color: #14532d; font-size: .95rem; }
.ficha__stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ok); }
.ficha__stock::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.ficha__stock.is-pocas { color: #b45309; }
.ficha__nota { font-size: .85rem; color: var(--muted); }
.ficha__info { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.ficha__info li { display: flex; align-items: center; gap: 8px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .7em 1.3em; border-radius: 12px; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.boton--wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(18, 140, 75, .25); }
.boton--wa:hover { background: #0f7a41; }

/* ---------- Pie ---------- */
.pie { margin-top: 48px; background: var(--navy); color: #d7e1ea; font-size: .95rem; line-height: 1.55; }
.pie__in { display: grid; gap: 36px; padding-block: 44px 36px; }
.pie h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; color: #fff; font-size: 1.05rem; font-weight: 900; }
.pie li + li { margin-top: 9px; }
.pie__pronto { padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.redes { display: flex; gap: 10px; margin-top: 18px; }
.redes li + li { margin-top: 0; }
.redes a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s, transform .15s; }
.redes a:hover { background: var(--teal); transform: translateY(-2px); }
.redes .ico { width: 21px; height: 21px; }
.pie__base { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 16px; color: #9fb3c4; font-size: .85rem; text-align: center; }
.pie strong { color: #fff; }
.pie a { color: #fff; }
.pie__nota { margin-top: 14px; color: #9fb3c4; }

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 640px) {
  .cab__wa span { display: inline; }
  .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .rubros-grilla { grid-template-columns: repeat(4, 1fr); }
  .pie__in { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .marca img { width: 104px; }
  .cab__in { gap: 24px; }
  .buscador { max-width: 560px; justify-self: center; width: 100%; }
  .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ficha { grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px; }
  .ficha__nombre { font-size: 2rem; }
  .portada { padding-block: 40px; }
}

/* ---------- Cuenta y formularios ---------- */
.cab__cuenta { display: inline-flex; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; color: var(--ink); font-weight: 800; text-decoration: none; }
.cab__cuenta:hover { background: var(--paper); }
.cab__cuenta span { display: none; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Celular: logo y botones arriba, buscador abajo a todo el ancho */
.cab__in { grid-template-columns: 1fr auto auto; grid-template-areas: "marca cuenta wa" "buscador buscador buscador"; row-gap: 8px; }
.marca { grid-area: marca; }
.buscador { grid-area: buscador; }
.cab__cuenta { grid-area: cuenta; }
.cab__wa { grid-area: wa; }
@media (min-width: 640px) {
  .cab__in { grid-template-columns: auto 1fr auto auto; grid-template-areas: "marca buscador cuenta wa"; }
}
.aviso { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #ecfdf3; color: #14532d; font-weight: 700; }
.panel-acceso { max-width: 520px; margin-inline: auto; padding: 22px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel-acceso__bajada { margin-top: 8px; color: var(--muted); }
.panel-acceso__bajada a { color: var(--teal-ink); font-weight: 700; }
.panel-acceso__pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.panel-acceso__pie a, .enlace { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--teal-ink); cursor: pointer; text-decoration: underline; }
.formulario { display: grid; gap: 16px; margin-top: 18px; }
.campo { display: grid; gap: 6px; font-weight: 800; }
.campo small { font-weight: 600; color: var(--muted); font-size: .85rem; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; color: var(--ink); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.campo [aria-invalid="true"] { border-color: #dc2626; }
.campo__error { font-style: normal; font-weight: 700; font-size: .88rem; color: #b91c1c; }
.campo__codigo { font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; }
.boton--teal { width: 100%; border: 0; background: var(--teal-ink); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(19, 122, 118, .25); font-family: inherit; }
.boton--teal:hover { background: #106966; }
@media (min-width: 640px) {
  .cab__cuenta span { display: inline; }
  .panel-acceso { padding: 28px; }
}

/* ---------- Carrito ---------- */
.cab__carrito { position: relative; display: inline-flex; align-items: center; padding: 10px; border-radius: 12px; color: var(--ink); grid-area: carrito; }
.cab__carrito:hover { background: var(--paper); }
.cab__cuenta-badge { position: absolute; top: 2px; right: 0; min-width: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: .72rem; font-weight: 900; line-height: 1.25rem; text-align: center; }
.cab__in { grid-template-columns: 1fr auto auto auto; grid-template-areas: "marca cuenta carrito wa" "buscador buscador buscador buscador"; }
@media (min-width: 640px) {
  .cab__in { grid-template-columns: auto 1fr auto auto auto; grid-template-areas: "marca buscador cuenta carrito wa"; }
}
.aviso--carrito { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.aviso--error { background: #fef2f2; color: #991b1b; }
.aviso--alerta { background: var(--yellow-soft); color: #7a4b00; }
.boton--chico { min-height: 0; padding: 8px 14px; font-size: .9rem; background: var(--teal-ink); color: #fff; }

.agregar { display: flex; gap: 10px; }
.agregar__cantidad { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 800; color: var(--muted); }
.agregar__cantidad input { width: 4.5rem; padding: 12px 0; border: 0; font: inherit; font-size: 1.1rem; font-weight: 800; color: var(--ink); text-align: center; background: none; }
.agregar__cantidad:focus-within { border-color: var(--teal); }
.agregar .boton--teal { flex: 1; }
.enlace-wa { display: inline-flex; align-items: center; gap: 6px; color: var(--wa); font-weight: 800; text-decoration: none; }
.enlace-wa:hover { text-decoration: underline; }

.tarjeta { display: flex; flex-direction: column; }
.tarjeta__enlace { flex: 1; }
.tarjeta__agregar { padding: 0 12px 12px; }
.tarjeta__agregar button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px; border: 1.5px solid var(--teal-ink); border-radius: 10px; background: #fff; color: var(--teal-ink); font: inherit; font-weight: 800; cursor: pointer; }
.tarjeta__agregar button:hover { background: var(--teal-ink); color: #fff; }

.carrito { display: grid; gap: 20px; margin-top: 16px; align-items: start; }
.carrito__lista { display: grid; gap: 10px; }
.renglon { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.renglon__foto { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.renglon__foto img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.renglon__foto .tarjeta__sin-foto { width: 60%; }
.renglon__nombre { font-weight: 800; text-decoration: none; line-height: 1.25; }
.renglon__nombre:hover { color: var(--teal-ink); }
.renglon__unitario { font-size: .88rem; color: var(--muted); }
.renglon__mayorista { font-size: .85rem; font-weight: 800; color: var(--ok); }
.renglon__sugerencia { font-size: .85rem; font-weight: 700; color: #7a4b00; }
.renglon__acciones { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.renglon__cantidad label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.renglon__cantidad input { width: 4.2rem; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 800; color: var(--ink); text-align: center; }
.renglon__importe { grid-column: 2; font-size: 1.1rem; font-weight: 900; }
.renglon__importe s { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }

.resumen { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.resumen dl { display: grid; gap: 6px; margin: 0; }
.resumen dl > div { display: flex; justify-content: space-between; gap: 12px; }
.resumen dt { color: var(--muted); font-weight: 600; }
.resumen dd { margin: 0; font-weight: 800; text-align: right; }
.resumen__desc dd { color: var(--ok); }
.resumen__total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--navy); }
.resumen__total dt, .resumen__total dd { font-size: 1.35rem; font-weight: 900; color: var(--ink); }
.resumen__minimo { padding: 10px 12px; border-radius: 12px; background: var(--yellow-soft); font-size: .92rem; color: #7a4b00; }
.barra { height: 8px; margin-top: 8px; border-radius: 999px; background: rgba(122, 75, 0, .15); overflow: hidden; }
.barra > div { height: 100%; border-radius: inherit; background: var(--yellow); }
.resumen__zona, .resumen__proximamente { font-size: .9rem; color: var(--muted); }
.resumen .boton--wa { width: 100%; }
.seguir { text-align: center; font-weight: 800; color: var(--teal-ink); }

@media (min-width: 640px) {
  .renglon { grid-template-columns: 80px 1fr auto; align-items: center; }
  .renglon__foto { width: 80px; height: 80px; }
  .renglon__importe { grid-column: auto; text-align: right; }
}
@media (min-width: 900px) {
  .carrito { grid-template-columns: 1fr 340px; }
  .resumen { position: sticky; top: 140px; }
}

/* ---------- Checkout y pedidos ---------- */
.checkout { display: grid; gap: 14px; }
.tarjeta-form { display: grid; gap: 10px; margin: 0; padding: 16px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.tarjeta-form legend, .tarjeta-form h2 { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-size: 1.1rem; font-weight: 900; }
.tarjeta-form legend small { font-weight: 600; color: var(--muted); }
.opcion { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.opcion.is-off { opacity: .65; cursor: not-allowed; }
.opcion input { margin-top: 4px; accent-color: var(--teal-ink); width: 1.15rem; height: 1.15rem; }
.opcion span { display: grid; gap: 2px; }
.opcion small { color: var(--muted); font-size: .9rem; }
.opcion a { color: var(--teal-ink); font-weight: 800; }
.checkout__direccion { display: grid; gap: 12px; padding-top: 4px; }
.resumen__items { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.resumen__items li { display: flex; justify-content: space-between; gap: 10px; }
.resumen__items li span:last-child { font-weight: 800; white-space: nowrap; }
.resumen .boton--teal { width: 100%; text-align: center; }

.estado { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 900; background: var(--paper); color: var(--muted); }
.estado--pendiente_pago { background: var(--yellow-soft); color: #7a4b00; }
.estado--pagado { background: #e0f2fe; color: #075985; }
.estado--preparado { background: var(--teal-soft); color: var(--teal-ink); }
.estado--entregado { background: #ecfdf3; color: #14532d; }
.pago h2 { font-size: 1.3rem; }
.pago__datos { display: grid; gap: 8px; margin: 0; padding: 12px; border-radius: 12px; background: var(--paper); }
.pago__datos > div { display: grid; gap: 2px; }
.pago__datos dt { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pago__datos dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.pago__datos code { font-size: 1.05rem; font-weight: 900; word-break: break-all; }
.pago__nota { color: var(--muted); font-size: .92rem; }
.copiar { padding: 4px 10px; border: 1.5px solid var(--teal-ink); border-radius: 8px; background: #fff; color: var(--teal-ink); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.pedido-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; }
.pedido-fila > span:first-child { display: grid; gap: 2px; }
.pedido-fila small { color: var(--muted); }
.pedido-fila__der { display: grid; justify-items: end; gap: 4px; }
[data-solo-envio][hidden] { display: none !important; }


/* ---------- Mismo lenguaje que la landing (botones, cabecera, tarjetas, enlaces, movimiento) ---------- */
.boton {
  min-height: 48px; padding: .7em 1.35em; border-radius: 12px; border: 0;
  font-family: inherit; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton--teal { background: var(--teal-ink); color: #fff; box-shadow: 0 6px 16px rgba(19, 122, 118, .25); }
.boton--teal:hover { background: #106966; }
.boton--wa { border-radius: 999px; padding-inline: 1.5em; box-shadow: 0 6px 16px rgba(18, 140, 75, .28); }
.boton--wa .ico { width: 1.4em; height: 1.4em; }
.boton--chico { min-height: 40px; padding: .5em 1em; }

/* Cabecera translúcida que gana borde y sombra al hacer scroll (como la landing) */
.cab {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: none; border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cab.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(23, 50, 77, .06); }
.marca img { height: 48px; width: auto; }
@media (min-width: 900px) { .marca img { height: 56px; } }
.cab__wa { border-radius: 10px; transition: background-color .15s ease; }
.cab__wa:hover { background: #0f7a41; }
.cab__cuenta, .cab__carrito { border-radius: 10px; transition: background-color .15s ease; }
.cab__cuenta:hover, .cab__carrito:hover { background: var(--teal-soft); }
.rubros a { transition: color .15s ease, border-color .15s ease; }

/* Tarjetas: se elevan y la imagen hace un zoom suave */
.tarjeta, .rubro, .renglon, .resumen, .ficha, .panel-acceso, .tarjeta-form, .pedido-fila, .vacio { border: 1px solid var(--line); }
.tarjeta, .rubro, .pedido-fila { transition: transform .2s ease, box-shadow .2s ease; }
.tarjeta:hover, .rubro:hover, .pedido-fila:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 50, 77, .06), 0 16px 32px rgba(23, 50, 77, .12); }
.tarjeta__foto img, .rubro img { transition: transform .4s ease; }
.tarjeta:hover .tarjeta__foto img, .rubro:hover img { transform: scale(1.04); }
.tarjeta__foto { overflow: hidden; }
.tarjeta__agregar button { min-height: 40px; border-radius: 10px; transition: background-color .15s ease, color .15s ease; }

/* Enlaces de acción con subrayado amarillo, como «Cómo llegar» de la landing */
.ver-todo, .seguir {
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  font-weight: 700; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--yellow); padding-block: 2px; transition: color .15s ease;
}
.ver-todo:hover, .seguir:hover { color: var(--teal-ink); }
.seguir { align-self: center; justify-self: center; }

.chip, .copiar, .paginas__btn { transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.paginas__btn:hover { border-color: var(--teal); }
.opcion { transition: border-color .15s ease, background-color .15s ease; }
.volanta { letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tarjeta:hover, .rubro:hover, .pedido-fila:hover, .boton:hover { transform: none; }
}

/* ---------- Páginas de error ---------- */
.error { display: grid; justify-items: center; gap: 12px; max-width: 560px; min-height: 100vh; margin: 0 auto; padding: 48px var(--gutter); align-content: center; text-align: center; }
.error__logo { width: 140px; height: auto; margin-bottom: 8px; }
.error__texto { color: var(--muted); font-size: 1.05rem; }
.error__acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 8px; }
.error__acciones .boton--teal { width: auto; }
.error__wa { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.error__wa a { color: var(--wa); font-weight: 700; }

/* ---------- Ubicaciones de entrega ---------- */
.panel-ubicacion { max-width: 720px; }
.marcador { display: grid; gap: 10px; }
.marcador__gps { width: 100%; }
.marcador__o { margin: 4px 0 0; font-weight: 700; color: var(--muted); text-align: center; }
.marcador__buscar { position: relative; }
.marcador__buscar input { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.marcador__buscar input:focus { outline: none; border-color: var(--teal); }
.marcador__resultados { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.marcador__resultados button { width: 100%; padding: 10px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.marcador__resultados button:hover { background: var(--teal-soft); }
.marcador__mapa { position: relative; z-index: 0; height: 380px; border-radius: 14px; border: 1px solid var(--line); background: #e5e7eb; } /* z-index 0: las capas de Leaflet no tapan la cabecera fija */
.marcador__estado { margin: 0; font-size: .9rem; color: var(--muted); }
.marcador__estado.is-ok { color: var(--ok); font-weight: 800; }
.campos-dos { display: grid; gap: 16px; }
@media (min-width: 640px) { .campos-dos { grid-template-columns: 1fr 1fr; } .marcador__mapa { height: 440px; } }
.chips--elegir { margin: 0; flex-wrap: wrap; }
.chips--elegir .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chips--elegir .chip:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.chips--elegir input { accent-color: var(--teal-ink); }
.otro-celular { margin-top: 20px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; }
.otro-celular summary { cursor: pointer; color: var(--ink); }
.otro-celular p { color: var(--muted); font-size: .92rem; }
.otro-celular__opciones { display: grid; gap: 16px; margin-top: 10px; }
.otro-celular__wa { display: grid; gap: 10px; }
.otro-celular__qr img, .otro-celular__qr canvas { margin-top: 10px; }
.otro-celular__estado { margin-top: 12px; font-weight: 800; color: var(--ink) !important; }
.opcion--enlace { text-decoration: none; color: inherit; border-style: dashed; }
.opcion--enlace:hover { border-color: var(--teal); background: var(--teal-soft); }
.opcion--enlace > span:first-child { display: grid; place-items: center; width: 1.15rem; font-weight: 900; color: var(--teal-ink); }
.opcion__extra { display: block; margin-top: 8px; }
.opcion__extra input { width: 100%; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
[data-solo-pendiente][hidden] { display: none !important; }
.mis-ubicaciones { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.mis-ubicaciones h2 { font-size: 1.15rem; font-weight: 900; }
.mis-ubicaciones .boton--chico { justify-self: start; }
.mi-ubicacion { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.mi-ubicacion small { display: block; color: var(--muted); }
.mi-ubicacion__acciones { display: flex; gap: 14px; align-items: center; }

/* Próximamente envíos (mientras están apagados) */
.proximamente { margin-top: 16px; padding: 16px 18px; border: 1px dashed var(--teal); border-radius: var(--radius); background: var(--teal-soft); color: var(--ink); }
.proximamente h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; color: var(--teal-ink); }
.proximamente p { margin: 0 0 6px; }
.proximamente ul { margin: 0; padding-left: 1.2em; }
.proximamente li { margin: 3px 0; }
.nombre-propio { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.nombre-propio:focus { outline: 2px solid var(--teal); border-color: transparent; }
.cab__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
