/* Ignis Dei — catálogo de cirios artesanales */
:root {
  color-scheme: light;
  --choco: #2a1912;
  --choco-2: #3b2419;
  --marfil: #fbf6ec;
  --crema: #f4e9d6;
  --card: #fffdf8;
  --miel: #c99531;
  --miel-hover: #b8822a;
  --miel-claro: #ecd08d;
  --oro-texto: #9c6d14;
  --terracota: #a84f2b;
  --terracota-suave: #f3e0d4;
  --salvia: #7f9170;
  --salvia-suave: #e6ebdf;
  --texto: #2e211b;
  --texto-2: #6a584c;
  --linea: #eadfca;
  --alerta: #9a3b1e;
  --ok: #4f6b3f;
  --sombra: 0 1px 2px rgba(74, 46, 20, .06), 0 10px 28px -12px rgba(74, 46, 20, .22);
  --radio: 14px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ancho: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--marfil);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--miel); outline-offset: 2px; border-radius: 6px; }
.envoltura { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .envoltura { padding-inline: 16px; } }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--choco);
  color: #f7ecd9;
  box-shadow: 0 2px 14px rgba(20, 10, 5, .25);
}
.encabezado__fila { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.marca__sello {
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #5a3a26 0%, #3a2418 70%);
  border: 1px solid rgba(236, 208, 141, .45);
  display: grid; place-items: center; overflow: hidden;
}
.marca__sello img { width: 40px; height: auto; }
.marca__nombre { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--miel-claro); letter-spacing: .02em; }
.marca__lema { display: block; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: #e9dcc6; margin-top: 5px; }
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a { text-decoration: none; font-size: .95rem; padding: 10px 14px; border-radius: 8px; color: #f3e7d3; transition: background .2s; }
.menu a:hover { background: rgba(255, 255, 255, .08); }
.boton-pedido {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #d9a843, var(--miel));
  color: #2a1912; border: 0; border-radius: 10px;
  padding: 12px 20px; font-weight: 700; font-size: .98rem; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(201, 149, 49, .9);
  white-space: nowrap; transition: transform .15s, filter .2s;
}
.boton-pedido:hover { filter: brightness(1.05); }
.boton-pedido.salto { animation: salto .45s ease; }
@keyframes salto { 40% { transform: scale(1.08); } }
.boton-pedido svg { width: 20px; height: 20px; flex-shrink: 0; }
.boton-pedido__punto { opacity: .6; }
.boton-menu { display: none; background: none; border: 1px solid rgba(236, 208, 141, .4); color: #f3e7d3; border-radius: 8px; width: 44px; height: 44px; cursor: pointer; place-items: center; }
.boton-menu svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .encabezado__fila { gap: 12px; }
  .boton-menu { display: grid; order: 3; }
  .boton-pedido { margin-left: auto; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--choco-2); border-top: 1px solid rgba(255, 255, 255, .06);
  }
  .menu[hidden] { display: none !important; }
  .menu a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
}
@media (min-width: 981px) { .menu[hidden] { display: flex !important; } }
@media (max-width: 560px) {
  .encabezado__fila { min-height: 66px; }
  .marca__sello { width: 44px; height: 44px; }
  .marca__sello img { width: 32px; }
  .marca__nombre { font-size: 1.3rem; }
  .marca__lema { font-size: .58rem; letter-spacing: .2em; }
  .boton-pedido { padding: 10px 12px; font-size: .88rem; gap: 6px; }
  .boton-pedido__texto, .boton-pedido__punto { display: none; }
}
@media (max-width: 380px) { .marca__lema { display: none; } }

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden;
  background: #f7ead6 url("../img/ambiente/portada-luz.webp") center / 100% 100% no-repeat;
  padding-block: 40px 44px;
}
.portada::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 246, 236, 0), var(--marfil));
}
.portada__flores {
  position: absolute; top: 0; height: 100%; width: auto; max-width: none;
  pointer-events: none; user-select: none; z-index: 0;
}
.portada__flores--izq { left: 0; }
.portada__flores--der { right: 0; }
@media (max-width: 980px) { .portada__flores { height: 78%; } }
@media (max-width: 600px) {
  .portada {
    padding-block: 118px 28px;
    background: radial-gradient(90% 40% at 80% 8%, rgba(255, 228, 176, .9), rgba(255, 228, 176, 0) 70%), linear-gradient(180deg, #f5e4c8 0%, #f9eedd 45%, #fbf3e6 100%);
  }
  .portada__flores { height: 150px; opacity: .95; }
}
.portada__contenido { position: relative; z-index: 1; text-align: center; }
.portada h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 3.7vw, 3.5rem);
  line-height: 1.08; margin: 0 auto; max-width: 24ch;
  text-shadow: 0 0 18px rgba(255, 247, 232, .9), 0 0 2px rgba(255, 247, 232, .8);
  color: #2b1b13; text-wrap: balance; letter-spacing: -.005em;
}
@media (min-width: 1100px) { .portada h1 { max-width: none; } }
.portada__sub {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  color: var(--terracota); margin: 14px 0 0; font-weight: 500;
}
.adorno { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px auto 22px; color: var(--miel); }
.adorno::before, .adorno::after { content: ""; height: 1px; width: min(180px, 24vw); background: linear-gradient(90deg, transparent, var(--miel)); }
.adorno::after { transform: scaleX(-1); }
.adorno svg { width: 18px; height: 26px; }

