@font-face {
  font-family: Archivo;
  src: url("?asset=archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Archivo, Arial, sans-serif;
  --paper: #fbf7f0;
  --card: #fffdf8;
  --ink: #382438;
  --muted: #665363;
  --accent: #b5005e;
  --accent-deep: #90004a;
  --line: #e4d8da;
  --rose: #f4e5ee;
  --gold: #f8e8ba;
  --motion: 500ms;
  --ease: cubic-bezier(.2, .75, .25, 1);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, ul { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #f2c7de; color: var(--ink); }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.symbols, .sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 9; top: 12px; left: 12px; padding: 12px; background: var(--card); }
.shell { width: min(100% - 64px, 1320px); margin-inline: auto; }

body { min-height: 100svh; padding-bottom: calc(51px + env(safe-area-inset-bottom)); }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-grid { display: grid; grid-template-columns: auto minmax(140px, 1fr) auto; align-items: center; gap: clamp(14px, 2vw, 28px); min-height: 76px; }
.header-actions { display: flex; gap: clamp(10px, 1.5vw, 20px); align-items: center; }
.brand { display: inline-flex; align-items: center; text-decoration: none; gap: 11px; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span { font-size: 12px; line-height: 1.15; font-weight: 650; }
.brand strong { display: block; font-size: 19px; font-weight: 820; }
.search { display: flex; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.search:focus-within { border-color: var(--accent); }
.search input { min-width: 0; width: 100%; padding: 0 14px; color: var(--ink); background: transparent; border: none; outline: none; caret-color: var(--accent); }
.search input::placeholder { color: var(--muted); }
.search button, .delivery-link, .cart-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.search button, .delivery-link { border: 0; background: transparent; color: var(--accent-deep); }
.search button { padding: 0 14px; }
.delivery-link, .cart-button { min-height: 44px; white-space: nowrap; font-weight: 720; font-size: 14px; }
.delivery-link { padding: 4px 2px; }
.header-actions a { text-decoration: none; }
.header-actions [aria-current="page"] { text-decoration: underline; }
.delivery-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-button { padding: 5px 10px 5px 13px; border: 1px solid transparent; border-radius: 9px; background: var(--rose); color: var(--accent-deep); }
.cart-button:hover { border-color: var(--accent); }
.cart-count { display: grid; min-width: 26px; height: 26px; padding-inline: 5px; place-items: center; border-radius: 20px; background: var(--accent); color: #fff; font-size: 12px; }
.departments { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding-bottom: 9px; }
.dept { display: grid; place-items: center; min-height: 45px; padding: 5px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 680; line-height: 1.16; }
.dept:hover, .dept[aria-current="page"] { color: var(--accent-deep); background: var(--rose); border-color: var(--accent); }
.dept:focus-visible { outline-offset: -3px; }

.campaigns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding-top: 24px; }
.campaigns .page-title { grid-column: 1 / -1; margin-bottom: 0; }
.campaign { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); min-height: clamp(160px, 16vw, 228px); overflow: hidden; border-radius: 14px; color: var(--ink); background: var(--rose); text-decoration: none; }
.campaign-bebidas { background: #e9edf1; }
.campaign-golosinas { background: var(--gold); }
.campaign-limpieza { background: #e8eee6; }
.campaign-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px clamp(14px, 2.2vw, 32px); }
.campaign-copy h2 { max-width: 15ch; font-size: clamp(23px, 2.8vw, 40px); font-weight: 850; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.campaign-copy p { margin-top: 8px; color: var(--muted); font-size: clamp(13px, 1.4vw, 17px); line-height: 1.3; }
.campaign-copy span { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; color: var(--accent-deep); font-weight: 780; }
.campaign:hover .campaign-copy span, .campaign:focus-visible .campaign-copy span { text-decoration: underline; }
.campaign-copy svg { width: 17px; }
.campaign-art { position: relative; min-width: 0; }
.campaign-art img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 63% center; }

.shop { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 24px; padding: 24px 0 44px; }
.category-panel { overflow: hidden; padding: 0 10px 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.category-panel h2 { display: flex; align-items: center; gap: 7px; padding: 13px 5px; font-weight: 800; font-size: 17px; border-bottom: 1px solid var(--line); }
.category-panel h2 svg { width: 17px; color: var(--accent-deep); }
.category-panel nav { display: grid; gap: 2px; padding-top: 8px; }
.category-panel button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px; min-height: 39px; padding: 8px 9px; border-radius: 6px; border: 0; text-align: left; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.2; }
.category-panel button:hover, .category-panel [aria-pressed="true"] { background: var(--rose); color: var(--accent-deep); font-weight: 720; }
.category-meta { display: inline-flex; align-items: center; gap: 4px; }
.category-meta svg { width: 14px; height: 14px; transition: transform var(--motion) var(--ease); }
.category-panel [aria-expanded="true"] svg { transform: rotate(180deg); }
.category-total { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.category-children { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--motion) var(--ease), opacity var(--motion) var(--ease); }
.category-children:not([inert]) { grid-template-rows: 1fr; opacity: 1; }
.category-children > div { overflow: hidden; min-height: 0; }
.category-children button { min-height: 34px; padding-left: 18px; font-size: 12px; }
.subcategory-wrap { display: none; }
.catalog { min-width: 0; }
.offers { padding: 25px 0 28px; }
.offers .product[id] { scroll-margin-top: 150px; }
.offers .product:target { border-color: var(--accent); }
.catalog-path { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 0 0 13px; }
.catalog-head :is(h1, h2) { font-size: clamp(24px, 2.35vw, 32px); line-height: 1.1; letter-spacing: -.025em; font-weight: 820; }
.catalog-head p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.sort { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; color: var(--muted); }
.sort select { max-width: 158px; min-height: 39px; padding: 6px 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; }
.dropdown { position: relative; min-width: 0; }
.dropdown-trigger { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); text-align: left; }
.dropdown-trigger svg, .dropdown-option svg { width: 16px; height: 16px; color: var(--accent-deep); }
.dropdown-trigger svg { transition: transform var(--motion) var(--ease); }
.dropdown-trigger:hover, .dropdown-trigger[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-deep); }
.dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown-list { position: absolute; z-index: 7; inset: calc(100% + 6px) 0 auto; padding: 5px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 11px; background: var(--card); box-shadow: 0 8px 22px #38243824; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--motion) var(--ease), visibility 0s linear var(--motion); }
.dropdown.opens-up .dropdown-list { inset: auto 0 calc(100% + 6px); }
.dropdown-trigger[aria-expanded="true"] + .dropdown-list { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.dropdown-option { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 7px; padding: 8px; border-radius: 7px; color: var(--ink); cursor: pointer; line-height: 1.25; }
.dropdown-option svg { visibility: hidden; }
.dropdown-option[aria-selected="true"] { background: var(--rose); color: var(--accent-deep); font-weight: 720; }
.dropdown-option[aria-selected="true"] svg { visibility: visible; }
.dropdown-option.highlighted, .dropdown-option:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-deep); }
.sort .dropdown { width: 154px; }
.sort .dropdown-option { white-space: normal; }
.product-area { position: relative; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.offers-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.products-outgoing { position: absolute; inset: 0 0 auto; z-index: 1; pointer-events: none; }
.product { display: flex; flex-direction: column; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.product:hover, .product:focus-within { border-color: #cc9eb8; }
.product-photo { display: grid; position: relative; place-items: center; overflow: hidden; height: clamp(112px, 11vw, 160px); border-radius: 7px; background: #fff; }
.product-photo img { position: absolute; inset: 0; margin: auto; width: min(90%, 180px); height: min(92%, 152px); object-fit: contain; }
.product-photo > svg { width: 38px; height: 38px; color: var(--muted); }
.product-photo .age { position: absolute; top: 6px; left: 6px; padding: 4px 6px; border-radius: 4px; color: var(--ink); background: var(--gold); font-size: 11px; font-weight: 760; }
.deal-tag { position: absolute; top: 7px; left: 7px; padding: 4px 6px; border-radius: 5px; background: var(--accent-deep); color: white; font-size: 12px; font-weight: 800; }
.favorite { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 7px; background: var(--card); color: var(--accent-deep); }
.favorite:hover, .favorite[aria-pressed="true"] { background: var(--rose); }
.favorite[aria-pressed="true"] svg { fill: currentColor; }
.favorite:focus-visible { outline-offset: -2px; }
.product h3 { min-height: 2.5em; margin: 4px 0 7px; font-size: 14px; font-weight: 680; line-height: 1.24; }
.product-family { margin-top: 9px; min-height: 1.2em; color: var(--muted); font-size: 11px; line-height: 1.2; }
.price { margin-top: auto; color: var(--ink); font-size: 23px; letter-spacing: -.025em; font-weight: 820; font-variant-numeric: tabular-nums; }
.price del { display: inline-block; color: var(--muted); font-size: 12px; font-weight: 550; letter-spacing: 0; }
.unit-price { min-height: 1.4em; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.primary, .secondary, .add, .stepper button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 8px; font-weight: 760; text-decoration: none; }
.secondary { background: transparent; color: var(--accent-deep); }
.add { background: var(--rose); border-color: transparent; color: var(--accent-deep); }
.add svg { width: 16px; height: 16px; }
.primary, .add:hover, .secondary:hover { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-deep); }
.add:disabled { color: var(--muted); border-color: var(--line); background: var(--paper); }
.product-actions { display: grid; margin-top: 9px; }
.stepper { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; min-height: 40px; overflow: hidden; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent-deep); font-weight: 780; text-align: center; }
.stepper button { border: 0; min-height: 38px; padding-inline: 5px; border-radius: 0; background: var(--rose); color: inherit; font-size: 20px; }
.stepper button:hover { background: #f1cfe3; }
.more { display: flex; margin: 24px auto 0; }
.empty { margin: 12px 0; padding: 13px 16px; border-radius: 8px; color: var(--muted); background: var(--rose); }

.site-footer { position: fixed; inset: auto 0 0; z-index: 5; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 49px; color: var(--muted); font-size: 13px; }
.footer-inner strong { color: var(--ink); }
.footer-inner nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
[data-page="cuenta"] main, [data-page="carrito"] main, [data-page="cobertura"] main { padding-block: 30px 36px; }
.page-title { margin-bottom: 20px; font-size: clamp(28px, 4vw, 42px); font-weight: 840; line-height: 1.05; letter-spacing: -.035em; }
.page-intro { max-width: 48ch; color: var(--muted); line-height: 1.45; }
.cart-layout, .account-layout, .coverage-layout { display: grid; align-items: start; gap: 26px; }
.cart-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); }
.account-layout { grid-template-columns: 216px minmax(0, 1fr); }
.coverage-layout { grid-template-columns: minmax(0, 42.42%) minmax(0, 1fr); }
.coverage-map { display: grid; justify-items: start; gap: 10px; }
.coverage-map img { display: block; width: 100%; height: auto; border-radius: 12px; }
.coverage-map .secondary svg { width: 16px; height: 16px; }
.cart-lines, .order-list, .saved-lines { list-style: none; padding: 0; }
.cart-lines li, .order-list li, .saved-lines li { display: grid; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-lines li { grid-template-columns: minmax(0, 1fr) 94px minmax(72px, auto); }
.cart-lines li:first-child, .order-list li:first-child { border-top: 1px solid var(--line); }
.cart-item { display: flex; min-width: 0; align-items: center; gap: 12px; }
.cart-item img { width: 60px; height: 60px; flex: none; object-fit: contain; background: white; border-radius: 7px; }
.cart-item small, .order-list small { display: block; margin-top: 3px; color: var(--muted); }
.cart-lines .line-total { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-layout section > a { margin-top: 15px; }
.summary-panel { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.summary-panel h2, .account-content h2 { margin: 0 0 14px; font-size: 22px; font-weight: 810; }
.summary-panel button { display: flex; width: 100%; margin-bottom: 8px; }
.primary:disabled { background: var(--rose); border-color: var(--line); color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 17px; font-variant-numeric: tabular-nums; }
.checkout-address { margin: 12px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.checkout-address a, .back-link { display: inline-block; margin-top: 5px; color: var(--accent-deep); }
.action-status { font-size: 13px; color: var(--muted); }
.account-nav { display: grid; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.account-nav a { display: flex; align-items: center; min-height: 42px; padding: 7px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; }
.account-nav a:hover, .account-nav [aria-current="page"] { background: var(--rose); color: var(--accent-deep); font-weight: 740; }
.account-content { min-width: 0; }
.favorites-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-list li { grid-template-columns: minmax(120px, 1fr) minmax(105px, .65fr) auto auto; }
.order-status { justify-self: start; padding: 5px 8px; border-radius: 6px; color: var(--accent-deep); background: var(--rose); font-size: 13px; font-weight: 700; }
.back-link { margin: 0 0 15px; }
.order-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 0; margin: 17px 0; list-style: none; }
.order-progress li { border-top: 3px solid var(--line); padding-top: 7px; color: var(--muted); font-size: 13px; }
.order-progress .done { border-color: var(--accent); color: var(--accent-deep); }
.order-progress [aria-current] { font-weight: 790; }
.saved-lines li { grid-template-columns: minmax(0, 1fr) auto; }
.saved-lines + button { margin-top: 15px; }
.muted { color: var(--muted); }
.coverage-form { display: grid; justify-items: start; gap: 14px; margin: 20px 0 14px; }
.coverage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-actions svg { width: 16px; }
.address-fields { display: grid; grid-template-columns: minmax(0, 1fr) 98px; width: 100%; gap: 10px; }
.coverage-form label { display: grid; gap: 5px; width: 100%; font-size: 14px; font-weight: 720; }
.coverage-form :is(input, select) { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-weight: 450; }
.address-district { display: grid; gap: 5px; width: 100%; }
.address-result:not(:empty) { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.address-result[data-state="dentro"] { border-color: #4c7760; }
.address-result p { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.address-result a { margin-top: 10px; }

.search, .search button, .delivery-link, .cart-button, .dept, .category-panel button,
.sort select, .dropdown-trigger, .dropdown-option, .product, .primary, .secondary, .add, .stepper button, .favorite, .account-nav a {
  transition: color var(--motion) var(--ease), background-color var(--motion) var(--ease),
    border-color var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}

@media (max-width: 1050px) {
  .shell { width: calc(100% - 40px); }
  .shop { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 950px) {
  .departments { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .offers .product[id] { scroll-margin-top: 205px; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .header-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; padding-block: 6px 8px; }
  .header-actions { gap: 8px; }
  .brand { gap: 6px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 10px; }
  .brand strong { font-size: 16px; }
  .search { grid-row: 2; grid-column: 1 / -1; min-height: 43px; }
  .search input { font-size: 16px; padding-inline: 10px; }
  .header-actions a { position: relative; display: grid; justify-items: center; align-content: center; gap: 0; min-height: 41px; padding: 2px; font-size: 10px; }
  .header-actions svg { width: 17px; height: 18px; }
  .cart-button { min-width: 52px; }
  .cart-count { position: absolute; top: 0; right: 0; width: 17px; min-width: 17px; height: 17px; font-size: 9px; padding-inline: 2px; }
  .departments { gap: 4px; }
  .dept { min-height: 44px; padding: 4px 2px; font-size: clamp(9px, 2.65vw, 12px); }
  .campaigns { gap: 11px; padding-top: 15px; }
  .campaign { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .campaign-copy { justify-content: flex-start; padding: 10px; }
  .campaign-copy h2 { font-size: clamp(17px, 4.7vw, 26px); }
  .campaign-copy p { font-size: 12px; margin-top: 5px; }
  .campaign-copy span { font-size: 12px; margin-top: auto; padding-top: 7px; }
  .campaign-art { grid-row: 1; aspect-ratio: 1.7; }
  .campaign-art img { object-position: 69% center; }
  .shop { display: block; padding-top: 15px; }
  .category-panel { display: none; }
  .subcategory-wrap { display: grid; gap: 5px; margin-bottom: 12px; }
  .subcategory-wrap label { color: var(--muted); font-size: 13px; font-weight: 650; }
  .catalog-head { align-items: center; }
  .sort > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sort .dropdown { width: 127px; }
  .sort select { font-size: 12px; max-width: 120px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product { padding: 8px; }
  .product-photo { height: clamp(105px, 29vw, 155px); }
  .product h3 { font-size: 13px; }
  .price { font-size: 21px; }
  .offers-grid, .favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers .product[id] { scroll-margin-top: 222px; }
  .footer-inner { font-size: 11px; }
  .footer-address { display: none; }
  .cart-layout, .account-layout, .coverage-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .coverage-map { width: min(100%, 380px); }
  .account-nav { display: flex; flex-wrap: wrap; }
  .account-nav a { min-height: 36px; padding-inline: 8px; font-size: 13px; }
  .cart-lines li { grid-template-columns: minmax(0, 1fr) 74px 67px; font-size: 13px; gap: 7px; }
  .cart-item { gap: 7px; }
  .cart-item img { width: 38px; height: 38px; }
  .order-list li { grid-template-columns: 1fr auto; }
  .order-list li > a { justify-self: start; grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .category-children { transition-property: opacity; }
  .category-meta svg { transition: none; }
  .dropdown-trigger svg { transition: none; }
}
