:root {
  color-scheme: light;
  --ink: #18251e;
  --muted: #506056;
  --paper: #f7f7f2;
  --white: #fff;
  --green: #214b37;
  --dark: #183828;
  --lime: #e3f098;
  --line: #dce3d9;
  --warm: #efefe7;
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #39784f; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(calc(100% - 48px), 1240px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 8px; left: 8px; z-index: 5; background: white; padding: 12px; }
header { background: var(--white); }
.top { background: var(--dark); color: #f7f9ef; font-size: .8rem; }
.top-inner, .header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top-inner { min-height: 35px; }
.top a:hover, footer nav a:hover { text-decoration: underline; }
.header-inner { padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: clamp(1rem, 3vw, 1.45rem); letter-spacing: -.055em; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--lime); background: var(--green); }
.brand-mark svg { width: 23px; height: 23px; }
.header-actions { display: flex; align-items: center; flex: 0 1 660px; gap: 8px; min-width: 0; }
.search { display: flex; align-items: center; flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 4px; }
.search svg { width: 20px; height: 20px; margin-inline: 10px; flex: none; color: var(--muted); }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 8px 0; }
.search button, .cart-trigger { min-height: 42px; border: 0; border-radius: 7px; padding-inline: 15px; font-weight: 750; }
.search button { background: var(--green); color: white; }
.cart-trigger { display: flex; align-items: center; gap: 8px; background: var(--warm); color: var(--dark); white-space: nowrap; }
.cart-trigger svg { width: 20px; height: 20px; }
.cart-count { display: grid; min-width: 24px; height: 24px; padding-inline: 4px; place-items: center; background: var(--white); border-radius: 999px; font-size: .8rem; }
.nav { border-top: 1px solid #edf0e9; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: 6px 24px; align-items: center; flex-wrap: wrap; padding-block: 8px; }
.nav button { border: 0; background: transparent; color: var(--ink); padding: 6px 0; font-size: .9rem; font-weight: 650; }
.nav button:hover, .nav button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; color: var(--green); }
.hero { display: grid; grid-template-columns: 1fr 1.12fr; margin-top: 24px; border-radius: 24px; overflow: hidden; background: var(--dark); color: var(--white); }
.hero-copy { padding: clamp(28px, 5vw, 70px); align-self: center; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; min-height: 360px; }
.eyebrow { color: var(--lime); font-weight: 750; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.55rem, 5vw, 5.1rem); letter-spacing: -.075em; line-height: .98; }
.hero-copy p:not(.eyebrow) { margin-block: 20px 24px; max-width: 38ch; color: #e3ebe0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 8px 15px; border-radius: 9px; font-weight: 750; border: 1px solid transparent; text-align: center; line-height: 1.25; }
.primary { background: var(--green); color: white; }
.primary:hover, .search button:hover { background: var(--dark); }
.hero .primary { background: var(--lime); color: var(--dark); }
.hero .primary:hover { background: #f3ffc4; }
.secondary { background: white; border-color: var(--line); color: var(--green); }
.secondary:hover { background: #edf2e9; }
button:disabled { cursor: default; background: #e7eae6; color: #525e55; border-color: #e7eae6; }
.section { margin-block: 40px; scroll-margin-top: 16px; }
.section h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -.05em; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.category { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-weight: 750; text-align: left; }
.category:hover, .category[aria-pressed="true"] { border-color: #69947c; background: #edf4e9; }
.category img { width: 57px; height: 48px; object-fit: contain; border-radius: 7px; }
.category span { overflow-wrap: anywhere; }
.category .arrow { margin-left: auto; color: var(--muted); padding-right: 5px; }
.catalog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.catalog-heading p { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.link-button { border: 0; background: none; color: var(--green); padding: 5px 2px; text-decoration: underline; text-underline-offset: 3px; }
.filters { margin-block: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.filters label { display: grid; gap: 4px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.filters select { width: 100%; padding: 8px 6px; min-height: 43px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product { display: flex; flex-direction: column; position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 15px; min-width: 0; }
.product-img { display: block; width: 100%; border: 0; padding: 0; background: var(--warm); }
.product-img:focus-visible { outline-offset: -4px; }
.product-img img { width: 100%; aspect-ratio: 1.16; object-fit: contain; }
.tag { border-radius: 999px; background: var(--lime); color: var(--dark); font-size: .74rem; font-weight: 800; padding: 4px 9px; white-space: nowrap; }
.product > .tag { position: absolute; top: 10px; left: 10px; pointer-events: none; }
.tag.out { background: #e2e6de; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 13px; }
.product-info .meta, .meta { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .73rem; font-weight: 750; }
.product h3 { font-size: 1.01rem; margin-block: 4px 9px; line-height: 1.25; }
.product h3 button { font: inherit; background: transparent; border: 0; padding: 0; text-align: left; color: inherit; }
.product h3 button:hover { text-decoration: underline; }
.prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; margin-top: auto; margin-bottom: 10px; }
.prices strong { font-size: 1.24rem; color: var(--dark); letter-spacing: -.035em; }
.prices del { font-size: .83rem; color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.guide { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; background: #e7eee2; border-radius: 16px; padding: clamp(17px, 3vw, 32px); }
.guide p, .guide li span { color: var(--muted); }
.guide p { margin-top: 6px; }
.guide ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0; padding-left: 21px; }
.guide li::marker { font-weight: 850; color: var(--green); }
.guide li span { display: block; font-size: .9rem; margin-top: 4px; }
.location-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.location-heading h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.05em; }
.location-heading address { margin-top: 8px; color: var(--muted); font-style: normal; }
.location-map {
  display: block;
  width: 100%;
  height: clamp(360px, 62vh, 580px);
  border: 0;
  border-radius: 16px;
  background: var(--warm);
}
footer { background: var(--dark); color: white; padding-block: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; }
dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 70px #10291b4d; }
dialog::backdrop { background: #14251db0; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; background: white; border-bottom: 1px solid var(--line); font-weight: 750; }
.dialog-head h2 { font-size: 1.2rem; }
.close, .quantity button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--dark); background: var(--paper); font-weight: 800; }
.close { font-size: 1.4rem; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding: 20px; }
.detail img { width: 100%; border-radius: 10px; }
.detail h2 { line-height: 1.15; margin-block: 5px 8px; }
.detail dl div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-block: 5px; font-size: .88rem; }
.detail dd { margin: 0; text-align: right; }
.detail .prices { margin-top: 12px; }
.detail .stock { color: var(--muted); font-size: .9rem; margin-block: 9px; }
#carrito { width: min(515px, calc(100% - 28px)); }
.cart-body { padding: 16px 18px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.cart-line h3 { font-size: 1rem; }
.cart-line p, .shipping-note { font-size: .86rem; color: var(--muted); }
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity button { width: 40px; }
.total { display: flex; justify-content: space-between; gap: 12px; margin-block: 15px 8px; }
#resumen-carrito .button, #texto-pedido { display: flex; width: 100%; margin-top: 10px; }
#texto-pedido { resize: vertical; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
#estado-copia:empty { display: none; }
#estado-copia { margin-top: 8px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .header-actions { grid-row: 2; grid-column: 1 / -1; }
  .hero img { min-height: 300px; }
  .product-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .header-actions .button, .search button { padding-inline: 10px; font-size: .9rem; }
  .search svg { margin-inline: 6px; }
  .brand-mark { width: 34px; height: 34px; }
  .top-inner { gap: 8px; font-size: .73rem; }
  .nav-inner { gap: 2px 15px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; border-radius: 17px; }
  .hero-copy { padding: 24px; }
  .hero img { height: clamp(170px, 50vw, 245px); min-height: 0; }
  .section { margin-block: 32px; }
  .category-grid, .product-grid, .filters { gap: 8px; }
  .category img { width: 36px; height: 36px; }
  .category { font-size: .86rem; }
  .category .arrow { display: none; }
  .product-info { padding: 10px; }
  .product-info .button { padding-inline: 6px; font-size: .82rem; }
  .guide { grid-template-columns: 1fr; }
  .guide ol { grid-template-columns: 1fr; gap: 10px; }
  .location-heading .button { width: 100%; }
  .detail { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .detail img { max-height: 230px; object-fit: contain; background: var(--warm); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
}

.photo-empty { display: grid; place-items: center; min-height: 130px; aspect-ratio: 1.16; border-radius: 8px; background: var(--warm); color: var(--muted); }
.category { min-height: 62px; }
