@font-face { font-family: "DM Sans"; src: url("recursos/dm-normal400.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("recursos/dm-normal700.ttf"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("recursos/instrument-italic400.ttf"); font-style: italic; font-display: swap; }
:root {
  --bg: #f7f6fb; --ink: #262239; --muted: #625d71; --line: #e5e1ee;
  --purple: #5132b6; --plum: #38247d; --lilac: #f0ecfb; --panel: white;
  --radius: 24px;
  font-family: "DM Sans", Arial, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button, a, summary, select { touch-action: manipulation; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #aa5928; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.wrap { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.mast { background: #fcfbfe; border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; align-self: center; justify-self: start; text-decoration: none; color: #2a213c; font-size: 2.12rem; line-height: 1; font-weight: 700; letter-spacing: -.085em; }
.brand-dot { color: var(--purple); }
.wallet { width: 30px; height: 30px; flex-shrink: 0; margin-right: 10px; position: relative; display: inline-block; border-radius: 9px 8px 12px 12px; overflow: hidden; background: #6847d2; transform: rotate(-8deg); }
.wallet::before { content: ''; position: absolute; width: 22px; height: 9px; border-radius: 3px; left: 4px; top: 4px; background: #ffe799; transform: rotate(8deg); }
.wallet::after { content: ''; position: absolute; width: 33px; height: 18px; top: 11px; left: -1px; border-radius: 2px 3px 7px 8px; transform: rotate(9deg); background: linear-gradient(130deg,#9b81e9,#6b4cd1); border-top: 2px solid #5136a9; }
.top-nav { display: inline-flex; padding: 4px; background: #eeecf5; border-radius: 25px; gap: 2px; }
.top-nav a { padding: 8px 18px; border-radius: inherit; color: var(--muted); font-size: .91rem; font-weight: 700; text-decoration: none; }
.top-nav a[aria-current] { background: white; color: var(--plum); box-shadow: 0 1px 4px #33255024; }
.ciudad { display: flex; gap: 7px; align-items: center; justify-self: end; font-size: .93rem; font-weight: 700; }
.ciudad i { width: 11px; height: 11px; border: 2px solid var(--purple); border-radius: 50% 50% 50% 1px; transform: rotate(-45deg); }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 1rem; padding: 29px clamp(22px,4vw,50px); margin-block: 23px 22px; border-radius: 28px; background: linear-gradient(108deg,#3c268c 0%,#5435b4 56%,#7952c4 100%); color: #fffaf4; }
.hero::before { content: ''; position: absolute; inset: -55% -10% -105% 23%; z-index: -1; pointer-events: none; background: repeating-radial-gradient(ellipse at 88% 38%, transparent 0 27px,#e3d3ff26 28px 29px,transparent 30px 36px); transform: rotate(-15deg); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#392584aa 0,transparent 70%); z-index:-1; pointer-events:none; }
.hero-text { min-width: 0; }
.fecha { font-size: .84rem; color: #f0e8ff; display: flex; align-items: center; gap: 8px; }
.fecha::before { content:''; width: 14px; height: 2px; background: #e5c980; }
.hero h1 { margin-top: 15px; font-weight: 400; font-size: 1.22rem; letter-spacing: -.025em; }
.importe-hero { display: flex; align-items: flex-start; gap: 3px; margin-top: -2px; font-variant-numeric: tabular-nums; letter-spacing: -.08em; line-height: 1; }
.importe-hero strong { font-size: clamp(3.75rem,6.5vw,5.75rem); letter-spacing: -.078em; }
.peso { font-size: clamp(2.4rem,4vw,3.75rem); padding-top: .13em; line-height: 1; font-weight: 400; }
.destino { margin-top: 3px; font-size: 1.15rem; }
.ahorro { width: fit-content; max-width: 100%; margin-top: 12px; font-size: .91rem; color: #f4eeff; }
.ahorro b { color: #ffe9a8; }
.hero-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top: 19px; }
.solid-light, .ghost-light, .primary, .secondary { font-weight: 700; font-size: .91rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 43px; border-radius: 14px; }
.solid-light, .ghost-light { padding: 8px 16px; }
.solid-light { background: #ffeeaf; color: #352453; }
.ghost-light { border: 1px solid #ffffff72; color: white; }
.ticket-scene { justify-self: center; width: min(100%,340px); filter: drop-shadow(0 9px 10px #25165140); }
.cab-pase, .compra-pase, .pie-detalle, .linea-detalle { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.abrir-ticket::after { content: ''; position: absolute; inset: 0; }
#ticket:hover .abrir-ticket { text-decoration: underline; text-underline-offset: 3px; }
#ticket .abrir-ticket:focus-visible { outline-offset: -3px; }
.ticket-vacio { margin: 8px 0 20px; }
#ticket { position: relative; isolation: isolate; overflow: hidden; border-radius: 19px; color: #30214e; background: #e9e1fe; padding: 17px 18px 0; mask-image: radial-gradient(circle at left calc(100% - 49px),transparent 0 7px,black 8px),radial-gradient(circle at right calc(100% - 49px),transparent 0 7px,black 8px); mask-composite: intersect; }
.cab-pase { align-items: center; gap: 7px; font-size: .91rem; font-weight: 700; }
.cab-pase .wallet { width: 23px; height: 24px; margin: 0 2px 0 0; }
.cab-pase strong { margin-left: auto; color: #584379; background: #fff9; padding: 3px 9px; border-radius: 12px; font-size: .84rem; }
.total-pase { margin: 22px 0 12px; letter-spacing: -.07em; font-size: clamp(2.1rem,3.5vw,3rem); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.compra-pase { justify-content: flex-start; align-items: center; gap: 10px; color: #594b70; font-size: .9rem; margin: 13px 0 17px; }
.fotos-pase { display: flex; flex-shrink: 0; padding-left: 4px; }
.fotos-pase img { width: 35px; height: 35px; margin-left: -4px; border: 2px solid #e9e1fe; border-radius: 50%; background: white; object-fit: contain; padding: 3px; }
.abrir-ticket { width:100%; background:none; border:0; font-weight:700; font-size:.9rem; border-top: 1px dashed #a08db7; min-height: 49px; text-align: center; color: #503298; }
.linea-detalle, .pie-detalle { padding: 12px 0; border-top: 1px solid var(--line); }
.linea-detalle small { display: block; font-size: .86rem; color: var(--muted); font-weight: 400; }
.linea-detalle strong, .pie-detalle strong { white-space: nowrap; }
.pie-detalle { font-size: 1.22rem; font-weight: 700; padding-bottom: 0; }
.sin-total { font-size: clamp(2.2rem,5vw,4rem); line-height: 1.1; letter-spacing: -.06em; display:block; margin: 6px 0; }
.workspace { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); align-items: start; gap: 20px; }
.card { background: white; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(17px,2.3vw,29px); min-width: 0; box-shadow: 0 5px 20px #39265405; scroll-margin-top: 15px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
h2 { letter-spacing: -.057em; font-size: clamp(1.5rem,2.6vw,2.12rem); line-height: 1.12; }
.kicker { margin-bottom: 6px; font-size: .82rem; color: var(--muted); }
.count { padding: 5px 11px; border-radius: 20px; background: var(--lilac); color: var(--plum); font-size: .87rem; font-weight: 700; white-space: nowrap; }
.item, .pick { display: grid; grid-template-columns: 53px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.miniatura { width: 51px; height: 51px; padding: 5px; overflow:hidden; display:grid; place-items:center; border-radius: 14px; background: #f8f0dd; }
.miniatura[data-rubro="Frescos"] { background: #eff3e6; }
.miniatura[data-rubro="Limpieza"] { background:#eaf0fa; }
.miniatura img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode:multiply; }
.nombre-producto { background: none; padding: 2px 0; text-align: left; border: 0; min-width: 0; }
.nombre-producto:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.nombre-producto strong, .store-name strong { font-size: 1.02rem; line-height: 1.25; display:block; }
.nombre-producto small, .store-name small, .individual a, .individual span { display:block; margin-top: 2px; font-size:.87rem; line-height:1.38; color:var(--muted); }
.pasos { display:flex; align-items:center; border:1px solid var(--line); background: #fbfafe; border-radius: 25px; }
.pasos button { background:none; border:0; min-height:44px; width:37px; border-radius:22px; font-size:1.15rem; color:var(--plum); }
.pasos b { text-align:center; font-size:.91rem; font-variant-numeric:tabular-nums; min-width:14px; }
.primary { width:100%; background:var(--purple); color:white; border:0; padding:12px 16px; margin-top:12px; min-height:47px; }
.primary:hover, .solid-light:hover, .secondary:hover, .pick button:hover { filter:brightness(.95); }
.secondary { min-height:40px; background:var(--lilac); color:var(--plum); border:1px solid #ded7f5; padding:7px 11px; }
.list-tools { display:flex; align-items:center; justify-content:space-between; margin-top:4px; gap:8px; }
.text-button, .otras-ofertas { color:var(--purple); border:0; background:none; padding:10px 0; font-size:.875rem; text-decoration:underline; text-underline-offset:3px; }
.store { border-top:1px solid var(--line); }
.store summary { display:grid; grid-template-columns:60px minmax(0,1fr) auto 9px; align-items:center; gap:11px; padding:10px 6px; min-height:60px; border-radius:10px; }
summary { list-style:none; }
summary::-webkit-details-marker { display:none; }
.store summary::after, .incompletos > summary::after { content:''; width:6px; height:6px; border-bottom:1.5px solid var(--muted); border-right:1.5px solid var(--muted); transform:rotate(45deg); }
details[open] > summary::after { transform:rotate(225deg); }
.store summary:hover { background:var(--bg); }
.store.ganador { border-color:transparent; border-radius:14px; background:#f1f6e9; margin-bottom:4px; }
.store.ganador summary { padding-inline:9px; }
.ganador .store-name small { color:#3f612b; font-weight:700; }
.logo-tienda { width:60px; height:36px; object-fit:contain; padding:3px; background:white; border-radius:8px; flex:none; }
.marca-tienda { display:inline-flex; align-items:center; gap:7px; }
.marca-tienda .logo-tienda { width:44px; height:28px; }
.cab-pase .marca-tienda { background:white; }
.duelo-detalle .marca-tienda { display:inline-grid; justify-items:end; gap:2px; }
.amount { font-size:1.13rem; font-variant-numeric:tabular-nums; letter-spacing:-.035em; white-space:nowrap; }
.individual { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 6px; padding:12px 0; border-top:1px solid var(--line); font-size:.93rem; }
.individual div { min-width:0; overflow-wrap:anywhere; }
.individual b { white-space:nowrap; }
.incompletos { border-block:1px solid var(--line); margin-top:6px; }
.incompletos > summary { color:var(--muted); display:flex; align-items:center; justify-content:space-between; padding:12px 7px; font-size:.9rem; }
.muted, .metodo { color:var(--muted); font-size:.9rem; padding:12px 0; }
.metodo { padding:12px 0 0; }
footer a { color:inherit; text-underline-offset:3px; }
footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:.85rem; color:var(--muted); padding:22px 1px 30px; }
dialog { width:min(500px,calc(100% - 26px)); max-height: min(82dvh,780px); background:white; color:var(--ink); padding:23px; border:1px solid var(--line); border-radius:22px; box-shadow:0 24px 70px #24163f40; }
dialog::backdrop { background:#241c3db8; }
.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:15px; }
.dialog-head h2 { font-size:1.7rem; }
#cerrar, .add-one { min-width:44px; min-height:44px; padding:3px 9px; border:0; color:var(--plum); border-radius:14px; background:var(--lilac); font-size:1.12rem; }
#cerrar { font-size:1.45rem; }
input[type=search], select, textarea { padding:10px 13px; border:1px solid #cfc9dc; border-radius:12px; background:white; max-width:100%; }
input[type=search], textarea { width:100%; min-height:45px; }
textarea { min-height:180px; }
.filtros { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 12px; }
.chip { background:var(--bg); border:1px solid var(--line); font-size:.87rem; padding:7px 10px; border-radius:18px; }
.chip[aria-pressed=true] { background:var(--plum); color:white; border-color:var(--plum); }
.otras-ofertas { display:inline-block; margin-right:15px; }
.duelo-selects { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.duelo-selects label { font-size:.9rem; color:var(--muted); min-width:0; }
.duelo-selects select { display:block; width:100%; margin-top:4px; }
.resultado-duelo { background:#eff5e8; margin:14px 0 7px; padding:12px; border-radius:12px; font-weight:700; }
.duelo-detalle table { width:100%; border-collapse:collapse; font-size:.93rem; }
.duelo-detalle th, .duelo-detalle td { padding:11px 3px; border-bottom:1px solid var(--line); text-align:right; font-variant-numeric:tabular-nums; }
.duelo-detalle th:first-child { text-align:left; }
.duelo-detalle tbody th { font-weight:400; }
.duelo-detalle tfoot, .menor { font-weight:700; }
.menor { color:#3a5e2c; }
#feedback { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); padding:11px 18px; color:white; background:#352651; border-radius:16px; z-index:2; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
@media (max-width:830px) {
  .wrap { width: min(100% - 32px,720px); }
  .workspace { grid-template-columns:1fr; gap:14px; }
  .hero { margin-block:16px; }
  .card { padding:20px; }
}
@media (max-width:580px) {
  .wrap { width:calc(100% - 24px); }
  .mast-inner { grid-template-columns:1fr auto; gap:5px; min-height:60px; }
  .brand { font-size:1.77rem; }
  .wallet { width:26px; height:26px; margin-right:7px; }
  .top-nav a { font-size:.85rem; padding:8px 11px; }
  .ciudad { display:none; }
  .hero { grid-template-columns:minmax(0,1fr); gap:16px; border-radius:22px; padding:18px 15px; }
  .hero h1 { font-size:1.02rem; margin-top:12px; }
  .fecha { font-size:.79rem; gap:5px; }
  .importe-hero strong { font-size:clamp(2.35rem,11.5vw,3.8rem); }
  .peso { font-size:1.8rem; }
  .destino { font-size:.99rem; }
  .ahorro { margin-top:7px; font-size:.88rem; }
  .hero-actions { gap:6px; margin-top:13px; }
  .solid-light, .ghost-light { min-height:40px; padding:7px 10px; font-size:.84rem; border-radius:11px; }
  .card { padding:16px; border-radius:20px; }
  .card-head { margin-bottom:11px; }
  .item, .pick { gap:8px; grid-template-columns:45px minmax(0,1fr) auto; padding-block:10px; }
  .miniatura { width:43px; height:43px; border-radius:11px; }
  .pasos button { width:36px; }
  .store summary { gap:8px; }
  .duelo-detalle table { font-size:.85rem; }
  footer { padding:16px 2px 24px; }
}
@media (max-width:365px) {
  .hero-actions .ghost-light { display:none; }
  .miniatura { width:35px; height:36px; padding:3px; }
  .item, .pick { grid-template-columns:36px minmax(0,1fr) auto; gap:6px; }
  .pasos button { width:30px; }
  .secondary { padding:7px; font-size:.82rem; }
  .store summary { grid-template-columns:44px minmax(0,1fr) auto 7px; }
  .store summary .logo-tienda { width:44px; height:31px; }
}
@media (max-width:580px) {
  .importe-hero.largo strong { font-size:clamp(1.7rem,7.7vw,2.8rem); }
  .importe-hero.largo .peso { font-size:1.25rem; }
  .duelo-detalle td { overflow-wrap:anywhere; }
}

@media (max-width:610px) {
  .hero { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .ticket-scene { width: min(100%,360px); }
  .total-pase { font-size: 2.5rem; }
}