.herramientas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.buscador { position: relative; flex: 1 1 320px; max-width: 440px; }
.buscador svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--texto-2); }
.buscador input {
  width: 100%; height: 52px; border-radius: 999px;
  border: 1px solid var(--linea); background: rgba(255, 253, 248, .95);
  padding: 0 20px 0 50px; font-size: 1rem;
  box-shadow: 0 4px 16px -10px rgba(74, 46, 20, .35);
}
.buscador input::placeholder { color: #9a887a; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filtro {
  height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--linea); background: rgba(255, 253, 248, .92);
  cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--texto);
  transition: background .2s, border-color .2s, color .2s;
}
.filtro:hover { border-color: var(--miel); }
.filtro[aria-pressed="true"] { background: var(--miel); border-color: var(--miel); color: #fff; box-shadow: 0 6px 16px -8px rgba(201, 149, 49, .9); }
.filtro__n { font-weight: 500; opacity: .7; margin-left: 4px; font-size: .85em; }
@media (max-width: 560px) {
  .filtros { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; width: calc(100% + 32px); }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex-shrink: 0; height: 42px; padding: 0 16px; }
}

/* ---------- Catálogo ---------- */
.catalogo { padding-block: 8px 72px; }
.catalogo__barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin: 22px 0 18px; }
.catalogo__conteo { font-weight: 700; color: var(--texto); }
.catalogo__nota { color: var(--texto-2); font-size: .93rem; display: flex; align-items: center; gap: 8px; }
.catalogo__nota::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--salvia); flex-shrink: 0; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
@media (max-width: 600px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 340px) { .rejilla { grid-template-columns: 1fr; } }
.vacio { text-align: center; padding: 48px 16px; color: var(--texto-2); grid-column: 1 / -1; }

