:root {
  color-scheme: light;
  --ink: #173658;
  --muted: #43566c;
  --paper: #f7f6f1;
  --white: #fff;
  --pale: #eaecf4;
  --line: #d7dfeb;
  --agency: #2149ad;
  --accent: #e30613;
  --shell: 74rem;
  font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, h4, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5b49af; outline-offset: 4px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 6.25rem; }
.shell { width: min(var(--shell), 100% - clamp(2rem, 7vw, 7rem)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .8rem 1rem; background: var(--white); }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, nav { display: flex; align-items: center; gap: clamp(.9rem, 2.7vw, 2.8rem); }
.header-inner { min-height: 5rem; justify-content: space-between; position: relative; }
.brand { display: inline-flex; align-items: center; min-height: 3rem; }
.brand img { width: 5.5rem; height: auto; }
nav a { min-height: 44px; display: inline-flex; align-items: center; gap: .55rem; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-contact { border: 1px solid #9aacbf; padding-inline: 1rem; border-radius: 99rem; }
.menu-button { display: none; }
.hero { display: grid; grid-template-columns: .91fr 1.09fr; gap: clamp(1.4rem, 4vw, 4rem); align-items: center; margin-block: clamp(1.6rem, 4vw, 3.75rem) 1.9rem; }
.hero-copy > p:not(.hero-context) { color: var(--muted); max-width: 32ch; margin-block: 1.1rem 1.55rem; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.hero-context { font-size: .76rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .75rem; }
h1, h2, .featured h4 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.05em; }
h1 { font-size: clamp(2.85rem, 5.65vw, 5.3rem); line-height: .98; }
h1 em { display: block; color: #526d99; font-weight: 400; }
h2 { font-size: clamp(2.2rem, 4.65vw, 4rem); line-height: 1.05; }
.hero-visual { position: relative; overflow: hidden; border-radius: 52% 52% 1.4rem 1.4rem / 18% 18% 1.4rem 1.4rem; background: #e1e5ee; isolation: isolate; }
.hero-image { width: 100%; height: auto; aspect-ratio: 1.29; object-fit: cover; object-position: center top; }
.hero-visual::after { content: ""; position: absolute; inset: .75rem; border: 1px solid #fff9; border-radius: inherit; pointer-events: none; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .9rem; border-radius: 99rem; padding: .65rem 1.25rem; font-weight: 750; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.primary { color: var(--white); background: var(--ink); font-size: .82rem; letter-spacing: .045em; }
.primary:hover { background: #2a527d; }
.benefits { border-block: 1px solid var(--line); }
.benefits ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 1rem 0; }
.benefits li { display: flex; gap: .6rem; align-items: center; justify-content: center; font-size: .94rem; font-weight: 650; text-wrap: balance; }
.benefits li + li { border-left: 1px solid var(--line); }
.benefits span { font-size: 1.45rem; font-weight: 400; color: #496b9c; }
.catalog { padding-block: clamp(3rem, 6vw, 5.6rem); background: #eef0f6; margin-top: clamp(2.6rem, 5vw, 4.6rem); }
.section-heading { margin-bottom: 1.45rem; }
.tabs { display: flex; gap: .5rem; align-items: stretch; margin-bottom: 1.5rem; }
.tabs button { color: var(--ink); min-height: 46px; border: 1px solid #a8b7cd; border-radius: 99rem; padding: .55rem 1.15rem; background: transparent; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs button:hover { background: #dde5f0; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.category-panel + .category-panel { margin-top: 2.75rem; }
.category-panel[data-active] { margin-top: 0; animation: appear .33s ease both; }
.category-title { font-size: 1.3rem; margin-bottom: .7rem; }
.category-panel[data-active] .category-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.category-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.36fr); gap: 1rem; align-items: stretch; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: box-shadow .23s, border-color .23s; }
.product:hover { border-color: #a5b6ce; box-shadow: 0 10px 32px #17365814; }
.product-media { background: #fff; padding: .7rem; aspect-ratio: 1.27; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #eceff5; }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .26s ease; }
.product:hover img { transform: scale(1.045); }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: .75rem .85rem .5rem; }
.product h4 { font-size: .98rem; line-height: 1.2; }
.product-copy p { font-size: .81rem; color: var(--muted); margin-top: .45rem; }
.social { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 730; text-decoration: none; }
.social:hover { text-decoration: underline; text-underline-offset: .25em; }
.featured { background: #e3e9f6; }
.featured .product-media { min-height: 0; aspect-ratio: 1.23; padding: .8rem; }
.featured .product-copy { justify-content: flex-end; gap: .25rem; padding: clamp(1.05rem, 2vw, 1.7rem); }
.featured h4 { font-size: clamp(1.9rem, 3.5vw, 3.25rem); }
.featured .featured-label { text-transform: uppercase; letter-spacing: .1em; font-weight: 750; margin: 0 0 .2rem; }
.social { margin-top: .7rem; gap: .6rem; }
.facebook-mark { color: #fff; background: var(--ink); font: 750 1rem/1.3rem system-ui; text-align: center; width: 1.3rem; border-radius: 50%; }
.contact { padding-block: clamp(2.8rem, 6vw, 5rem); }
.contact-button { background: #f7f6f1; color: var(--ink); white-space: nowrap; }
.contact-button:hover { background: #e1e7f5; }
.contact-button:focus-visible, .matangazo-footer a:focus-visible { outline-color: white; }
.matangazo-footer { color: var(--white); background: var(--agency); }
.agency-footer { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: clamp(.9rem, 2.5vw, 2rem); align-items: center; padding-block: 1.25rem; }
.agency-brand { display: grid; place-items: center; min-height: 46px; padding: .3rem; }
.agency-brand img { width: 6rem; height: auto; }
.agency-pitch { min-width: 0; display: grid; gap: .45rem; }
.agency-title { font: 750 clamp(1.3rem, 2.5vw, 1.7rem)/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: normal; }
.agency-message { font-size: .87rem; font-weight: 600; }
.agency-pitch .agency-cta { width: 100%; min-height: 44px; background: var(--accent); color: var(--white); }
.agency-pitch .agency-cta:hover { background: #bf0610; }
.agency-cta { background: #fff; color: #123784; font-size: .85rem; text-align: center; }
.agency-cta:hover { background: #e6edff; }
.visit-counter { display: grid; justify-items: center; gap: .25rem; font-size: .76rem; }
.visit-label { font-weight: 740; }
.visit-total { display: grid; min-height: 24px; place-items: center; }
.visit-counter img { display: block; height: 24px; width: auto; }
.reveal-now { animation: appear .48s ease both; }
@keyframes appear { from { opacity: .55; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 57rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: start; }
  .agency-footer { grid-template-columns: auto auto minmax(0, 1fr); }
}
@media (max-width: 39rem) {
  .header-inner { flex-wrap: wrap; min-height: 4.35rem; gap: 0; }
  .brand img { width: 4.65rem; }
  nav { flex-basis: 100%; justify-content: space-between; gap: .35rem; padding-block: .3rem; }
  .menu-button:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; border: 1px solid #a2b0c5; border-radius: 99rem; padding-inline: .85rem; background: none; color: var(--ink); cursor: pointer; }
  .has-menu nav { position: absolute; top: calc(100% + 1px); inset-inline: 0; padding: .45rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 .65rem .65rem; box-shadow: 0 10px 20px #17365817; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-height: 23rem; }
  .hero-image { max-height: 23rem; aspect-ratio: 1.38; }
  .benefits ul { gap: .35rem; padding-block: .7rem; }
  .benefits li { flex-direction: column; justify-content: flex-start; gap: 0; text-align: center; font-size: .75rem; line-height: 1.35; }
  .tabs { display: grid; grid-template-columns: 1fr .65fr 1.3fr; gap: .35rem; }
  .tabs button { padding: .42rem .35rem; font-size: .75rem; line-height: 1.2; }
  .category-grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid { gap: .65rem; }
  .product-media { padding: .38rem; }
  .featured .product-media { aspect-ratio: 1.48; }
  .product-copy { padding-inline: .65rem; }
  .agency-footer { grid-template-columns: 1fr 1fr; text-align: center; gap: .65rem; }
  .agency-pitch { grid-column: 1 / -1; text-align: center; }
  .agency-pitch .agency-cta { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Ubicación y contacto */
.location-heading { margin-bottom: 1.5rem; }
.location-heading p { color: var(--muted); max-width: 58ch; margin-block: 1rem 1.2rem; }
.location-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); overflow: hidden; border-radius: 1.45rem; border: 1px solid var(--line); box-shadow: 0 10px 32px #17365812; }
.location-details { padding: clamp(1.5rem, 4vw, 3rem); color: var(--white); background: var(--ink); }
.location-details h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1.2rem; }
.location-details address { font-style: normal; line-height: 1.8; margin-bottom: 1.4rem; }
.location-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.location-actions .button { max-width: 100%; white-space: normal; text-align: left; }
.location-map { display: block; width: 100%; height: 100%; min-height: 27rem; border: 0; background: var(--pale); }
@media (max-width: 39rem) {
  .location-card { grid-template-columns: minmax(0, 1fr); }
  .location-map { min-height: 21rem; height: 21rem; }
}

/* Compartir: etiquetas breves y tres botones en una sola fila. */
.share-title { font: 650 1rem/1.4 "Segoe UI", system-ui, sans-serif; color: var(--ink); margin-bottom: .65rem; }
.contact-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: .75rem; max-width: 42rem; }
.contact-tools .button { min-width: 0; padding-inline: .75rem; gap: .4rem; letter-spacing: 0; text-align: center; white-space: nowrap; }
@media (max-width: 39rem) {
  .contact-tools { gap: .4rem; }
  .contact-tools .button { padding: .65rem .4rem; gap: .25rem; font-size: .75rem; }
}

/* Fichas oficiales: toda la tarjeta es un enlace accesible. */
.product-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.product-link:focus-visible { outline-offset: -4px; border-radius: inherit; }
.product-link-label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: auto; padding-top: .4rem; font-size: .82rem; font-weight: 730; }
.product-link:hover .product-link-label { text-decoration: underline; text-underline-offset: .25em; }
.location-hours { margin-bottom: 1.4rem; line-height: 1.8; }
