:root {
  color-scheme: light;
  --ink: #10243c;
  --muted: #4c5a6c;
  --surface: #f5f7fa;
  --white: #fff;
  --line: #d9e2ee;
  --brand: #1745c8;
  --brand-dark: #122f92;
  --accent: #d8ff48;
  --radius: 18px;
  font: 16px/1.5 "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); }
body[data-store="punto-de-venta"] { --brand: #075f55; --brand-dark: #05483f; --accent: #a8f4d8; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid #b74600; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 64px, 1220px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .5rem; left: .5rem; transform: translateY(-180%); }
.skip-link:focus { transform: none; background: var(--white); padding: 12px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.gallery-logo img { display: block; height: auto; max-width: 100%; }
.header-links, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.header-links a, .footer-inner a { font-size: .925rem; font-weight: 650; text-decoration: none; }
.header-links a:hover, .footer-inner a:hover { text-decoration: underline; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px 14px; font-size: .875rem; color: var(--muted); }
.breadcrumb a { text-underline-offset: 3px; }

.hero { display: grid; grid-template-columns: 1.13fr 1fr; min-height: 348px; overflow: hidden; border-radius: 24px; background: var(--ink); color: var(--white); }
.hero-copy { align-self: center; padding: 35px clamp(24px, 5vw, 68px) 40px; }
.hero-label { margin: 0 0 13px; color: var(--accent); font-weight: 700; font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5.2vw, 5rem); line-height: .95; letter-spacing: -.06em; font-weight: 850; }
.hero h1 span { color: var(--accent); }
.hero-description { margin: 19px 0 22px; max-width: 420px; color: #e0e8f3; }
.hero-copy .button { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero-copy .button:hover { background: #edffac; border-color: #edffac; }
.hero-product { display: flex; flex-direction: column; justify-content: center; padding: 22px 32px; background: #e9efff; color: var(--ink); text-decoration: none; }
.hero-image { display: grid; place-items: center; flex: 1; min-height: 0; }
.hero-image img { display: block; width: min(100%, 414px); height: auto; max-height: 335px; object-fit: contain; mix-blend-mode: multiply; }
.hero-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 10px; border-top: 1px solid #cbd7f2; }
.hero-caption span { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; font-size: .875rem; font-weight: 680; }

.catalog { padding-block: 34px 42px; scroll-margin-top: 12px; }
.section-heading, .results-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.section-heading { margin-bottom: 15px; }
.section-heading h2, .results-heading h3 { margin: 0; line-height: 1.2; letter-spacing: -.023em; }
.section-heading h2 { font-size: clamp(1.42rem, 3vw, 2rem); }
.results-heading h3 { font-size: 1.25rem; }
.text-button { border: 0; background: none; color: var(--brand-dark); padding: 8px 0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.billing-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  padding: clamp(16px, 4vw, 27px);
  margin-top: 22px;
  border: 1px solid #c1ded5;
  border-radius: var(--radius);
  background: #e8f5f0;
  scroll-margin-top: 12px;
}
.billing-panel h2 { margin: 0; color: var(--brand-dark); line-height: 1.2; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.billing-panel p { margin: 7px 0 0; max-width: 620px; color: #375551; }

.catalog-results { scroll-margin-top: 12px; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; background: var(--white); }
.tools { display: grid; grid-template-columns: 2.25fr 1fr; gap: 12px; margin-top: 13px; }
.tools label { display: grid; gap: 6px; color: var(--muted); font-size: .875rem; font-weight: 680; }
.tools input, .tools select { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #b6c4d7; border-radius: 8px; color: var(--ink); background: var(--white); font-size: 1rem; }
.types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.print-categories { margin-top: 12px; }
.types button { padding: 7px 13px; min-height: 40px; border: 1px solid #b6c4d7; border-radius: 999px; color: var(--ink); background: var(--white); font-size: .875rem; }
.types button:hover { background: #ebf0ff; }
.types button[aria-pressed="true"] { color: var(--white); background: var(--brand-dark); border-color: var(--brand-dark); }
.status, .catalog-note { color: var(--muted); }
.status { min-height: 1.5em; margin: 16px 0 12px; font-size: .9rem; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; padding: 13px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 18px; }
.product-card:target { box-shadow: 0 0 0 3px var(--brand); }
.product-picture { position: relative; overflow: hidden; border-radius: 10px; background: #f3f5fb; }
.product-picture img { display: block; width: 100%; height: 192px; padding: 12px 16px; object-fit: contain; mix-blend-mode: multiply; }
.photo-reference { margin: 0; padding: 5px 8px; width: 100%; text-align: center; font-size: .8rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; justify-items: center; padding: 0 7px 8px; color: var(--muted); font-size: .8rem; }
.gallery button { background: var(--white); color: var(--brand-dark); border: 1px solid #d0daec; border-radius: 6px; font-size: .8rem; font-weight: 650; min-height: 34px; padding: 3px 6px; }
.gallery button:hover { background: #e8eeff; }
.product-body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 2px 2px; flex: 1; }
.product-meta { color: #314e8d; font-weight: 680; font-size: .8125rem; }
.product-title { overflow-wrap: anywhere; margin: 0; font-size: 1rem; line-height: 1.35; }
.product-description { margin: 0; color: var(--muted); font-size: .9rem; }
.product-specs { background: #edf2fb; border-radius: 8px; padding: 8px 10px; margin: 0; width: 100%; font-size: .875rem; overflow-wrap: anywhere; }
.product-specs dt { color: var(--brand-dark); font-weight: 760; }
.product-specs dd { margin: 2px 0 0; }
.price { padding-top: 6px; margin: auto 0 0; font-size: 1.35rem; font-weight: 780; }
.product-body .button { width: 100%; margin-top: 3px; }
.feedback { background: var(--white); border: 1px dashed #b4c5dc; border-radius: var(--radius); padding: 24px; }
.feedback h4, .feedback p { margin: 0 0 9px; }
.feedback-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.more-row { display: flex; justify-content: center; }
.more-row .button { margin-top: 20px; }
.catalog-note { font-size: .875rem; margin: 24px 0 0; }

.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 9px 15px; min-height: 44px; border-radius: 9px; border: 1px solid transparent; font-weight: 700; font-size: .9rem; line-height: 1.25; text-decoration: none; }
.primary { background: var(--brand); color: var(--white); }
.primary:hover { background: var(--brand-dark); }
.secondary { color: var(--brand-dark); border-color: #a5b7d8; background: var(--white); }
.secondary:hover { background: #ebf0ff; }
.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-block: 25px 88px; }
.footer-inner p { margin: 3px 0 0; color: #d4e0ef; font-size: .9rem; }
.floating { position: fixed; right: max(16px, calc((100vw - 1270px) / 2)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 2; box-shadow: 0 5px 20px #122d4c38; max-width: calc(100% - 32px); }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); width: min(470px, 100% - 30px); }
dialog h2 { margin: 0; font-size: 1.3rem; }
dialog p { margin: 10px 0 17px; }
#contact-product { font-weight: 700; }
dialog::backdrop { background: #10243ca6; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 40px); }
  .hero-copy { padding-inline: 25px; }
  .hero-product { padding-inline: 20px; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .gallery-logo img { width: 130px; }
  .header-links { gap: 8px 11px; }
  .header-links a { font-size: .8125rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; border-radius: 17px; }
  .hero-copy { padding: 24px 19px; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-product { padding: 5px 17px 12px; }
  .hero-image img { width: auto; max-width: 100%; max-height: 160px; }
  .hero-caption { padding-top: 6px; font-size: .875rem; }
  .catalog { padding-top: 22px; }
  .tools { grid-template-columns: 1fr; }
  .filters { padding: 13px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 8px; }
  .product-picture img { height: 130px; padding: 5px; }
  .gallery { gap: 3px; padding-inline: 3px; }
  .gallery button { font-size: .72rem; padding-inline: 4px; }
}

@media (max-width: 350px) {
  .products { grid-template-columns: 1fr; }
}