.tarjeta {
  background: var(--card); border-radius: var(--radio);
  box-shadow: var(--sombra); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(234, 223, 202, .7);
}
.tarjeta__foto {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%;
  background: #f1e2c8 center / cover no-repeat;
  border: 0; padding: 0; cursor: zoom-in; width: 100%; display: block; overflow: hidden;
}
.tarjeta__foto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 62% at 50% 52%, rgba(255, 248, 236, .55), rgba(255, 248, 236, 0) 100%);
}
.tarjeta__foto.fondo-1 { background-image: url("../img/ambiente/fondo-producto-1.webp"); }
.tarjeta__foto.fondo-2 { background-image: url("../img/ambiente/fondo-producto-2.webp"); }
.tarjeta__foto.fondo-3 { background-image: url("../img/ambiente/fondo-producto-3.webp"); }
.tarjeta__foto.fondo-4 { background-image: url("../img/ambiente/fondo-producto-4.webp"); }
.tarjeta__foto::after {
  content: ""; position: absolute; left: 50%; bottom: 3.2%; width: 46%; height: 6%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(84, 56, 30, .38), rgba(84, 56, 30, 0));
}
.tarjeta__foto img { position: absolute; inset: .5% 0 4.5% 0; width: 100%; height: 95%; object-fit: contain; object-position: center bottom; z-index: 1; transition: transform .35s ease; }
.tarjeta__foto:hover img { transform: translateY(-3px) scale(1.02); }
.tarjeta__cuerpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarjeta__cabeza { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: end; }
.etiqueta {
  justify-self: start; grid-column: 1 / -1;
  background: var(--terracota); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.tarjeta__codigo { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.1; margin: 0; }
.tarjeta__medida { font-size: .88rem; color: var(--texto-2); white-space: nowrap; padding-bottom: 5px; }
.tarjeta__medida--grande { color: var(--terracota); font-weight: 700; }
.precios { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); padding-top: 12px; }
.precio { text-align: center; padding-inline: 4px; }
.precios__iva { margin: 8px 0 0; text-align: center; font-size: .75rem; letter-spacing: .02em; color: var(--texto-2); }
.precio + .precio { border-left: 1px solid var(--linea); }
.precio__monto { font-family: var(--serif); font-weight: 700; font-size: 1.95rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.precio__cu { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.precio--oro .precio__monto, .precio--oro .precio__cu { color: var(--oro-texto); }
.precio--terracota .precio__monto, .precio--terracota .precio__cu { color: var(--terracota); }
.precio__escala { display: block; font-size: .82rem; color: var(--texto-2); margin-top: 4px; }
.precio.activa { background: linear-gradient(180deg, rgba(236, 208, 141, .22), rgba(236, 208, 141, 0)); border-radius: 8px; }
.tarjeta__accion { margin-top: auto; }
.boton-agregar {
  width: 100%; height: 50px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #d4a23e, var(--miel)); color: #fff;
  font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 16px -10px rgba(160, 110, 30, .9);
  transition: filter .2s, transform .1s;
}
.boton-agregar:hover { filter: brightness(1.06); }
.boton-agregar:active { transform: translateY(1px); }
.boton-agregar svg { width: 20px; height: 20px; flex-shrink: 0; }
.contador { display: grid; grid-template-columns: 50px 1fr 50px; height: 50px; border-radius: 10px; border: 1.5px solid var(--miel); overflow: hidden; background: #fffaf0; }
.contador button { border: 0; background: rgba(201, 149, 49, .14); cursor: pointer; font-size: 1.4rem; font-weight: 700; color: var(--oro-texto); }
.contador button:hover { background: rgba(201, 149, 49, .28); }
.contador label { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.contador input { width: 100%; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 1.15rem; padding: 0; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.contador input::-webkit-outer-spin-button, .contador input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.contador small { font-size: .68rem; color: var(--texto-2); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 600px) {
  .tarjeta__cuerpo { padding: 12px 10px 12px; gap: 8px; }
  .tarjeta__codigo { font-size: 1.35rem; }
  .tarjeta__cabeza { grid-template-columns: 1fr; }
  .tarjeta__medida { padding-bottom: 0; font-size: .8rem; }
  .precio__monto { font-size: 1.45rem; }
  .precio__cu { font-size: .9rem; }
  .precio__escala { font-size: .72rem; }
  .boton-agregar { height: 46px; font-size: .86rem; gap: 6px; padding-inline: 6px; white-space: nowrap; }
  .boton-agregar svg { display: none; }
  .etiqueta { font-size: .58rem; letter-spacing: .06em; padding: 2px 8px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .contador { grid-template-columns: 40px 1fr 40px; height: 46px; }
  }

/* ---------- Secciones informativas ---------- */
.seccion { padding-block: 72px; }
.seccion--crema { background: var(--crema); }
.seccion__titulo { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0 0 10px; text-wrap: balance; }
.seccion__intro { color: var(--texto-2); max-width: 62ch; margin: 0 0 36px; font-size: 1.05rem; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--terracota); margin: 0 0 8px; }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: paso; }
@media (max-width: 900px) { .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pasos { grid-template-columns: 1fr; } }
.paso { background: var(--card); border-radius: var(--radio); padding: 22px 20px; border: 1px solid var(--linea); position: relative; }
.paso__n { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--miel); line-height: 1; }
.paso h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.paso p { margin: 0; color: var(--texto-2); font-size: .95rem; }

.dos-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .dos-col { grid-template-columns: 1fr; gap: 28px; } }
.lugares { display: grid; gap: 14px; }
.lugar { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px; }
.lugar__icono { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--salvia-suave); color: var(--salvia); }
.lugar__icono svg { width: 22px; height: 22px; }
.lugar h3 { margin: 0 0 2px; font-size: 1.02rem; }
.lugar p { margin: 0; color: var(--texto-2); font-size: .95rem; }
.pago { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px; }
.pago h3 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 4px; font-weight: 600; }
.pago > p { margin: 0 0 18px; color: var(--texto-2); }
.barra-pago { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.barra-pago span:nth-child(1) { width: 20%; background: var(--terracota); }
.barra-pago span:nth-child(2) { width: 30%; background: var(--miel); }
.barra-pago span:nth-child(3) { width: 50%; background: var(--salvia); }
.etapas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.etapas li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.etapas b { font-family: var(--serif); font-size: 1.9rem; line-height: 1; font-variant-numeric: lining-nums; }
.etapas li:nth-child(1) b { color: var(--terracota); }
.etapas li:nth-child(2) b { color: var(--oro-texto); }
.etapas li:nth-child(3) b { color: var(--salvia); }
.etapas span { color: var(--texto); }
.aviso-envio { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--terracota-suave); color: #6e3219; font-size: .95rem; }

.preguntas { max-width: 820px; display: grid; gap: 10px; }
.pregunta { background: var(--card); border: 1px solid var(--linea); border-radius: 12px; }
.pregunta summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--miel); font-weight: 400; }
.pregunta[open] summary::after { content: "−"; }
.pregunta p { margin: 0; padding: 0 20px 18px; color: var(--texto-2); }

