/* ---------- Tipografía: Montserrat (SIL OFL 1.1, ver assets/fonts/montserrat/OFL.txt) ---------- */
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 100; src: url('assets/fonts/montserrat/montserrat-100-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 100; src: url('assets/fonts/montserrat/montserrat-100-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 200; src: url('assets/fonts/montserrat/montserrat-200-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 200; src: url('assets/fonts/montserrat/montserrat-200-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 300; src: url('assets/fonts/montserrat/montserrat-300-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 300; src: url('assets/fonts/montserrat/montserrat-300-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 400; src: url('assets/fonts/montserrat/montserrat-400-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 400; src: url('assets/fonts/montserrat/montserrat-400-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 500; src: url('assets/fonts/montserrat/montserrat-500-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 500; src: url('assets/fonts/montserrat/montserrat-500-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 600; src: url('assets/fonts/montserrat/montserrat-600-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 600; src: url('assets/fonts/montserrat/montserrat-600-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 700; src: url('assets/fonts/montserrat/montserrat-700-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 700; src: url('assets/fonts/montserrat/montserrat-700-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 800; src: url('assets/fonts/montserrat/montserrat-800-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 800; src: url('assets/fonts/montserrat/montserrat-800-italic.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: normal; font-weight: 900; src: url('assets/fonts/montserrat/montserrat-900-normal.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Montserrat'; font-style: italic; font-weight: 900; src: url('assets/fonts/montserrat/montserrat-900-italic.woff2') format('woff2'); }

:root {
  --ink: #272727;
  --text: #444444;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --line-strong: #dedede;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --red: #dc4348;
  --red-dark: #b8323a;
  --red-soft: #fbeaea;
  --gutter: 7%;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: 'Montserrat', system-ui, sans-serif; font-weight: 400; margin: 0; overflow-x: hidden; }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.4vw, 46px); }
.wrap { margin: 0 auto; max-width: 1250px; padding: 0 var(--gutter); }
.eyebrow { color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: .2em; margin: 0 0 14px; text-transform: uppercase; }
.heading-rule { background: var(--red); display: block; height: 2px; margin-top: 20px; width: 40px; }
.outline-button, .solid-button { align-items: center; border: 1px solid var(--red); cursor: pointer; display: inline-flex; font: 600 12px 'Montserrat', sans-serif; gap: 18px; letter-spacing: .08em; padding: 14px 18px; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.outline-button:hover, .solid-button { background: var(--red); color: #fff; }
.solid-button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.outline-button span { font-size: 16px; line-height: 1; }
.read-more { color: var(--red); display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; margin-top: 10px; text-transform: uppercase; }

/* ---------- Encabezado ---------- */
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { align-items: center; display: flex; gap: 20px; margin: auto; max-width: 1350px; min-height: 84px; padding: 10px 28px; position: relative; }
.brand img { height: 54px; object-fit: contain; width: 99px; }
.main-nav { align-items: center; display: flex; flex: 1; gap: 16px; justify-content: center; }
.main-nav a { color: var(--text); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; padding: 4px 0; white-space: nowrap; text-transform: uppercase; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.search-link { color: var(--ink); cursor: pointer; display: flex; padding: 6px; }
.search-toggle { height: 1px; opacity: 0; position: absolute; width: 1px; }
.search-toggle:focus-visible + .search-link { outline: 2px solid var(--red); outline-offset: 2px; }
.search-toggle:checked + .search-link { color: var(--red); }
.search-panel { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(39, 39, 39, .08); display: none; gap: 12px; left: 0; padding: 18px max(28px, calc((100% - 1250px) / 2)); position: absolute; right: 0; top: 100%; z-index: 3; }
.search-toggle:checked ~ .search-panel { display: flex; }
.search-panel input, .search-page-form input { background: #fff; border: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); flex: 1; font: 400 15px 'Montserrat', sans-serif; min-width: 0; padding: 12px 14px; }
.search-panel input:focus, .search-page-form input:focus { border-color: var(--red); outline: 2px solid var(--red-soft); }
.search-link svg { fill: none; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; width: 24px; }
.search-link:hover { color: var(--red); }
.menu-toggle, .menu-button { display: none; }
.sr-only { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }

/* ---------- Encabezado de página interna ---------- */
.page-heading { background: var(--soft); border-bottom: 1px solid var(--line); padding: 48px 0 52px; }

/* ---------- Inicio ---------- */
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; max-width: 520px; padding: 0; }
.hero-points li { color: var(--text); font-size: 14px; }
.hero-points li::before { color: var(--red); content: '•'; margin-right: 8px; }
/* ---------- Carrusel del hero (CSS puro, 4 diapositivas) ----------
   Automático: rota cada 6 s con fundido (ciclo de 24 s) y se pausa con el mouse o el teclado.
   Manual: al elegir una flecha o un punto se marca un radio y se detiene la rotación automática. */
.hero-carousel { --hero-cycle: 24s; background: var(--soft); overflow: hidden; position: relative; }
.hero-radio { height: 1px; opacity: 0; pointer-events: none; position: absolute; width: 1px; }
.hero-viewport { overflow: hidden; }
.hero-track { display: grid; }
.hero-slide { background: var(--soft); grid-area: 1 / 1; opacity: 0; overflow: hidden; position: relative; visibility: hidden; }
.hero-slide:nth-child(1) { opacity: 1; visibility: visible; }
.hero-link { display: block; overflow: hidden; }
.hero-slide img { aspect-ratio: 3 / 1; object-fit: cover; transform-origin: 60% 50%; width: 100%; }

@keyframes hero-fade {
  0%, 25% { opacity: 1; visibility: visible; }
  29.17%, 95.83% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}
@keyframes hero-zoom {
  0% { transform: scale(1); }
  29.17% { transform: scale(1.06); }
  29.18%, 100% { transform: scale(1); }
}
@keyframes hero-on {
  0%, 24.99% { visibility: visible; }
  25%, 100% { visibility: hidden; }
}
@keyframes hero-dot {
  0%, 25% { background: var(--red); width: 28px; }
  29.17%, 95.83% { background: rgba(255, 255, 255, .7); width: 10px; }
  100% { background: var(--red); width: 28px; }
}
.hero-slide { animation: hero-fade var(--hero-cycle) infinite; }
.hero-slide img { animation: hero-zoom var(--hero-cycle) linear infinite; }
.hero-slide:nth-child(2), .hero-slide:nth-child(2) img, .hero-arrow-set.set-2, .hero-dots label:nth-child(2) { animation-delay: -18s; }
.hero-slide:nth-child(3), .hero-slide:nth-child(3) img, .hero-arrow-set.set-3, .hero-dots label:nth-child(3) { animation-delay: -12s; }
.hero-slide:nth-child(4), .hero-slide:nth-child(4) img, .hero-arrow-set.set-4, .hero-dots label:nth-child(4) { animation-delay: -6s; }
.hero-carousel:hover :is(.hero-slide, .hero-slide img, .hero-arrow-set, .hero-dots label),
.hero-carousel:focus-within :is(.hero-slide, .hero-slide img, .hero-arrow-set, .hero-dots label) { animation-play-state: paused; }

/* Modo manual: un radio marcado detiene la animación y muestra su diapositiva con fundido. */
.hero-radio:checked ~ .hero-viewport .hero-slide { animation: none; opacity: 0; transition: opacity .8s ease, visibility 0s .8s; visibility: hidden; }
.hero-radio:checked ~ .hero-viewport .hero-slide img { animation: none; transform: scale(1); }
#hero-1:checked ~ .hero-viewport .hero-slide:nth-child(1),
#hero-2:checked ~ .hero-viewport .hero-slide:nth-child(2),
#hero-3:checked ~ .hero-viewport .hero-slide:nth-child(3),
#hero-4:checked ~ .hero-viewport .hero-slide:nth-child(4) { opacity: 1; transition: opacity .8s ease, visibility 0s; visibility: visible; }

.hero-caption { display: flex; flex-direction: column; inset: 0; justify-content: center; margin: 0 auto; max-width: 1250px; padding: 0 var(--gutter); pointer-events: none; position: absolute; }
.hero-caption a { align-self: flex-start; margin-top: 30px; pointer-events: auto; }
.hero-title { font-size: clamp(56px, 8vw, 124px); font-weight: 800; letter-spacing: -.04em; line-height: .9; margin: 0 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; max-width: 520px; padding: 0; }
.hero-points li { color: var(--text); font-size: 14px; }
.hero-points li::before { color: var(--red); content: '•'; margin-right: 8px; }

.hero-arrows { inset: 0; pointer-events: none; position: absolute; }
.hero-arrow-set { animation: hero-on var(--hero-cycle) infinite; visibility: hidden; }
.hero-arrow-set.set-1 { visibility: visible; }
.hero-radio:checked ~ .hero-arrows .hero-arrow-set { animation: none; visibility: hidden; }
#hero-1:checked ~ .hero-arrows .set-1, #hero-2:checked ~ .hero-arrows .set-2,
#hero-3:checked ~ .hero-arrows .set-3, #hero-4:checked ~ .hero-arrows .set-4 { visibility: visible; }
.hero-arrow { align-items: center; background: rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 4px 14px rgba(39, 39, 39, .15); color: var(--ink); cursor: pointer; display: flex; font-size: 30px; height: 46px; justify-content: center; line-height: 1; pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); transition: background .2s ease, color .2s ease; user-select: none; width: 46px; }
.hero-arrow:hover { background: var(--red); color: #fff; }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots { bottom: 20px; display: flex; gap: 10px; left: 50%; position: absolute; transform: translateX(-50%); z-index: 2; }
.hero-dots label { animation: hero-dot var(--hero-cycle) infinite; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .7); border-radius: 6px; cursor: pointer; height: 10px; transition: width .3s ease, background .3s ease; width: 10px; }
.hero-dots label:nth-child(1) { background: var(--red); width: 28px; }
.hero-radio:checked ~ .hero-dots label { animation: none; background: rgba(255, 255, 255, .7); width: 10px; }
#hero-1:checked ~ .hero-dots label:nth-child(1), #hero-2:checked ~ .hero-dots label:nth-child(2),
#hero-3:checked ~ .hero-dots label:nth-child(3), #hero-4:checked ~ .hero-dots label:nth-child(4) { background: var(--red); width: 28px; }
#hero-1:focus-visible ~ .hero-dots label:nth-child(1), #hero-2:focus-visible ~ .hero-dots label:nth-child(2),
#hero-3:focus-visible ~ .hero-dots label:nth-child(3), #hero-4:focus-visible ~ .hero-dots label:nth-child(4) { outline: 2px solid var(--red); outline-offset: 3px; }

.promo { align-items: center; display: grid; gap: 50px; grid-template-columns: 1.3fr 1fr; padding-bottom: 20px; padding-top: 90px; }
.promo img { width: 100%; }
.promo-copy p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 18px 0 26px; }
.featured { padding-bottom: 80px; padding-top: 80px; }
.visit-count { color: var(--red); font-size: 24px; letter-spacing: .04em; margin-top: 60px; text-align: right; }
/* El número real (imagen de api/visitas.php) tapa el de respaldo; sin PHP la imagen no ocupa espacio y queda el respaldo. */
.visit-number { display: inline-block; position: relative; }
.visit-number img { height: 30px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: auto; }
.visit-count .visit-label { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Tarjetas de producto ---------- */
.product-grid { display: grid; gap: 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; }
.product-card a { display: block; }
.product-image { align-items: center; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); display: flex; justify-content: center; overflow: hidden; }
.product-image img { height: 100%; object-fit: contain; transition: transform .3s ease; width: 100%; }
.product-card a:hover .product-image img { transform: scale(1.05); }
.product-card h3 { font-size: 14px; font-weight: 700; letter-spacing: .1em; margin: 16px 0 6px; }
.product-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }

/* ---------- Catálogo y listados ---------- */
.shop-layout { align-items: start; display: grid; gap: 50px; grid-template-columns: 240px minmax(0, 1fr); padding-bottom: 100px; padding-top: 60px; }
.shop-sidebar { position: sticky; top: 110px; }
.shop-sidebar summary { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .14em; list-style: none; margin-bottom: 14px; text-transform: uppercase; }
.shop-sidebar summary::-webkit-details-marker { display: none; }
.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree > li { border-bottom: 1px solid var(--line); }
.cat-tree a { color: var(--ink); display: block; font-size: 13px; line-height: 1.4; padding: 10px 0; }
.cat-tree ul { padding: 0 0 10px 14px; }
.cat-tree ul a { color: var(--muted); font-size: 12px; padding: 5px 0; }
.cat-tree a:hover, .cat-tree a.current { color: var(--red); }
.category-grid { display: grid; gap: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-image { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); margin-bottom: 16px; overflow: hidden; }
.category-image img { height: 100%; object-fit: cover; transition: transform .3s ease; width: 100%; }
.category-card:hover .category-image img { transform: scale(1.05); }
.category-card .eyebrow { font-size: 10px; margin-bottom: 6px; }
.category-card h3 { font-size: 18px; font-weight: 700; margin: 0; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sub-chips a { border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 12px; padding: 7px 14px; }
.sub-chips a:hover { border-color: var(--red); color: var(--red); }
.result-count { color: var(--muted); font-size: 13px; margin: 0; }
.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }

/* ---------- Ficha de producto ---------- */
.product-detail { align-items: start; display: grid; gap: 60px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-bottom: 40px; padding-top: 60px; }
.detail-image { background: #fff; border: 1px solid var(--line); }
.detail-image img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.detail-desc { font-size: 18px; line-height: 1.6; margin: 16px 0 26px; }
.specs { border-top: 1px solid var(--line); margin: 0 0 30px; }
.specs div { border-bottom: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: 170px 1fr; padding: 12px 0; }
.specs dt { color: var(--muted); font-size: 13px; }
.specs dd { font-size: 14px; margin: 0; }
.specs .spec-note { grid-template-columns: 1fr; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-cats { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 28px; }
.detail-cats span { color: var(--ink); font-weight: 700; }
.detail-cats a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.related { padding-bottom: 100px; padding-top: 50px; }

/* ---------- Páginas informativas ---------- */
.about { align-items: center; display: grid; gap: 60px; grid-template-columns: 1fr 1fr; padding-bottom: 100px; padding-top: 70px; }
.about article + article { margin-top: 36px; }
.about h2 { font-size: 28px; margin-bottom: 14px; }
.about p, .prose p { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 0 0 14px; }
.about-image img { width: 100%; }
.prose { max-width: 900px; padding-bottom: 100px; padding-top: 60px; }
.prose h2 { font-size: 24px; margin: 44px 0 16px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--red); text-decoration: underline; overflow-wrap: anywhere; }
.map-frame { aspect-ratio: 16 / 7; border: 1px solid var(--line); margin-top: 60px; }
/* Google My Maps agrega una barra de 59 px con noprof=1 (título y aviso); se recorta subiendo el mapa. Los créditos de Google quedan abajo. */
.map-frame { --mymaps-bar: 59px; overflow: hidden; position: relative; }
.map-frame iframe { border: 0; display: block; height: calc(100% + var(--mymaps-bar)); margin-top: calc(-1 * var(--mymaps-bar)); width: 100%; }
.branches { padding-top: 60px; }
.branches:last-child { padding-bottom: 100px; }
.branch-list { display: grid; gap: 0 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 30px 0 0; padding: 0; }
.branch-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.branch-list h3 { font-size: 14px; margin: 0 0 4px; }
.branch-list a, .branch-list span { color: var(--muted); font-size: 13px; }
.branch-list a:hover { color: var(--red); }
.contact { display: grid; gap: 70px; grid-template-columns: 1fr 1.4fr; padding-bottom: 100px; padding-top: 60px; }
.contact-info p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.contact-info .contact-big { color: var(--red); font-size: 22px; margin: 10px 0; }
.contact-form { display: grid; gap: 18px 24px; grid-template-columns: 1fr 1fr; }
.contact-form label { color: var(--muted); display: grid; font-size: 12px; gap: 8px; letter-spacing: .04em; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { background: #fff; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: 400 15px 'Montserrat', sans-serif; padding: 12px 14px; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); outline: 2px solid var(--red-soft); }
.contact-form button { justify-self: start; }
.store { padding-bottom: 110px; padding-top: 70px; text-align: center; }
.store-note { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 16px auto 0; max-width: 520px; }
.store-secondary { color: var(--red); display: block; font-size: 13px; font-weight: 600; margin-top: 30px; }
.store-secondary:hover { color: var(--red-dark); }
.store-cart { align-items: center; color: var(--red); display: inline-flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.store-cart svg { fill: none; height: 130px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; transition: transform .2s ease; width: 130px; }
.store-cart:hover svg { transform: scale(1.06); }
.store-cart span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.policy { padding-bottom: 110px; padding-top: 70px; }
.policy blockquote { border-left: 3px solid var(--red); margin: 0; max-width: 860px; padding-left: 34px; }
.policy blockquote p { font-style: italic; font-weight: 300; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; margin: 0 0 24px; }
.policy blockquote footer { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.doc-download { padding-bottom: 110px; padding-top: 70px; }
.doc-download a, .catalog-download { align-items: center; display: inline-flex; gap: 20px; }
.doc-download img { width: 119px; }
.doc-download span, .catalog-download span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.doc-download b, .catalog-download b { color: var(--red); margin-left: 8px; }
.certs { align-items: center; display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 110px; padding-top: 70px; }
.certs figure { align-items: center; background: #fff; border: 1px solid var(--line); display: flex; justify-content: center; margin: 0; min-height: 260px; padding: 30px; }
.certs img { max-height: 420px; object-fit: contain; }
.hp { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.form-alerts { display: contents; }
.form-alert { border-left: 4px solid; display: none; grid-column: 1 / -1; font-size: 14px; line-height: 1.7; margin: 0; padding: 14px 18px; scroll-margin-top: 110px; }
.form-alert:target { display: block; }
.form-alert.ok { background: #eaf6ee; border-color: #2e8b57; color: #1f5f3b; }
.form-alert.err { background: var(--red-soft); border-color: var(--red); color: var(--red-dark); }
.form-alert a { color: inherit; text-decoration: underline; }
.search-results { padding-bottom: 100px; padding-top: 50px; }
.search-page-form { display: flex; gap: 12px; margin-bottom: 26px; max-width: 680px; }
.search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-cat { color: var(--red); display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; margin-top: 14px; text-transform: uppercase; }
.card-cat + h3 { margin-top: 6px; }
.text-link { color: var(--red); text-decoration: underline; }
.empty-state { color: var(--muted); padding-bottom: 140px; padding-top: 70px; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 80px var(--gutter) 25px; }
.footer-grid { display: grid; gap: 60px; grid-template-columns: 1.1fr 1.2fr .8fr; margin: auto; max-width: 1250px; }
.footer-grid h2 { font-size: 30px; margin-bottom: 22px; }
.footer-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 6px; max-width: 320px; }
.footer-grid p a, .store-link { color: var(--red); font-size: 13px; text-decoration: underline; text-decoration-color: rgba(220, 67, 72, .4); text-underline-offset: 4px; }
.store-label { margin-top: 24px !important; }
.month-list { display: grid; gap: 14px; }
.month-item { align-items: center; display: flex; gap: 14px; }
.month-item img { background: #fff; border: 1px solid var(--line); flex: none; height: 70px; object-fit: contain; width: 70px; }
.month-item span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.month-item b { color: var(--ink); display: block; font-size: 13px; letter-spacing: .08em; }
.month-item:hover b { color: var(--red); }
.catalog-download img { width: 90px; }
.footer-bottom { border-top: 1px solid var(--line-strong); color: var(--muted); display: flex; font-size: 11px; justify-content: space-between; letter-spacing: .06em; margin: 70px auto 0; max-width: 1250px; padding-top: 18px; text-transform: uppercase; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp { align-items: center; background: #25d366; border-radius: 50%; bottom: 24px; box-shadow: 0 8px 22px rgba(18, 94, 52, .35); color: #fff; display: flex; height: 58px; justify-content: center; position: fixed; right: 24px; transition: transform .2s ease, box-shadow .2s ease; width: 58px; z-index: 20; }
.whatsapp svg { fill: currentColor; height: 32px; width: 32px; }
.whatsapp:hover { box-shadow: 0 12px 28px rgba(18, 94, 52, .45); transform: scale(1.08); }
.whatsapp:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1280px) {
  .menu-button { cursor: pointer; display: flex; flex-direction: column; gap: 5px; margin-left: auto; padding: 10px; }
  .menu-button span { background: var(--ink); display: block; height: 2px; transition: transform .2s ease, opacity .2s ease; width: 24px; }
  .main-nav { align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(39, 39, 39, .08); display: none; flex-direction: column; gap: 0; left: 0; max-height: calc(100vh - 84px); overflow-y: auto; padding: 8px 28px 20px; position: absolute; right: 0; top: 100%; }
  .main-nav a { border-bottom: 1px solid var(--line); font-size: 12px; padding: 14px 0; white-space: normal; }
  .menu-toggle:checked ~ .main-nav { display: flex; }
  .menu-toggle:checked + .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .menu-button span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--red); }
  .menu-toggle { display: block; height: 1px; opacity: 0; position: absolute; width: 1px; }
}

@media (max-width: 1024px) {
  .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { gap: 36px; grid-template-columns: 200px minmax(0, 1fr); }
  .branch-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { gap: 40px; grid-template-columns: 1fr 1fr; }
  .footer-grid section:last-child { grid-column: 1 / -1; }
  .contact { gap: 40px; grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .header-inner { min-height: 70px; padding: 8px 20px; }
  .brand img { height: 46px; width: 84px; }
  .main-nav { max-height: calc(100vh - 70px); padding: 6px 20px 18px; }
  .page-heading { padding: 32px 0 36px; }
  .hero-caption { background: var(--soft); inset: auto; padding: 28px var(--gutter) 56px; position: static; }
  .hero-title { font-size: clamp(48px, 16vw, 72px); margin-bottom: 18px; }
  .hero-caption a { margin-top: 22px; }
  .hero-arrow { font-size: 22px; height: 34px; width: 34px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-dots { bottom: 8px; gap: 6px; }
  .hero-dots label { height: 8px; width: 8px; }
  .search-panel { padding: 14px 20px; }
  .search-panel .solid-button, .search-page-form .solid-button { padding: 12px 14px; }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-results { padding-bottom: 70px; padding-top: 30px; }
  .promo { gap: 28px; grid-template-columns: 1fr; padding-top: 60px; }
  .featured { padding-bottom: 60px; padding-top: 60px; }
  .product-grid, .shop-grid, .category-grid { gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .product-card h3 { font-size: 12px; }
  .product-card p { font-size: 12px; }
  .visit-count { margin-top: 44px; text-align: left; }
  .shop-layout { gap: 26px; grid-template-columns: 1fr; padding-bottom: 70px; padding-top: 30px; }
  .shop-sidebar { border: 1px solid var(--line); padding: 14px 16px 0; position: static; }
  .shop-sidebar details:not([open]) summary { margin-bottom: 14px; }
  .shop-sidebar summary::after { content: ' +'; }
  .shop-sidebar details[open] summary::after { content: ' −'; }
  .category-card h3 { font-size: 18px; }
  .product-detail { gap: 30px; grid-template-columns: 1fr; padding-top: 30px; }
  .specs div { gap: 4px; grid-template-columns: 1fr; }
  .detail-actions a { flex: 1 1 auto; justify-content: center; }
  .related { padding-bottom: 70px; padding-top: 30px; }
  .about { gap: 36px; grid-template-columns: 1fr; padding-bottom: 70px; padding-top: 40px; }
  .prose { padding-bottom: 70px; padding-top: 40px; }
  .map-frame { aspect-ratio: 4 / 3; margin-top: 40px; }
  .branch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { padding-bottom: 70px; padding-top: 40px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form button { justify-self: stretch; justify-content: center; }
  .certs { gap: 20px; grid-template-columns: 1fr; padding-bottom: 70px; padding-top: 40px; }
  .certs figure { min-height: 0; padding: 20px; }
  .policy, .doc-download, .store { padding-bottom: 80px; padding-top: 40px; }
  .doc-download a { align-items: flex-start; flex-direction: column; }
  .site-footer { padding: 60px var(--gutter) 22px; }
  .footer-grid { gap: 44px; grid-template-columns: 1fr; }
  .footer-grid h2 { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 50px; padding-bottom: 64px; }
  .whatsapp { bottom: 16px; height: 52px; right: 16px; width: 52px; }
  .whatsapp svg { height: 28px; width: 28px; }
}

@media (max-width: 420px) {
  .branch-list { grid-template-columns: 1fr; }
  .product-grid, .shop-grid, .category-grid { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img, .hero-arrow-set, .hero-dots label { animation: none !important; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
