@font-face {
  font-family: 'Barlow de marca';
  src: url('assets/barlow-logo.woff2') format('woff2');
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #142033;
  --navy: #101c2f;
  --orange: #ff7849;
  --orange-ink: #9d3210;
  --sale: #b23612;
  --subtle-orange: #fff0e8;
  --paper: #f4f6fa;
  --white: #fff;
  --muted: #566277;
  --line: #dce2e9;
  --display: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #306ad8; outline-offset: 4px; }

.wrap { width: min(100% - 72px, 1200px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%);
}
.skip-link:focus { position: fixed; z-index: 4; top: 12px; left: 12px; background: white; padding: 10px 16px; }

.site-header { background: var(--white); border-bottom: 1px solid #e8edf4; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: 'Barlow de marca', 'Arial Narrow', var(--body); font-style: italic; font-weight: 800; font-size: 2.25rem; letter-spacing: -.035em; line-height: .95; white-space: nowrap; }
.brand img { flex: none; }
.brand-word { display: inline-flex; align-items: baseline; }
.brand-domain { color: #b23612; font-size: .7em; letter-spacing: -.014em; margin-left: 1px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 40px); }
.main-nav a { color: #465267; text-decoration: none; font-size: .9375rem; font-weight: 650; white-space: nowrap; }
.main-nav a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 5px; }
.saved-nav { padding: 9px 13px; background: white; border: 1px solid var(--line); border-radius: 9px; min-height: 42px; display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.saved-nav:hover, .saved-nav[aria-pressed='true'] { background: var(--subtle-orange); border-color: #edc1ae; }
.saved-count { display: grid; place-items: center; background: var(--navy); color: white; height: 21px; min-width: 21px; border-radius: 100px; font-size: .75rem; padding-inline: 4px; }

.hero { padding-top: 24px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: 14px 14px 14px clamp(25px, 3.3vw, 48px); border-radius: 27px; overflow: hidden;
  background: radial-gradient(ellipse at 0 110%, #ffddc6 0%, transparent 67%), #fff5ed;
  border: 1px solid #f0ddd0;
  box-shadow: 0 13px 31px #292c4610;
}
.hero-copy { min-width: 0; padding-block: 26px; }
.preview-label { display: inline-block; border: 1px solid #ecd2c4; border-radius: 100px; background: #fffaf6; color: #754634; padding: 5px 11px; font-size: .8125rem; font-weight: 650; }
.hero h1 { margin-top: 17px; font-size: clamp(2.8rem, 4.8vw, 4.5rem); line-height: .99; letter-spacing: -.065em; font-weight: 800; }
.hero h1 em { color: var(--sale); font-style: normal; }
.hero h2 { margin-top: 22px; font-weight: 650; letter-spacing: -.025em; font-size: clamp(1.0625rem, 1.8vw, 1.45rem); line-height: 1.25; }
.featured-empty { max-width: 35ch; margin-top: 18px; color: var(--muted); }
.hero-pricing { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.hero-pricing strong { color: var(--sale); font: 800 clamp(2.8rem, 5.6vw, 4.55rem)/1 var(--display); letter-spacing: -.075em; }
.hero-reference, .deal-reference { display: grid; gap: 2px; line-height: 1.15; color: var(--muted); font-size: .8125rem; }
.hero-reference s { font: 750 1.22rem/1 var(--display); text-decoration-thickness: 1.5px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 21px; }
.button { border: 1px solid transparent; border-radius: 9px; min-height: 46px; padding: 10px 17px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; font-weight: 750; line-height: 1.25; }
.button-action { background: var(--orange); color: var(--navy); }
.button-action:hover { background: #ff925e; }
.button-quiet { color: var(--navy); background: #fff8f1; border-color: #e8c2aa; }
.button-quiet:hover, .button-quiet[aria-pressed='true'] { background: #ffeadc; border-color: #d99a7d; }
.hero-image { position: relative; isolation: isolate; overflow: hidden; border-radius: 17px; align-self: stretch; min-height: 375px; background: #d85f36; }
.hero-image::after { position: absolute; inset: 0; content: ''; border-radius: inherit; border: 1px solid #ffffff35; pointer-events: none; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-discount {
  position: absolute; top: 20px; left: 20px; display: grid; gap: 1px; padding: 8px 13px 9px;
  border: 1px solid #ffe4d2; border-radius: 10px; background: var(--sale); color: #fff; box-shadow: 0 4px 22px #4d1b2533;
}
.hero-discount > span { font-size: .75rem; font-weight: 700; }
.hero-discount > strong { font: 800 clamp(1.38rem, 2.8vw, 2.28rem)/1.03 var(--display); letter-spacing: -.055em; }
.illustration-caption { position: absolute; z-index: 1; right: 7px; bottom: 6px; background: #fff; color: #43516a; padding: 2px 6px; border-radius: 5px; font-size: .6875rem; }

.icon-bookmark { width: 14px; height: 17px; flex: none; display: inline-block; position: relative; color: inherit; }
.icon-bookmark::before, .icon-bookmark::after { content: ''; position: absolute; inset: 0; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%, 0 0, 13% 12%, 13% 75%, 50% 56%, 87% 75%, 87% 12%, 13% 12%, 0 0); }
.icon-bookmark::after { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); opacity: 0; }
[aria-pressed='true'] > .icon-bookmark::after { opacity: 1; }
.icon-search { position: relative; display: block; width: 14px; height: 14px; border: 1.6px solid #607086; border-radius: 50%; flex: none; margin-right: 1px; }
.icon-search::after { content: ''; position: absolute; width: 6px; height: 1.6px; right: -5px; bottom: -2px; background: #607086; transform: rotate(45deg); border-radius: 2px; }

.categories { padding-top: 19px; }
.categories-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e3e8f0; border-radius: 14px; background: white; }
.chip { min-height: 41px; border: 1px solid transparent; background: white; border-radius: 8px; padding: 8px 15px; font-size: .875rem; line-height: 1.3; font-weight: 650; }
.chip:hover { background: #f0f3f7; }
.chip[aria-pressed='true'] { color: white; background: var(--sale); border-color: var(--sale); }

.offers { padding-block: 31px 54px; scroll-margin-top: 10px; }
.offers-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.offers-header h2, .method h2 { font-size: clamp(2rem, 3.5vw, 2.85rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.09; }
.offers-header p { margin-top: 4px; color: var(--muted); }
.offers-controls { display: flex; align-items: center; gap: 9px; flex: none; }
.search-control { display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: white; min-width: 0; }
.search-control:focus-within { outline: 3px solid #306ad8; outline-offset: 2px; }
.search-control input { width: 160px; border: 0; outline: 0; padding: 11px 0; background: transparent; font-size: .9375rem; min-height: 44px; }
.search-control input::placeholder { color: #596579; opacity: 1; }
.sort-control { position: relative; }
.sort-control::after { content: ''; pointer-events: none; position: absolute; right: 14px; top: 17px; width: 7px; height: 7px; border-right: 1.6px solid #526078; border-bottom: 1.6px solid #526078; transform: rotate(45deg); }
.sort-control select { min-height: 46px; max-width: 100%; background: white; border: 1px solid var(--line); border-radius: 9px; appearance: none; padding: 9px 33px 9px 13px; font-size: .875rem; font-weight: 650; }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.deal-card { min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid #e1e7ef; border-radius: 18px; overflow: hidden; box-shadow: 0 3px 12px #17294508; transition: box-shadow .18s, border-color .18s; }
.deal-card:hover, .deal-card:focus-within { border-color: #d4deed; box-shadow: 0 8px 24px #17294515; }
.deal-media { position: relative; min-width: 0; margin: 7px 7px 0; border-radius: 12px; aspect-ratio: 1.87; background: #e9edf4; display: grid; place-items: center; overflow: hidden; }
.product-visual { width: min(57%, 235px); aspect-ratio: 1; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: url('assets/catalogo.jpg') 0 0 / 300% 200% no-repeat; mask-image: radial-gradient(ellipse, black 62%, transparent 83%); }
.product-visual.robot { inset: 0; width: 100%; transform: none; aspect-ratio: auto; background: url('assets/robot-aspirador.jpg') center / cover no-repeat; mask-image: none; }
.product-visual.lavadora { background-position: 0 0; }
.product-visual.movil { background-position: 50% 0; }
.product-visual.auriculares { background-position: 100% 0; }
.product-visual.freidora { background-position: 0 100%; }
.product-visual.aspirador { background-position: 50% 100%; }
.product-visual.taladro { background-position: 100% 100%; }
.deal-discount { position: absolute; z-index: 1; top: 11px; left: 11px; background: var(--sale); color: white; padding: 4px 10px; border-radius: 7px; font: 800 1.13rem/1.25 var(--display); white-space: nowrap; }
.save-card { position: absolute; z-index: 1; top: 10px; right: 10px; width: 43px; height: 43px; display: grid; place-items: center; background: white; border: 1px solid #dce2e9; border-radius: 50%; }
.save-card:hover, .save-card[aria-pressed='true'] { background: var(--subtle-orange); border-color: #e6b6a0; color: var(--orange-ink); }
.deal-content { padding: 14px 17px 17px; display: flex; flex-direction: column; flex-grow: 1; }
.deal-category { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 8px; color: var(--muted); font-size: .8125rem; font-weight: 650; }
.deal-store { color: #344765; }
.deal-content h3 { margin: 4px 0 7px; font-size: 1.175rem; font-weight: 750; letter-spacing: -.027em; line-height: 1.28; }
.deal-price-line { display: flex; align-items: center; gap: 7px 13px; flex-wrap: wrap; margin-top: auto; }
.deal-price { color: var(--sale); font: 800 2.28rem/1 var(--display); letter-spacing: -.065em; }
.deal-reference s { font-size: .9375rem; font-weight: 700; }
.deal-footer { display: flex; justify-content: flex-end; padding-top: 11px; margin-top: 12px; border-top: 1px solid #e8edf4; }
.deal-footer .button { color: var(--ink); border-color: #d5dce6; background: #fff; font-size: .875rem; min-height: 42px; padding: 8px 12px; white-space: nowrap; }
.deal-footer .button:hover { background: var(--navy); color: white; border-color: var(--navy); }
.deal-saving { background: var(--subtle-orange); border-radius: 100px; padding: 4px 9px; color: var(--orange-ink); font-size: .875rem; font-weight: 750; white-space: nowrap; }
.empty-state { grid-column: 1 / -1; padding: 28px; border: 1px dashed #c3cfdd; color: var(--muted); border-radius: 12px; background: white; }

.method { padding-block: 0 38px; }
.method-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 6vw, 84px); padding: clamp(21px, 4vw, 48px); border: 1px solid #dbe6f4; border-radius: 22px; background: linear-gradient(115deg, #e7effd, #f1f5fc); }
.method-intro p { color: #40516a; margin-top: 10px; max-width: 35ch; }
.method-list { margin: 0; }
.method-list div { padding: 0 0 12px 0; }
.method-list div + div { border-top: 1px solid #cdd8e8; padding-top: 12px; }
.method-list div:last-child { padding-bottom: 0; }
.method-list dt { font-weight: 750; }
.method-list dd { margin: 3px 0 0; color: #40516a; }
.site-footer { background: white; }
.footer-inner { display: flex; align-items: center; gap: 16px; justify-content: space-between; min-height: 92px; color: var(--muted); font-size: .875rem; }
.footer-inner .brand { color: var(--ink); font-size: 1.85rem; }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }

#offer-dialog { width: min(100% - 30px, 530px); max-height: 90dvh; padding: 24px; color: var(--ink); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 24px 100px #0004; }
#offer-dialog::backdrop { background: #101c2faa; }
.dialog-close { position: absolute; inset: 10px 10px auto auto; }
.dialog-close button { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.5rem; background: white; line-height: 1; }
.detail-kicker { font-size: .8125rem; color: var(--orange-ink); font-weight: 750; }
.detail-heading { padding-right: 35px; margin: 4px 0 12px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.14; }
.detail-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .9375rem; }
.detail-table caption { text-align: left; font-weight: 750; margin-bottom: 5px; }
.detail-table td { border-top: 1px solid var(--line); padding: 7px 0; }
.detail-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-table tr:first-child { color: var(--orange-ink); font-weight: 800; }
.detail-note { margin-top: 13px; color: var(--muted); font-size: .875rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.detail-actions a { text-decoration: none; }
.detail-save { color: var(--ink); background: var(--subtle-orange); border-color: #edc1ae; min-height: 44px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-image { min-height: 348px; }
  .offer-grid { gap: 12px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 2px 10px; padding-block: 10px; }
  .header-inner > .brand { font-size: 1.86rem; }
  .header-inner > .brand img { width: 40px; height: 40px; }
  .main-nav { order: 2; width: 100%; column-gap: 21px; row-gap: 5px; padding-top: 5px; }
  .main-nav a { padding-block: 4px; }
  .saved-nav { margin-left: auto; }
  .hero { padding-top: 13px; }
  .hero-inner { grid-template-columns: 1fr; gap: 14px; padding: 10px; border-radius: 19px; }
  .hero-copy { padding: 13px 10px 1px; }
  .hero h1 { margin-top: 13px; font-size: clamp(2.8rem, 9.5vw, 4.25rem); }
  .hero h2 { margin-top: 17px; }
  .hero-actions { margin-top: 15px; }
  .hero-image { min-height: 0; aspect-ratio: 1.64; border-radius: 13px; }
  .hero-discount { left: 10px; top: 10px; }
  .offers-header { align-items: stretch; flex-direction: column; }
  .offers-controls { flex-wrap: wrap; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-inner { grid-template-columns: 1fr; gap: 21px; }
  .footer-inner { flex-wrap: wrap; padding-block: 16px; }
}

@media (max-width: 455px) {
  .wrap { width: calc(100% - 32px); }
  .offers { padding-block: 24px 34px; }
  .categories { padding-top: 13px; }
  .categories-inner { gap: 4px; padding: 6px; }
  .chip { padding-inline: 9px; }
  .offers-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .search-control input { width: 100%; }
  .sort-control select { font-size: .8125rem; padding-left: 8px; padding-right: 24px; }
  .sort-control::after { right: 10px; }
  .offer-grid { grid-template-columns: 1fr; }
  .deal-media { aspect-ratio: 1.97; }
  .product-visual { width: min(53%, 190px); }
  .footer-inner p { width: 100%; order: 2; }
}

@media (max-width: 370px) {
  .header-inner > .brand { font-size: 1.73rem; gap: 5px; }
  .header-inner .brand-word { display: grid; }
  .header-inner .brand-domain { justify-self: end; margin: 0; }
  .saved-nav { padding-inline: 8px; gap: 6px; font-size: .8125rem; }
  .hero h1 { font-size: 2.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deal-card { transition: none; }
}