.pie { background: var(--choco); color: #e9dcc6; padding-block: 44px 110px; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.pie p { margin: 4px 0; font-size: .95rem; }
.pie__tel { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 600; line-height: 1.1; color: var(--miel-claro); text-decoration: none; white-space: nowrap; }
.pie__tel svg { width: .9em; height: .9em; color: #25d366; flex: none; }
.pie__tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.pie small { color: #b9a894; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  background: #1f8f4e; color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 12px 20px 12px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 28px -10px rgba(10, 70, 35, .8);
}
.whatsapp:hover { background: #1b7f45; }
.whatsapp svg { width: 28px; height: 28px; flex-shrink: 0; }
.whatsapp span { transition: max-width .25s ease, opacity .2s; max-width: 260px; overflow: hidden; white-space: nowrap; }
@media (max-width: 600px) {
  .whatsapp.compacto { padding: 12px; gap: 0; }
  .whatsapp.compacto span { max-width: 0; opacity: 0; }
  body.escribiendo .whatsapp { display: none; }
}
@media (max-width: 560px) { .whatsapp { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 10px 14px 10px 10px; font-size: .85rem; } .whatsapp svg { width: 24px; height: 24px; } }

/* ---------- Aviso ---------- */
.aviso {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--choco); color: #fbefd9; padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); font-size: .92rem;
  width: max-content; max-width: calc(100vw - 32px); transition: opacity .25s, transform .25s;
}
.aviso.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.aviso b { color: var(--miel-claro); }

/* ---------- Panel del pedido ---------- */
.velo { position: fixed; inset: 0; background: rgba(35, 20, 12, .45); z-index: 70; opacity: 0; transition: opacity .25s; }
.velo.visible { opacity: 1; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(480px, 100vw); background: var(--marfil);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .4);
  padding-top: env(safe-area-inset-top, 0px);
}
.panel.abierto { transform: translateX(0); }
.panel__cabeza { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--choco); color: #f7ecd9; }
.panel__cabeza h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
.panel__cerrar { background: none; border: 1px solid rgba(236, 208, 141, .4); color: #f7ecd9; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.panel__cuerpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.panel__cuerpo > * { flex-shrink: 0; }
.panel__vacio { text-align: center; padding: 40px 10px; color: var(--texto-2); }
.panel__vacio .boton-agregar { width: auto; padding-inline: 24px; margin-top: 12px; }
.grupo { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.grupo__cabeza { padding: 14px 16px; background: #f8efdd; display: grid; gap: 8px; }
.grupo__titulo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.grupo__titulo h3 { margin: 0; font-size: 1rem; }
.grupo__titulo span { font-size: .9rem; color: var(--texto-2); white-space: nowrap; }
.progreso { height: 8px; border-radius: 999px; background: #eadcc2; overflow: hidden; }
.progreso span { display: block; height: 100%; background: linear-gradient(90deg, var(--miel), #dcae4c); border-radius: 999px; transition: width .3s; }
.grupo__estado { font-size: .88rem; margin: 0; }
.grupo__estado.falta { color: var(--alerta); font-weight: 700; }
.grupo__estado.listo { color: var(--ok); font-weight: 700; }
.lineas { list-style: none; margin: 0; padding: 0; }
.linea { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--linea); }
.linea img { width: 56px; height: 70px; object-fit: contain; background: #f6ead4; border-radius: 8px; }
.linea__codigo { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.linea__detalle { font-size: .82rem; color: var(--texto-2); }
.linea__controles { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.linea__controles button.menos, .linea__controles button.mas { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--linea); background: #fff; cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--oro-texto); }
.linea__controles input { width: 58px; height: 34px; text-align: center; border: 1px solid var(--linea); border-radius: 8px; font-weight: 700; background: #fff; -moz-appearance: textfield; }
.linea__controles input::-webkit-outer-spin-button, .linea__controles input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.linea__quitar { background: none; border: 0; color: var(--alerta); font-size: .82rem; cursor: pointer; text-decoration: underline; padding: 4px; }
.linea__subtotal { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.resumen { background: var(--card); border: 1px solid var(--linea); border-radius: var(--radio); padding: 16px; display: grid; gap: 8px; }
.resumen__fila { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.resumen__total { border-top: 1px solid var(--linea); padding-top: 10px; font-weight: 800; font-size: 1.15rem; }
.resumen__total span:last-child { font-family: var(--serif); font-size: 1.6rem; color: var(--terracota); }
.resumen small { color: var(--texto-2); }
.formulario { display: grid; gap: 12px; }
.formulario h3 { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.campo { display: grid; gap: 4px; }
.campo label { font-weight: 700; font-size: .9rem; }
.campo input, .campo select { height: 48px; border: 1px solid #dccdb2; border-radius: 10px; padding: 0 14px; background: #fff; font-size: 1rem; width: 100%; }
.campo.error input, .campo.error select { border-color: var(--alerta); background: #fff6f2; }
.campo__error { color: var(--alerta); font-size: .82rem; }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .dos-campos { grid-template-columns: 1fr; } }
.bloqueos { margin: 0; padding: 12px 14px; list-style: none; background: #fff3ea; border: 1px solid #f0cdb7; border-radius: 10px; color: var(--alerta); font-size: .9rem; display: grid; gap: 4px; }
.boton-enviar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none;
  background: #1f8f4e; color: #fff; font-weight: 800; font-size: 1.05rem;
}
.boton-enviar svg { width: 24px; height: 24px; }
.boton-enviar[aria-disabled="true"] { background: #b9c3b0; cursor: not-allowed; }
.panel__nota { font-size: .82rem; color: var(--texto-2); margin: 0; text-align: center; }
.boton-seguir { background: none; border: 1px solid var(--linea); border-radius: 10px; height: 46px; cursor: pointer; font-weight: 700; color: var(--texto); }

/* ---------- Visor de imagen ---------- */
.visor { position: fixed; inset: 0; z-index: 90; background: rgba(30, 18, 11, .82); display: grid; place-items: center; padding: 24px 16px; }
.visor figure { margin: 0; background: radial-gradient(70% 60% at 60% 20%, #fff3dc, #f3e4cb); border-radius: 16px; padding: 20px; max-width: min(560px, 100%); width: 100%; position: relative; }
.visor img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.visor figcaption { text-align: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-top: 8px; }
.visor figcaption small { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--texto-2); }
.visor__cerrar { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--choco); color: #fff; font-size: 1.4rem; cursor: pointer; }

body.bloqueado { overflow: hidden; }

/* Formas de pago */
.metodos { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linea); }
.metodos h4 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); }
.metodos__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.metodos__logos svg { display: block; width: 52px; height: 34px; }
.metodos__nota { margin: 10px 0 0; font-size: .95rem; }
.msi { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #f6ecd6; color: var(--oro-texto); font-size: .95rem; }
.portada__msi { margin: 10px auto 0; max-width: 46ch; font-size: .95rem; font-weight: 600; color: #4a3326; text-shadow: 0 0 12px rgba(255, 247, 232, .9); }
.resumen__msi { margin: 10px 0 4px; font-size: .88rem; color: var(--texto-2); }
.resumen__msi--si { color: #2f6b3a; }

/* Productos con foto completa (p. ej. Docenera 2027) */
.tarjeta__foto.tarjeta__foto--completa { background: #f6e7d8; }
.tarjeta__foto.tarjeta__foto--completa::before,
.tarjeta__foto.tarjeta__foto--completa::after { display: none; }
.tarjeta__foto.tarjeta__foto--completa img { inset: 0; height: 100%; object-fit: contain; object-position: center; }
.tarjeta__nombre { grid-column: 1 / -1; display: block; font-weight: 700; font-size: .95rem; color: inherit; margin-top: .1rem; }
.precio:only-child { grid-column: 1 / -1; }
