:root {
  --ink: #151b38;
  --paper: #f9f8ee;
  --lime: #f3f739;
  --line: #b9b9a5;
  --muted: #535969;
  --red: #a5282b;
  --green: #206532;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; min-width: 0; }
button, .hero-action { cursor: pointer; font-weight: 800; }
button:disabled { opacity: .56; cursor: default; }
:focus-visible { outline: 3px solid #3947d5; outline-offset: 4px; }
.hero :focus-visible, .mast :focus-visible, footer :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; z-index: 9; inset: 8px auto auto 12px; background: white; color: var(--ink); padding: 10px 14px; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.mast { background: var(--ink); color: var(--paper); }
.mast-inner { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 1.28rem; font-weight: 750; letter-spacing: -.07em; }
.brand strong { color: var(--lime); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--lime); transform: rotate(-8deg); border-radius: 9px; }
.brand-mark::after { content: ""; height: 20px; width: 15px; background: var(--ink); clip-path: polygon(53% 0, 100% 0, 67% 37%, 96% 37%, 17% 100%, 39% 53%, 5% 53%); }
nav { display: flex; gap: clamp(14px, 3vw, 38px); }
nav a { display: inline-grid; align-items: center; min-height: 44px; text-decoration: none; font-size: .88rem; color: #e6e7f0; font-weight: 650; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.12fr .88fr; margin-block: 28px 66px; min-height: 480px; background: var(--ink); color: var(--paper); border-radius: 24px; overflow: hidden; }
.hero-copy { padding: clamp(28px, 5vw, 68px); align-self: center; }
.hero-category { color: var(--lime); text-transform: uppercase; letter-spacing: .15em; font-size: .73rem; font-weight: 800; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.75rem, 6.2vw, 5.76rem); line-height: .94; margin: 0; letter-spacing: -.084em; text-wrap: balance; }
.hero h1 span { color: var(--lime); }
.hero-copy > p:not(.hero-category) { color: #dbdce9; max-width: 43ch; margin: 24px 0; }
.hero-action { display: inline-flex; text-decoration: none; gap: 22px; justify-content: space-between; align-items: center; padding: 11px 15px; min-height: 46px; background: var(--lime); color: var(--ink); border-radius: 5px; }
.hero-action:hover { background: white; }
.hero-art { display: grid; place-items: center; position: relative; isolation: isolate; min-height: 325px; color: var(--ink); background: radial-gradient(circle at 97% -15%, #fffda4 0 32%, transparent 33%), repeating-linear-gradient(120deg, transparent 0 55px, #51510d18 56px 58px), var(--lime); overflow: hidden; }
.hero-art::before { content: ""; position: absolute; transform: rotate(-18deg); width: 43%; height: 150%; background: #e0ed32; left: -6%; top: -22%; z-index: -1; }
.spark { position: absolute; font-family: Georgia, serif; line-height: 1; }
.spark-top { left: 9%; top: 10%; font-size: clamp(42px, 6vw, 78px); }
.spark-bottom { right: 6%; bottom: 8%; font-size: clamp(34px, 5vw, 63px); }
.example-ticket { position: relative; width: min(236px, 67%); background: #fffef1; padding: 20px; transform: translate(5%, 14%) rotate(-10deg); box-shadow: 13px 16px 0 #171a42aa; font: .75rem/1.5 ui-monospace, "Courier New", monospace; }
.example-ticket > p { font-weight: 900; font-size: 1.08rem; margin: 0 0 14px; letter-spacing: .1em; }
.example-ticket div, .example-ticket strong { display: flex; justify-content: space-between; gap: 6px; }
.example-ticket div + div { margin-top: 3px; }
.example-ticket strong { border-top: 1px dashed var(--ink); margin-top: 12px; padding-top: 9px; font-size: .85rem; }
.barcode { display: block; height: 25px; margin: 14px 5px 0; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 10px, transparent 10px 13px, var(--ink) 13px 14px, transparent 14px 17px); }
.groceries { position: absolute; width: min(270px, 85%); height: 180px; left: 12%; top: 13%; }
.groceries i { display: block; position: absolute; border: 4px solid var(--ink); }
.bag { width: 40%; height: 79%; left: 13%; top: 8%; background: #e6a5e7; transform: rotate(-20deg); border-radius: 10px 14px 30px 17px; background-image: linear-gradient(135deg, #eeb8ec 0 35%, #dc83db 35% 63%, #eeb8ec 63% 70%, #a769d3 71%); }
.bottle { width: 27%; height: 92%; left: 51%; top: 0; border-radius: 31px 31px 19px 19px; background: linear-gradient(#fdf6d9 0 37%, #46882e 38% 68%, #fee995 69%); transform: rotate(16deg); }
.bottle::before { content: ""; width: 52%; height: 14%; position: absolute; left: 24%; top: -12%; background: var(--ink); border-radius: 3px 3px 0 0; }
.orange { width: 29%; aspect-ratio: 1; left: 65%; top: 58%; border-radius: 50%; background: #fa8841; transform: rotate(18deg); }
.orange::after { content: ""; position: absolute; left: 41%; top: -17%; width: 48%; height: 26%; transform: rotate(-16deg); border: 3px solid var(--ink); border-radius: 90% 0; background: #5e9e38; }
.list-area, .catalog { scroll-margin-top: 20px; }
.list-intro { margin-bottom: 22px; }
.list-intro h2 { font-size: clamp(1.95rem, 4vw, 3.4rem); margin: 0; line-height: 1; letter-spacing: -.064em; }
.list-intro p { margin: .65rem 0 0; color: var(--muted); }
.planning { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 24px; align-items: start; }
.entry, .receipt { border: 1px solid var(--line); border-radius: 15px; background: #fffdf6; padding: clamp(15px, 3vw, 30px); }
.entry { display: grid; gap: 24px; }
.entry form + form { padding-top: 20px; border-top: 1px dashed var(--line); }
label { font-weight: 750; }
.entry label { display: block; margin-bottom: 8px; }
input, select, textarea { border: 1px solid #808497; border-radius: 5px; padding: 9px 10px; background: white; }
textarea { width: 100%; min-height: 80px; resize: vertical; display: block; }
button { border-radius: 5px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ink); background: var(--ink); color: white; }
button:hover:not(:disabled) { background: #303960; }
.entry small { color: var(--muted); display: block; margin: 5px 0 9px; }
.manual-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(46px, 66px) 45px; gap: 6px; }
.manual-fields button { font-size: 1.24rem; }
.budget-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; align-items: center; }
.money-input { display: flex; gap: 4px; align-items: center; font-weight: 750; }
.money-input input { width: 94px; min-height: 42px; }
.progress, progress { display: block; width: 100%; margin-top: 11px; accent-color: var(--ink); }
.budget-status, .missing { color: var(--muted); font-size: .82rem; }
.budget-status.over { color: var(--red); font-weight: 750; }
.budget-status.good { color: var(--green); font-weight: 750; }
.status:empty, .budget-status:empty, .missing:empty { display: none; }
.status { font-size: .84rem; color: var(--muted); margin: 9px 0 0; }
.empty { color: var(--muted); font-size: .91rem; margin: 15px 0; }
.basket-row { display: grid; grid-template-columns: minmax(0, 1fr) 53px 83px 40px; align-items: start; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.basket-row p { margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.basket-row a { font-size: .78rem; font-weight: 700; }
.basket-item { overflow-wrap: anywhere; }
.basket-item small { display: block; color: var(--muted); font-size: .73rem; }
.basket-row input { width: 100%; padding: 7px 5px; min-height: 42px; }
.remove { background: transparent; color: var(--ink); border-color: #b7b9c5; font-size: 1.11rem; min-height: 42px; }
.remove:hover:not(:disabled), .link-button:hover:not(:disabled), .outline:hover:not(:disabled) { color: white; }
.receipt-total { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 0; border-top: 2px solid var(--ink); font-weight: 760; }
.receipt-total strong { padding: 2px 5px; font-size: clamp(1.35rem, 3vw, 1.8rem); background: var(--lime); line-height: 1.1; }
.receipt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.link-button, .outline { color: var(--ink); background: transparent; }
#copy-fallback { margin-top: 8px; }
.catalog { margin-block: 70px 62px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.filters label { display: grid; gap: 3px; min-width: min(215px, 100%); }
.filters input, .filters select { min-height: 44px; max-width: 100%; }
.catalog-status { color: var(--muted); margin: 12px 0; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; min-width: 0; position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fffdf6; }
.product img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.product-details { padding: 14px; display: grid; gap: 6px; min-height: 130px; }
.product-details h3 { margin: 0; font-size: 1.13rem; overflow-wrap: anywhere; }
.product-details p { color: var(--muted); margin: 0; font-size: .82rem; }
.product-actions { margin-top: auto; padding: 0 14px 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.product-actions a { min-height: 44px; display: inline-grid; align-items: center; font-size: .88rem; font-weight: 700; }
#more { margin-top: 13px; }
footer { background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; gap: 13px; flex-wrap: wrap; }
.footer-inner span { font-weight: 800; }
.footer-inner a { font-size: .85rem; color: #dce0f4; }
@media(max-width: 940px) {
  .hero { min-height: 405px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 690px) {
  .shell { width: calc(100% - 28px); }
  .mast-inner { min-height: 60px; }
  .hero { grid-template-columns: 1fr; margin: 14px 0 43px; border-radius: 16px; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4.5rem); text-wrap: initial; }
  .hero-copy { padding: 27px 19px; }
  .hero-copy > p:not(.hero-category) { margin-block: 15px 19px; }
  .hero-art { min-height: 247px; }
  .groceries { top: 10%; left: 19%; height: 133px; }
  .example-ticket { width: min(220px, 70%); transform: translate(6%, 9%) rotate(-8deg); padding: 13px; }
  .planning { grid-template-columns: 1fr; gap: 12px; }
  .catalog { margin-block: 48px; }
}
@media(max-width: 410px) {
  .brand { font-size: 1.16rem; gap: 7px; }
  .brand-mark { width: 25px; height: 25px; }
  nav { gap: 12px; }
  nav a { font-size: .76rem; }
  .basket-row { grid-template-columns: minmax(0, 1fr) 47px 64px 35px; gap: 5px; }
  .basket-row p { font-size: .88rem; }
  .products { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.enlaces-editoriales { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: center; }
.enlaces-editoriales a { color: inherit; padding-block: .35rem; text-decoration: underline; text-underline-offset: .2em; }
.red-ecosistema { margin: 2.5rem 0 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #c9ccda; border-radius: 1rem; background: #fff; color: #161b33; overflow-wrap: anywhere; }
.vitrina-kicker { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #26398a; }
.red-ecosistema h2 { margin: .25rem 0 .5rem; font-size: clamp(1.3rem, 2.5vw, 1.65rem); line-height: 1.2; }
.vitrina-lead { margin: 0 0 1.15rem; max-width: 72ch; color: #3d445c; }
.vitrina-lead a, .vitrina-sublinks a { color: #26398a; font-weight: 700; text-underline-offset: .2em; }
.vitrina-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: .85rem; }
.vitrina-card { min-width: 0; padding: 1rem 1.1rem; border: 1px solid #d7dae6; border-top: 4px solid #697800; border-radius: .85rem; background: #f8f6ef; display: flex; flex-direction: column; gap: .48rem; }
.vitrina-card.is-featured { border-color: #26398a; border-top-width: 4px; background: #fdfdf7; }
.vitrina-tag { align-self: flex-start; padding: .18rem .55rem; border-radius: 999px; background: #e9ecd8; color: #2b3500; font-size: .73rem; font-weight: 800; }
.vitrina-card.is-featured .vitrina-tag { background: #e3f33e; color: #161b33; }
.vitrina-card h3 { margin: 0; font-size: 1.04rem; line-height: 1.28; }
.vitrina-card h3 a { color: #161b33; font-weight: 800; text-underline-offset: .2em; }
.vitrina-desc { margin: 0; font-size: .9rem; color: #3d445c; }
.vitrina-benefits { margin: 0 0 auto; padding-inline-start: 1.15rem; font-size: .85rem; color: #1d233d; display: grid; gap: .22rem; }
.vitrina-bono { margin: .35rem 0 0; padding: .58rem .72rem; border: 1px dashed #9aa36f; border-radius: .65rem; background: #fff; font-size: .84rem; line-height: 1.4; color: #161b33; }
.vitrina-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .7rem; margin-top: .25rem; }
.vitrina-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .48rem .88rem; border-radius: .65rem; background: #181d38; color: #fff; font-weight: 750; font-size: .86rem; text-decoration: none; }
.vitrina-card.is-featured .vitrina-cta { background: #e3f33e; color: #161b33; border: 1px solid #181d38; }
.vitrina-sublinks { font-size: .8rem; }
.vitrina-restringida { margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed #b9bfcf; border-radius: .8rem; background: #fbfaf5; }
.vitrina-restringida-summary { cursor: pointer; font-weight: 750; font-size: .88rem; color: #3d445c; }
.vitrina-adult-note { margin: .5rem 0 .8rem; font-size: .83rem; color: #4a516b; }
