/* Estilos propios de la tienda (carrito y base). El diseño de las secciones está en css/instant-*.css */
:root {
  --crema: #fbf8f2;
  --crema-2: #f6f1e7;
  --tinta: #1c1b17;
  --oliva: #2f3a26;
  --oro: #b99a5b;
  --oro-osc: #a8894f;
  --linea: #d9cdb8;
  --negro: #070d0a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--crema); color: var(--tinta); }
body { font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
.vixa-seccion { display: block; }
.vixa-seccion[data-parte="header"] { position: sticky; top: var(--anuncio, 0px); z-index: 50; }

/* ---------- Carrito ---------- */
.carrito-fondo {
  position: fixed; inset: 0; z-index: 90; background: rgba(7, 13, 10, .6);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.carrito {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(460px, 100%);
  background: var(--crema); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.22,.61,.36,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
}
body.carrito-abierto { overflow: hidden; }
body.carrito-abierto .carrito-fondo { opacity: 1; pointer-events: auto; }
body.carrito-abierto .carrito { transform: none; }

.carrito-cabeza {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; background: var(--negro); color: var(--crema);
}
.carrito-cabeza h2 { margin: 0; font-family: "Fraunces", serif; font-weight: 450; font-size: 26px; letter-spacing: -.01em; }
.carrito-cabeza h2 em { color: var(--oro); }
.carrito-cerrar {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--crema);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.carrito-cuerpo { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.carrito-vacio { text-align: center; padding: 60px 10px; color: #5b574b; font-size: 18px; }
.carrito-vacio a {
  display: inline-block; margin-top: 18px; padding: 14px 26px; background: var(--oliva); color: var(--crema);
  text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: 13px;
}

.item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.item img { width: 76px; height: 92px; object-fit: cover; background: #fff; }
.item h3 { margin: 0; font-family: "Fraunces", serif; font-weight: 450; font-size: 18px; line-height: 1.2; }
.item .pres { font-size: 14px; color: #6b6656; margin-top: 2px; }
.item .fila { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.item .precio { font-size: 18px; font-weight: 500; }
.cant { display: inline-flex; align-items: center; border: 1px solid var(--linea); }
.cant button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--tinta); }
.cant span { min-width: 30px; text-align: center; font-size: 17px; }
.item .agotado { margin-top: 6px; font-size: 14px; color: #8a2a1f; font-weight: 500; }
.quitar { border: 0; background: none; color: #8a4a3a; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px 0; }

.carrito-datos { margin-top: 22px; display: grid; gap: 14px; }
.carrito-datos h3 { margin: 6px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-osc); font-weight: 500; }
.carrito-datos label { display: grid; gap: 6px; font-size: 15px; }
.carrito-datos input, .carrito-datos select {
  width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--linea); background: #fff;
  font: inherit; font-size: 17px; color: var(--tinta);
}
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opciones.tres { grid-template-columns: 1fr 1fr 1fr; }
.opciones label { position: relative; display: block; }
.opciones input { position: absolute; opacity: 0; }
.opciones span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 6px;
  border: 1px solid var(--linea); background: #fff; font-size: 15px; cursor: pointer; line-height: 1.2;
}
.opciones input:checked + span { background: var(--oliva); color: var(--crema); border-color: var(--oliva); }
.opciones input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }

.carrito-pie { padding: 18px 24px 22px; border-top: 1px solid var(--linea); background: var(--crema-2); }
.totales { display: grid; gap: 6px; font-size: 16px; }
.totales div { display: flex; justify-content: space-between; }
.totales .total { font-size: 22px; font-weight: 600; padding-top: 6px; border-top: 1px solid var(--linea); margin-top: 4px; }
.totales .nota { font-size: 13px; color: #6b6656; display: block; }
.btn-wa {
  margin-top: 16px; width: 100%; height: 60px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #1f8f4e; color: #fff; font: inherit; font-size: 16px; font-weight: 500; letter-spacing: .06em;
}
.btn-wa:disabled { background: #9aa596; cursor: not-allowed; }
.btn-wa svg { width: 24px; height: 24px; }
.btn-llamar {
  margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
  border: 1px solid var(--tinta); color: var(--tinta); text-decoration: none; font-size: 15px;
}
.aviso { font-size: 13px; color: #8a4a3a; margin-top: 8px; text-align: center; min-height: 1em; }

/* Pantallas bajas: el total no debe tapar los productos; todo se desplaza junto */
@media (max-height: 760px) {
  .carrito { overflow-y: auto; }
  .carrito-cabeza { position: sticky; top: 0; z-index: 1; }
  .carrito-cuerpo { flex: none; overflow: visible; }
}

/* Aviso de "añadido" */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 30px); opacity: 0;
  background: var(--negro); color: var(--crema); padding: 14px 22px; font-size: 15px; transition: .3s;
  border-left: 3px solid var(--oro); pointer-events: none;
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Asistente de cocina con IA (js/asistente.js) ---------- */
.reina-boton {
  position: fixed; right: 18px; bottom: 96px; z-index: 80; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--oliva); color: #f4f0e6; font: 500 14px/1 "DM Sans", sans-serif;
  box-shadow: 0 10px 30px rgba(7,13,10,.28); transition: transform .2s;
}
.reina-boton:hover { transform: translateY(-2px); }
.reina-boton.oculto { display: none; }
.reina-boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.reina-ia { background: var(--oro); color: var(--negro); font-weight: 700; font-size: 11px; padding: 4px 6px; border-radius: 6px; letter-spacing: .05em; }
.reina-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 95; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 36px));
  display: flex; flex-direction: column; background: var(--crema); border: 1px solid var(--linea); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(7,13,10,.35); font-family: "DM Sans", sans-serif; color: var(--tinta);
}
.reina-panel[hidden] { display: none; }
.reina-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--oliva); color: #f4f0e6; }
.reina-cab b { display: block; font-family: "Fraunces", serif; font-weight: 500; font-size: 17px; }
.reina-cab small { font-size: 11.5px; opacity: .75; }
.reina-cerrar { background: none; border: 0; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.reina-mensajes { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.reina-msg { max-width: 88%; }
.reina-msg p { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.reina-reina p { background: #fff; border: 1px solid var(--linea); border-bottom-left-radius: 4px; }
.reina-cliente { align-self: flex-end; }
.reina-cliente p { background: var(--oliva); color: #f4f0e6; border-bottom-right-radius: 4px; }
.reina-pensando i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--oro); animation: reina-punto 1s infinite; }
.reina-pensando i:nth-child(2) { animation-delay: .15s; } .reina-pensando i:nth-child(3) { animation-delay: .3s; }
@keyframes reina-punto { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.reina-prod { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; }
.reina-prod img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.reina-prod a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.reina-prod b { display: block; font-size: 13.5px; font-weight: 600; }
.reina-prod small { font-size: 12px; color: #6b6556; }
.reina-prod button { border: 0; border-radius: 8px; padding: 8px 10px; background: var(--oro); color: var(--negro); font: 600 12.5px "DM Sans", sans-serif; cursor: pointer; }
.reina-agotado { font-size: 12px; color: #8a8270; }
.reina-sugerencias { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.reina-sugerencias button { border: 1px solid var(--linea); background: #fff; border-radius: 999px; padding: 7px 11px; font: 13px "DM Sans", sans-serif; color: var(--oliva); cursor: pointer; text-align: left; }
.reina-sugerencias button:hover { border-color: var(--oro); }
.reina-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--linea); background: var(--crema-2); }
.reina-form input { flex: 1; min-width: 0; border: 1px solid var(--linea); border-radius: 999px; padding: 11px 15px; font: 15px "DM Sans", sans-serif; background: #fff; }
.reina-form input:focus { outline: 2px solid var(--oro); outline-offset: 0; }
.reina-form button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--oliva); color: #f4f0e6; cursor: pointer; display: grid; place-items: center; }
.reina-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reina-nota { margin: 0; padding: 0 14px 10px; background: var(--crema-2); font-size: 11px; color: #7b7463; }
.reina-nota a { color: var(--oliva); }
body.carrito-abierto .reina-boton { display: none; }
@media (max-width: 600px) {
  .reina-boton { right: 14px; bottom: 88px; padding: 11px; }
  .reina-texto { display: none; }
  .reina-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

/* ---------- Rastrear mi pedido (/mi-pedido · js/mi-pedido.js) ---------- */
.mp { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.mp-etq { display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--oro-osc); font-weight: 600; }
.mp h1 { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(32px, 6vw, 48px); line-height: 1.08; margin: 10px 0 12px; color: var(--negro); }
.mp-intro { font-size: 16px; line-height: 1.6; color: #4f4a3f; margin: 0 0 26px; }
.mp-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; padding: 18px; background: #fff; border: 1px solid var(--linea); border-radius: 16px; }
.mp-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--oliva); }
.mp-form input { border: 1px solid var(--linea); border-radius: 10px; padding: 12px 14px; font: 16px "DM Sans", sans-serif; background: var(--crema); min-width: 0; }
.mp-form input:focus { outline: 2px solid var(--oro); }
.mp-btn { border: 0; border-radius: 10px; padding: 13px 20px; background: var(--oliva); color: #f4f0e6; font: 600 15px "DM Sans", sans-serif; cursor: pointer; white-space: nowrap; }
.mp-btn[disabled] { opacity: .6; cursor: wait; }
.mp-ayuda { font-size: 13px; color: #7b7463; margin: 10px 2px 0; }
.mp-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbeee9; color: #8a2f1c; font-size: 14px; }
.mp-error a { color: inherit; font-weight: 600; }
.mp-res { margin-top: 26px; display: grid; gap: 14px; }
.mp-caja { background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 18px 20px; }
.mp-caja h2 { font-family: "Fraunces", serif; font-weight: 500; font-size: 24px; margin: 2px 0; color: var(--negro); }
.mp-caja h3 { font-size: 15px; margin: 0 0 8px; }
.mp-gris { font-size: 13px; color: #7b7463; }
.mp-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mp-pasos li { display: flex; align-items: center; gap: 12px; color: #a39b88; }
.mp-pasos li span { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #efe9dc; }
.mp-pasos li.hecho { color: #4f4a3f; } .mp-pasos li.hecho span { background: #dfe6cf; color: var(--oliva); }
.mp-pasos li.ahora { color: var(--negro); font-weight: 600; } .mp-pasos li.ahora span { background: var(--oliva); color: #f4f0e6; }
.mp-pasos small { font-weight: 400; color: #7b7463; margin-left: 6px; }
.mp-destacado { background: #f3f5ea; border-color: #cdd8b4; }
.mp-fila { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-top: 1px solid #f0ebe0; }
.mp-fila:first-of-type { border-top: 0; }
.mp-go { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #4f4a3f; }
.mp-go b { color: var(--negro); }
.mp-go-logo { font: 800 14px "DM Sans", sans-serif; background: #0a1631; color: #fff; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.mp-go-logo i { color: #ff7a1a; font-style: normal; margin-left: 2px; }
.mp-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-acciones a { display: inline-block; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--linea); color: var(--oliva); text-decoration: none; font-weight: 600; font-size: 14px; background: #fff; }
.mp-acciones a.mp-principal { background: var(--oliva); color: #f4f0e6; border-color: var(--oliva); }
@media (max-width: 640px) { .mp-form { grid-template-columns: 1fr; } .mp { padding-top: 36px; } }

/* ---------- Una marca de Findley Foods ---------- */
.marca-findley { max-width: 1100px; margin: 0 auto; padding: 60px 20px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.marca-findley h2 { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.1; margin: 10px 0 14px; color: var(--negro); }
.marca-findley p { font-size: 16px; line-height: 1.65; color: #4f4a3f; margin: 0 0 12px; }
.marca-findley a.mf-enlace { display: inline-block; margin-top: 8px; color: var(--oliva); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; text-decoration: none; border-bottom: 1px solid var(--oro); padding-bottom: 4px; }
.mf-tarjetas { display: grid; gap: 12px; }
.mf-tarjetas div { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 16px 18px; }
.mf-tarjetas b { display: block; font-size: 15px; color: var(--negro); margin-bottom: 4px; }
.mf-tarjetas span { font-size: 14px; color: #5e584b; line-height: 1.5; }
@media (max-width: 800px) { .marca-findley { grid-template-columns: 1fr; gap: 24px; } }
.pie-findley { text-align: center; padding: 14px 20px 90px; background: var(--negro); color: rgba(244,240,230,.7); font-size: 12.5px; letter-spacing: .04em; }
.pie-findley a { color: var(--oro); text-decoration: none; }
