:root {
  --azul: #173eab;
  --tinta: #19274a;
  --suave: #506079;
  --hielo: #edf3fb;
  --borde: #d5dfeb;
  --verde: #196447;
  --alerta: #9e3029;
  --reserva-insignia: 0px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--tinta);
  background: #fff;
  color-scheme: light;
  line-height: 1.45;
}
* { box-sizing: border-box; }
[hidden], .simbolos { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block: 12px; }
body { margin: 0; padding-bottom: calc(var(--reserva-insignia) + env(safe-area-inset-bottom)); }
/* En producción el marco de Netlify ocupa los 64 px inferiores. */
body:has(#nl-badge-frame) { --reserva-insignia: 68px; }
body:has(.barra:not([hidden])) { padding-bottom: calc(100px + var(--reserva-insignia) + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, .opcion, .dia { -webkit-tap-highlight-color: transparent; cursor: pointer; }
button:disabled, label:has(input:disabled) { cursor: default; }
button, a { touch-action: manipulation; }
a { color: var(--azul); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
button, fieldset { border: 0; }
:focus-visible { outline: 3px solid #295cca; outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.oculto, .salto:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salto:focus { position: absolute; z-index: 5; padding: 12px 20px; background: #fff; }
.icono { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ancho { width: min(1152px, calc(100% - 36px)); margin-inline: auto; }
.franja-envio { min-height: 33px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--azul); color: #fff; padding: 5px 8px; text-align: center; font-size: .76rem; }
.franja-envio .icono { width: 17px; height: 17px; }
.separador { margin-inline: 2px; }
.cabecera { background: #fff; border-bottom: 1px solid #dde6f2; }
.cabecera-interior, .cabecera nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cabecera-interior { min-height: 67px; }
.logo { min-height: 44px; display: inline-flex; align-items: center; }
.logo img { width: 146px; height: auto; }
.nav-seccion { display: none; }
.pedido-cabecera, .boton, .volver, .pie a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 650; text-decoration: none; }
.pedido-cabecera { white-space: nowrap; border: 1px solid var(--borde); border-radius: 8px; background: #fff; color: var(--azul); padding: 0 10px; font-size: .86rem; }
.pedido-cabecera .icono { width: 18px; height: 18px; }
#unidades-pedido { min-width: 21px; padding: 1px 5px; background: var(--hielo); color: var(--azul); border-radius: 20px; font-size: .77rem; text-align: center; }
.boton { min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; background: var(--azul); color: #fff; font-size: .95rem; line-height: 1.2; }
.boton .icono { width: 18px; height: 18px; }
.boton:disabled { opacity: .6; }
.portada { overflow: hidden; background: linear-gradient(108deg,#f1f6fc 0%,#eaf2fc 55%,#dce9fa 100%); }
.portada-interior { position: relative; isolation: isolate; min-height: 319px; padding: 24px 0 30px; }
.presentacion { position: relative; z-index: 1; pointer-events: none; }
.presentacion a { pointer-events: auto; }
.presentacion h1 { font-size: clamp(2.35rem,10.4vw,3.4rem); font-weight: 725; letter-spacing: -.055em; }
.presentacion em { font: italic 1.14em/.94 Georgia, "Times New Roman", serif; letter-spacing: -.055em; color: var(--azul); }
.presentacion p { max-width: 285px; margin-top: 13px; color: #354663; font-size: .96rem; line-height: 1.45; }
.presentacion p strong { font-weight: 650; }
.presentacion .boton { margin-top: 18px; }
.escena { position: absolute; bottom: 0; right: -18px; width: 60%; aspect-ratio: 1.49; isolation: isolate; pointer-events: none; }
.arco { position: absolute; z-index: -2; inset: 0 6% -21% 9%; border-radius: 50% 50% 0 0; background: linear-gradient(135deg,#cfdef5,#b6d1f2 72%,#a8c6e9); }
.arco::before { content: ""; position: absolute; inset: -6% -5% 0; border: 1px solid #a9c3e5; border-radius: inherit; }
.tarima { position: absolute; left: 2%; right: -5%; height: 22%; bottom: -2%; border-radius: 50% / 38%; background: linear-gradient(90deg,#91b3df,#b1ccea 63%,#82a6d6); }
.tarima::before { content: ""; position: absolute; top: -2%; left: 0; width: 100%; height: 70%; border-radius: 50%; background: linear-gradient(110deg,#f6faff,#d2e3f7 72%); }
.tarima::after { content: ""; position: absolute; inset: 7% 15% 35%; background: radial-gradient(ellipse,#758fb363 0%,transparent 70%); }
.bodegon { position: absolute; object-fit: contain; width: auto; max-width: none; }
.papel { height: 58%; left: 9%; bottom: 16%; transform: rotate(-5deg); }
.detergente { height: 90%; right: 13%; bottom: 14%; transform: rotate(6deg); }
.esponjas { width: 34%; height: auto; left: 33%; bottom: 5.8%; transform: rotate(-4deg); }
.destello { position: absolute; width: 5.5%; aspect-ratio: 1; color: #fff; }
.destello::before, .destello::after { content: ""; position: absolute; background: currentColor; inset: 0 44%; border-radius: 100%; }
.destello::after { transform: rotate(90deg); }
.destello-grande { top: 7%; left: 23%; transform: rotate(9deg); }
.destello-chico { width: 3.7%; top: 27%; right: 3%; color: #799ecf; }
.servicios { padding-block: 15px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--borde); }
.servicios > div { display: flex; gap: 8px; padding-right: 10px; }
.servicios > div + div { border-left: 1px solid var(--borde); padding-left: 13px; padding-right: 0; }
.servicios .icono { width: 18px; height: 18px; color: var(--azul); margin-top: 2px; }
.servicios p { min-width: 0; }
.servicios strong, .servicios span { display: block; }
.servicios strong { font-size: .82rem; line-height: 1.25; }
.servicios span { margin-top: 4px; color: var(--suave); font-size: .83rem; line-height: 1.36; }
.servicios .tramo { display: inline-block; margin: 0; white-space: nowrap; }
.catalogo { padding-block: 24px 40px; scroll-margin-top: 8px; }
.cabecera-catalogo, .titulo-catalogo { display: flex; align-items: center; gap: 12px; }
.cabecera-catalogo { flex-wrap: wrap; justify-content: space-between; }
.titulo-catalogo { align-items: baseline; }
.titulo-catalogo h2, .pagina-pedido h1 { font-size: clamp(1.9rem,4vw,2.8rem); font-weight: 720; letter-spacing: -.055em; }
#conteo { font-size: .83rem; color: var(--suave); }
.buscador { position: relative; display: flex; align-items: center; width: 100%; }
.buscador > .icono { position: absolute; left: 13px; color: var(--suave); }
input:not([type="radio"]), select, textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #aab9cc; border-radius: 8px; background: #fff; padding: 9px 12px; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #596880; opacity: 1; }
input#buscar { padding: 9px 46px 9px 42px; border-color: #b8c6d7; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
#limpiar-busqueda { position: absolute; right: 1px; width: 44px; height: 44px; font-size: 1.45rem; color: var(--azul); background: transparent; border-radius: 8px; }
.canasta { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 5px 9px 5px 8px; border: 1px solid #ccdbf0; border-radius: 10px; background: #f1f6fd; }
.canasta details { flex: 1; min-width: 0; }
.canasta summary { display: flex; align-items: center; gap: 8px; min-height: 48px; list-style: none; }
.canasta summary::-webkit-details-marker { display: none; }
.canasta summary > .icono:first-child { width: 21px; height: 21px; color: var(--azul); }
.canasta summary > .icono:last-child { width: 15px; height: 15px; color: var(--azul); }
.canasta details[open] summary > .icono:last-child { transform: rotate(180deg); }
.canasta summary strong, .canasta summary small { display: block; }
.canasta summary strong { font-size: .91rem; }
.canasta summary small { font-size: .77rem; color: var(--suave); }
.canasta ul { padding: 0; margin: 0 0 8px; list-style: none; }
.canasta li { display: flex; gap: 8px; justify-content: space-between; border-top: 1px solid var(--borde); padding: 7px 0; font-size: .85rem; }
.canasta li span:last-child { white-space: nowrap; }
.canasta .boton { align-self: start; min-height: 44px; margin-top: 2px; padding: 6px 10px; background: #fff; border-color: #acbfe0; color: var(--azul); font-size: .8rem; }
.productos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.producto { min-width: 0; border: 1px solid var(--borde); border-radius: 12px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.foto { position: relative; display: grid; place-items: center; aspect-ratio: 1.32; background: #fff; overflow: hidden; border-bottom: 1px solid #e9eef4; }
.foto img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 5px; }
.foto.recorte { background: linear-gradient(145deg,#f7f9fc,#eaf0f7); }
.foto.recorte img { padding: 10px 14px; }
.sin-foto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #f2f5f9; color: var(--suave); font-size: .78rem; }
.sin-foto .icono { width: 30px; height: 30px; color: #798ba7; stroke-width: 1.25; }
.info-producto { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 11px; }
.producto .nombre { font-size: .98rem; line-height: 1.32; font-weight: 600; overflow-wrap: anywhere; }
.producto .desc { font-size: .82rem; color: var(--suave); overflow-wrap: anywhere; }
.precio { margin-top: auto; font-size: 1.27rem; font-weight: 740; line-height: 1.25; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.agregar, .cantidad { min-height: 44px; border: 1px solid #b5c8e8; border-radius: 7px; color: var(--azul); background: #f2f6fd; }
.agregar { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; font-weight: 650; font-size: .88rem; }
.agregar::before { content: "+"; font-size: 1.27rem; font-weight: 400; line-height: 1; }
.cantidad { display: inline-flex; align-items: center; justify-content: space-between; }
.producto .cantidad { width: 100%; }
.cantidad button { background: transparent; border-radius: 6px; color: var(--azul); padding: 0; min-width: 44px; min-height: 44px; font-size: 1.3rem; }
.cantidad button:disabled { color: #758399; }
.cantidad output { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.agotado { display: grid; place-items: center; min-height: 44px; background: #f1f3f6; border-radius: 7px; color: var(--suave); font-weight: 600; font-size: .84rem; }
.sin-stock .precio { color: var(--suave); }
.pie { border-top: 1px solid var(--borde); }
.pie > div { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.pie img { width: 110px; height: auto; }
.pie a { font-size: .85rem; }

.barra { position: fixed; z-index: 3; bottom: calc(var(--reserva-insignia) + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left)); color: #fff; background: #182e60; box-shadow: 0 -3px 16px #17274926; }
.barra .boton { flex: none; background: #fff; color: var(--azul); padding: 9px 13px; }
.barra-texto { display: grid; gap: 2px; }
.barra-texto strong { font-size: 1rem; }
.barra-texto small { font-size: .78rem; color: #dfebff; line-height: 1.3; }
.pagina-pedido, .pagina-listo { padding-block: 14px 50px; }
.pagina-listo { width: min(610px, calc(100% - 36px)); margin: 8px auto 0; }
.volver { padding: 0; background: transparent; color: var(--azul); font-size: .9rem; }
.volver .icono { width: 17px; }
.pagina-pedido h1 { margin: 4px 0 18px; }
.pedido-columnas, form { display: grid; align-items: start; gap: 14px; min-width: 0; }
.panel, .listo { min-width: 0; border: 1px solid var(--borde); border-radius: 12px; background: #fff; padding: 18px; }
.panel h2, .listo h2 { font-size: 1.23rem; font-weight: 700; letter-spacing: -.032em; margin-bottom: 14px; }
.linea { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--borde); }
.linea .nombre { overflow-wrap: anywhere; font-size: .96rem; line-height: 1.32; }
.linea > strong { white-space: nowrap; }
.controles-linea { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.controles-linea .cantidad { min-width: 111px; }
.sub, .muted, .letra-chica { color: var(--suave); font-weight: 400; }
.sub, .quitar { font-size: .8rem; }
.quitar { min-height: 44px; min-width: 44px; cursor: pointer; margin-left: auto; background: transparent; color: var(--suave); text-decoration: underline; }
.falta { margin: 15px 0; padding: 12px; border-radius: 8px; background: var(--hielo); color: var(--azul); font-size: .9rem; font-weight: 600; }
.falta > span { display: flex; align-items: center; gap: 8px; }
.falta .icono { width: 18px; height: 18px; }
progress { display: block; appearance: none; width: 100%; height: 5px; margin: 9px 0 0; border: 0; border-radius: 9px; overflow: hidden; color: var(--azul); background: #ccdaee; }
progress::-webkit-progress-bar { background: #ccdaee; }
progress::-webkit-progress-value { background: var(--azul); border-radius: 9px; }
progress::-moz-progress-bar { background: var(--azul); }
.totales { display: grid; gap: 5px; margin-top: 14px; }
.totales > div { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; }
.totales .total { margin-top: 5px; padding-top: 8px; border-top: 1px solid var(--borde); font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; }
form label:not(.opcion,.dia) { display: block; margin: 14px 0 5px; font-size: .94rem; font-weight: 650; }
select:disabled { color: var(--suave); opacity: 1; background: #f4f6f9; }
textarea { display: block; resize: vertical; }
.opciones, .dias { display: grid; gap: 8px; }
.opcion, .dia { display: flex; align-items: center; gap: 9px; min-height: 48px; margin: 0; padding: 9px 10px; border: 1px solid #becbdc; border-radius: 8px; }
.opcion input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: var(--azul); }
.opcion strong, .opcion small { display: block; }
.opcion strong { font-size: .93rem; }
.opcion small, .dia small { font-size: .81rem; color: var(--suave); }
.opcion:has(input:checked), .dia:has(input:checked) { border-color: var(--azul); background: #eff5ff; color: var(--azul); }
.opcion:has(input:focus-visible), .dia:has(input:focus-visible) { outline: 3px solid #295cca; outline-offset: 2px; }
.opciones-fila { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; }
.opciones-fila strong { font-size: .86rem; }
.dias { grid-template-columns: repeat(4,minmax(0,1fr)); }
.dia { position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 2px; font-size: .9rem; }
.dia input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.opcion:has(input:disabled), .dia:has(input:disabled) { color: #68758a; background: #f3f5f8; border-style: dashed; }
.aviso { padding: 12px; border-radius: 8px; background: var(--hielo); font-size: .92rem; margin-block: 12px; overflow-wrap: anywhere; }
.aviso-alerta { color: var(--alerta); background: #fff0ed; }
.aviso-ok { color: var(--verde); background: #edf7f2; }
.aviso a { display: inline-flex; align-items: center; min-height: 44px; }
[aria-invalid="true"] { border-color: var(--alerta) !important; }
.productos > .aviso { grid-column: 1 / -1; }
.boton-grande { width: 100%; min-height: 50px; margin-top: 12px; }
.letra-chica { margin-top: 9px; text-align: center; font-size: .82rem; }
.vacio p { margin-block: 12px; color: var(--suave); }

.recibo-titulo { display: flex; gap: 14px; align-items: center; }
.recibo-icono { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: var(--azul); background: var(--hielo); flex: none; }
.recibo-icono .icono { width: 23px; height: 23px; }
.recibo-titulo h1 { font-size: clamp(1.5rem,5vw,2.15rem); letter-spacing: -.047em; }
.numero { color: var(--azul); font-weight: 680; margin-top: 4px; }
.listo .entrega-lista { margin: 15px 0 10px; }
.listo .entrega-lista span { display: block; color: var(--suave); }
.listo .transferencia { padding: 14px; border-left: 3px solid var(--azul); }
.transferencia dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 14px; margin: 10px 0; }
.transferencia dt { color: var(--suave); }
.transferencia dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.acciones { display: grid; gap: 6px; margin-top: 16px; }
.boton-sec { border-color: #b5c8e8; background: #f4f7fc; color: var(--azul); }
.acciones .volver { margin: 0 auto; }
.nota-despacho { margin: 4px 0 2px; color: var(--suave); font-size: .9rem; line-height: 1.45; }
/* Botón flotante de WhatsApp: abajo a la derecha, sobre la insignia de Netlify y sobre la barra del carrito. */
.wa-flotante { position: fixed; z-index: 4; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + var(--reserva-insignia) + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 4px 12px #00000040; text-decoration: none; transition: transform .15s ease, bottom .2s ease; }
.wa-flotante .icono { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.wa-flotante:focus-visible { outline: 3px solid #0f5f33; outline-offset: 3px; }
/* En el formulario de pedido el botón de WhatsApp se oculta para no tapar «Hacer pedido». */
body:has(#vista-pedido:not([hidden])) .wa-flotante { display: none; }
body:has(.barra:not([hidden])) .wa-flotante { bottom: calc(96px + var(--reserva-insignia) + env(safe-area-inset-bottom)); }
@media (hover: hover) {
  .wa-flotante:hover { transform: scale(1.06); }
  .boton:hover:not(:disabled) { background: #10338d; color: #fff; }
  .agregar:hover, .cantidad button:not(:disabled):hover, .pedido-cabecera:hover { background: #e2ecfc; }
  .volver:hover, .nav-seccion:hover, .pie a:hover { text-decoration: underline; }
}
@media (min-width: 540px) {
  .ancho { width: min(1152px, calc(100% - 64px)); }
  .portada-interior { min-height: 285px; display: flex; align-items: center; padding-block: 30px; }
  .presentacion { max-width: 55%; }
  .presentacion h1 { font-size: clamp(2.4rem,5.8vw,4.65rem); }
  .presentacion p { max-width: 320px; }
  .escena { right: -1%; width: 49%; max-height: 92%; aspect-ratio: 1.58; }
  .servicios { padding-block: 19px; }
  .servicios > div { align-items: center; gap: 12px; }
  .servicios > div + div { padding-left: 28px; }
  .servicios .icono { width: 23px; height: 23px; }
  .servicios strong { font-size: .95rem; }
  .servicios span { font-size: .83rem; }
  .productos { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .buscador { width: min(45%,330px); }
  .canasta { gap: 18px; padding-inline: 15px; }
  .canasta summary { gap: 11px; }
  .canasta summary strong, .canasta summary small { display: inline; }
  .canasta summary small { margin-left: 10px; }
  .canasta .boton { font-size: .88rem; padding-inline: 15px; }
  .barra { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(12px + var(--reserva-insignia) + env(safe-area-inset-bottom)); width: min(570px,calc(100% - 36px)); border-radius: 12px; padding: 10px 12px 10px 20px; }
  .panel, .listo { padding: 24px; }
}
@media (min-width: 800px) {
  .ancho { width: min(1152px, calc(100% - 96px)); }
  .franja-envio { min-height: 32px; font-size: .81rem; }
  .cabecera-interior { min-height: 76px; }
  .logo img { width: 170px; }
  .cabecera nav { gap: 28px; }
  .nav-seccion { display: inline-flex; align-items: center; min-height: 44px; font-size: .93rem; font-weight: 600; text-decoration: none; color: var(--tinta); }
  .pedido-cabecera { padding-inline: 14px; }
  .portada-interior { min-height: clamp(310px,28vw,383px); }
  .presentacion h1 { line-height: 1.02; }
  .presentacion p { max-width: 390px; margin-top: 16px; font-size: 1.06rem; }
  .presentacion .boton { padding-inline: 21px; margin-top: 20px; }
  .escena { width: min(49%,520px); right: 2%; }
  .servicios { padding-block: 17px; }
  .servicios > div { padding-left: 10px; gap: 14px; }
  .servicios > div + div { padding-left: 34px; }
  .servicios p { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; }
  .servicios span { margin-top: 0; }
  .catalogo { padding-block: 30px 54px; }
  .productos { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
  .foto { aspect-ratio: 1.52; }
  .info-producto { padding: 15px; gap: 9px; }
  .precio { font-size: 1.43rem; }
  .pagina-pedido { max-width: 1050px; }
  .pedido-columnas { grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: 24px; }
  .resumen { position: sticky; top: 16px; }
  .pagina-listo { padding-top: 24px; }
}
@media (max-width: 359px) {
  .ancho { width: calc(100% - 26px); }
  .franja-envio { font-size: .7rem; gap: 4px; }
  .portada-interior { min-height: 318px; }
  .canasta summary { gap: 4px; }
  .canasta summary > .icono:first-child { display: none; }
  .servicios > div { gap: 5px; }
}
