/* =====================================================================
   Veo Veo Regalos — components.css
   Componentes reutilizables: botones, header/nav, cards, chips, equipos, galería, cabecera interior, barra móvil,
   footer, modal demo.
   Estándar WEB AranduCAD: main.css (tokens, base, layout) · components.css (componentes) · pages/*.css (por página).
   ===================================================================== */

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--brass); --btn-fg: var(--brass-ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--brass-2); box-shadow: 0 12px 30px -12px rgba(232, 97, 26, .6); }
.btn:active { transform: translateY(0); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--bone); --btn-bd: rgba(243, 238, 229, .35); }
.btn--secondary:hover { background: rgba(243, 238, 229, .08); box-shadow: none; border-color: var(--bone); }
.theme-light .btn--secondary { --btn-fg: var(--ink); --btn-bd: rgba(19, 18, 17, .3); }
.theme-light .btn--secondary:hover { background: rgba(19, 18, 17, .06); border-color: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brass-2); padding-inline: .5rem; min-height: 40px; }
.btn--ghost:hover { background: transparent; box-shadow: none; transform: none; text-decoration: underline; text-underline-offset: 4px; }
.btn--wa { --btn-bg: #25d366; --btn-fg: #06301a; }
.btn--wa:hover { background: #3ee07a; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .6); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brass-2); }
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.theme-light .link-arrow { color: #d02020; }

/* ---------- Header / nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(19, 18, 17, .85), rgba(19, 18, 17, 0));
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.header.is-solid { background: rgba(19, 18, 17, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
/* Logo blanco.png tal cual lo guardó el cliente, completo y sin recortar. */
.logo img { display: block; height: 56px; width: auto; }
.footer .logo img { height: 48px; }
.footer .logo__text { font-size: 1.05rem; }
.nav { display: none; }
.nav__list { display: flex; gap: .25rem; }
.nav__link { display: inline-block; padding: .55rem .9rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; color: var(--bone-2); transition: background .2s, color .2s; }
.nav__link:hover { background: rgba(243, 238, 229, .08); color: var(--bone); }
.nav__link[aria-current="page"] { color: var(--brass-2); }
.header__cta { display: none; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: center; border-radius: var(--radius-pill); border: 1px solid var(--line); }
.burger span { width: 20px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav, .header__cta { display: block; }
  .burger { display: none; }
}

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 49; background: rgba(12, 11, 10, .98); padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem; display: grid; align-content: space-between; transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.is-open { transform: none; }
.drawer__list { display: grid; gap: .25rem; }
.drawer__link { display: block; padding: .9rem 0; font-family: var(--font-display); font-size: 2rem; border-bottom: 1px solid var(--line); }
.drawer__link[aria-current="page"] { color: var(--brass-2); }
.drawer__foot { display: grid; gap: .75rem; }
body.drawer-open { overflow: hidden; }

/* ---------- Cards ---------- */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); border-color: rgba(232, 97, 26, .45); box-shadow: var(--shadow); }
.card__body { padding: 1.25rem 1.35rem 1.4rem; display: grid; gap: .6rem; }
.theme-light .card { background: #fff; border-color: var(--line-dark); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--bone-2); background: rgba(243, 238, 229, .04); }
.chip--brass { border-color: rgba(232, 97, 26, .5); color: var(--brass-2); background: rgba(232, 97, 26, .1); }
.theme-light .chip { border-color: var(--line-dark); color: var(--ink); background: rgba(19, 18, 17, .04); }
.chip-toggle { padding: .55rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--bone-2); transition: background .2s, color .2s, border-color .2s; }
.chip-toggle:hover { border-color: var(--bone-3); color: var(--bone); }
.chip-toggle[aria-pressed="true"], .chip-toggle.is-active { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }

.badge { display: inline-block; padding: .18rem .55rem; border-radius: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--brass); color: var(--brass-ink); }
.badge--outline { background: transparent; border: 1px solid var(--brass); color: var(--brass-2); }
.theme-light .badge--outline { color: #d02020; }

/* Accordion */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; text-align: left; font-weight: 700; font-size: 1.05rem; }
.acc__btn::after { content: '+'; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--brass-2); transition: transform .3s var(--ease); flex: none; }
.acc__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel p { padding-bottom: 1.2rem; color: var(--muted); max-width: 65ch; }
.theme-light .acc, .theme-light .acc__item { border-color: var(--line-dark); }
.theme-light .acc__panel p { color: var(--muted-2); }
.theme-light .acc__btn::after { color: #d02020; }

/* Formularios */
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--bone-2); }
.input { width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(243, 238, 229, .2); background: rgba(243, 238, 229, .04); color: var(--bone); transition: border-color .2s, background .2s; }
.input::placeholder { color: var(--muted-2); }
.input:focus { border-color: var(--brass); background: rgba(243, 238, 229, .06); outline: none; }
.input[aria-invalid="true"] { border-color: #d96b6b; }
.field__error { font-size: .8rem; color: #e39a9a; min-height: 1em; }
textarea.input { min-height: 96px; resize: vertical; }
.theme-light .field label { color: var(--ink); }
.theme-light .input { border-color: var(--line-dark); background: rgba(19, 18, 17, .03); color: var(--ink); }
.theme-light .input::placeholder { color: var(--muted-2); }
.theme-light .input:focus { background: #fff; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 20px); z-index: 80; background: var(--bone); color: var(--ink); padding: .8rem 1.2rem; border-radius: var(--radius-pill); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Barra móvil fija ---------- */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(12, 11, 10, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn--wa { padding-inline: .9rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
body.has-mobile-bar { padding-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: #0c0b0a; border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 calc(2rem + 76px); }
@media (min-width: 900px) { .footer { padding-bottom: 2rem; } }
.footer__grid { display: grid; gap: 2rem 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (min-width: 900px) { .footer__grid--5 { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; } }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer__list { display: grid; gap: .55rem; }
.footer__list a { color: var(--bone); }
.footer__list a:hover { color: var(--brass-2); }
.footer__list a[data-contact-whatsapp] { white-space: nowrap; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .82rem; color: var(--muted); }
.footer__bottom a:hover { color: var(--bone); }

/* ---------- Modo demostración: simulación de acciones externas ---------- */
.demo-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--gutter); background: rgba(12, 11, 10, .78); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.demo-modal.is-open { opacity: 1; pointer-events: auto; }
.demo-modal__card { width: min(560px, 100%); display: grid; gap: .9rem; padding: 1.6rem 1.5rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--bone); transform: translateY(12px); transition: transform .3s var(--ease); }
.demo-modal.is-open .demo-modal__card { transform: none; }
.demo-modal__card h3 { font-size: 1.4rem; }
.demo-modal__lead { color: var(--bone-2); }
.demo-modal__detail { font-size: .85rem; }
.map-demo { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1.5rem; text-align: center; background: linear-gradient(rgba(19, 18, 17, .35), rgba(19, 18, 17, .75)); color: var(--bone-2); font-size: .95rem; }
.map-demo p { max-width: 32ch; }
.demo-modal [hidden] { display: none !important; }

/* ---------- Modal de cotización (Solicitar cotización) ---------- */
.quote-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--gutter); background: rgba(12, 11, 10, .78); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.quote-modal.is-open { opacity: 1; pointer-events: auto; }
.quote-modal__card { position: relative; width: min(640px, 100%); max-height: 88vh; overflow-y: auto; display: grid; gap: 1rem; padding: 2rem 1.75rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--bone); transform: translateY(12px); transition: transform .3s var(--ease); }
.quote-modal.is-open .quote-modal__card { transform: none; }
.quote-modal__card h3 { font-size: 1.6rem; }
.quote-modal__card .lead { color: var(--bone-2); max-width: none; }
.quote-modal__close { position: absolute; top: 1rem; right: 1rem; }
body.quote-modal-open { overflow: hidden; }


/* ---------- EQUIPOS (catálogo) ---------- */
.equip-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .equip-grid { grid-template-columns: repeat(2, 1fr); } }
.equip { display: flex; flex-direction: column; }
.equip .equip__media { flex: none; }
.equip .card__body { flex: 1; display: flex; flex-direction: column; }
.equip__media { background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.equip__media img { object-fit: contain; padding: 1.5rem; }
.equip__desc { font-size: .92rem; color: var(--muted); }
.theme-light .equip__desc { color: var(--muted-2); }
.equip__specs { display: grid; gap: .25rem; font-size: .82rem; color: var(--muted); margin: .2rem 0; }
.theme-light .equip__specs { color: var(--muted-2); }
.equip__specs strong { color: inherit; font-weight: 700; }
.equip .pro__tags { margin-top: .1rem; }
.equip .btn { margin-top: auto; }

/* ---------- Nota destacada (seguridad, avisos) ---------- */
.how__note { display: flex; gap: .75rem; align-items: start; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: rgba(232, 97, 26, .08); border: 1px solid rgba(232, 97, 26, .3); font-size: .9rem; color: var(--bone-2); }
.theme-light .how__note, .theme-blue .how__note { color: var(--bone); }
.theme-light .how__note { color: var(--ink); }

/* ---------- GUÍA DE CAPACIDADES (tabla de tratamientos) ---------- */
.guide-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; margin-top: 1.5rem; border-radius: var(--radius); background: rgba(232, 97, 26, .07); border: 1px solid rgba(232, 97, 26, .3); transition: background .2s, border-color .2s, transform .25s var(--ease); }
.guide-callout:hover { background: rgba(232, 97, 26, .13); border-color: rgba(232, 97, 26, .55); transform: translateY(-2px); }
.guide-callout strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.guide-callout span:not(.link-arrow) { color: var(--muted); font-size: .92rem; }
.theme-light .guide-callout span:not(.link-arrow) { color: var(--muted-2); }
.guide-callout .link-arrow { flex: none; }
.guide-table-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.guide-table { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.guide-table th, .guide-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--line-dark); }
.guide-table th:not(:first-child), .guide-table td:not(:first-child) { text-align: center; white-space: nowrap; }
.guide-table thead th { background: var(--ink); color: var(--bone); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.guide-table tbody tr:nth-child(even) { background: rgba(19, 18, 17, .04); }
.guide-table tbody tr:hover { background: rgba(232, 97, 26, .08); }
.guide-table td:first-child { font-weight: 600; color: var(--ink); }
.guide-table td:not(:first-child) { color: var(--muted-2); }
/* Encabezado y primera columna fijos al desplazar (pedido del cliente, 25/09): siempre se ven los modelos y el ambiente. */
.guide-table thead th { position: sticky; top: 0; z-index: 2; }
.guide-table th:first-child, .guide-table td:first-child { position: sticky; left: 0; }
.guide-table thead th:first-child { z-index: 3; }
.guide-table td:first-child { z-index: 1; background: #ffffff; box-shadow: 1px 0 0 var(--line-dark); }
.guide-table tbody tr:nth-child(even) td:first-child { background: #f2f4f6; }
.guide-table td.guide-ask { font-style: italic; }
/* Clientes */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.client-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.4rem; background: #ffffff; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.client-card:hover { border-color: var(--bone-3); }
.client-card__name { font-weight: 700; font-size: 1.05rem; }
.client-card__meta { color: var(--muted-2); font-size: .85rem; }

/* ---------- SERVICIOS (preview + página) ---------- */
.services-preview { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .services-preview { grid-template-columns: 1fr 1.25fr; align-items: start; } .services-preview__aside { position: sticky; top: calc(var(--nav-h) + 2rem); } }
.services-preview__aside { display: grid; gap: 1.25rem; }
.services-preview__aside .ratio { border-radius: var(--radius); }
.price-list { display: grid; }
.cat-nav { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; -ms-overflow-style: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: .55rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.cat-nav a:hover, .cat-nav a.is-active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.cat-block { padding-top: clamp(2rem, 4vw, 3rem); scroll-margin-top: calc(var(--nav-h) + 4rem); }
.cat-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .35rem; }
.cat-block > p { margin-bottom: 1.25rem; }
.services-note { display: grid; gap: .75rem; padding: 1.25rem 1.35rem; border-radius: var(--radius); background: rgba(19, 18, 17, .05); border: 1px solid var(--line-dark); font-size: .92rem; }
.services-note strong { font-weight: 800; }

.pro__tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- GALERÍA ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 3 / 4; background: var(--ink-3); cursor: zoom-in; transition: opacity .4s, transform .4s var(--ease); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item.is-hidden { display: none; }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 3.5rem 1rem 1rem; background: linear-gradient(to top, rgba(0, 0, 0, .85) 15%, transparent); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: #fff; transition: transform .3s var(--ease); }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: translateY(-2px); }
.gallery-preview { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery-preview { grid-template-columns: repeat(3, 1fr); } }
.gallery-preview .gallery__item:nth-child(n+5) { display: none; }
@media (min-width: 700px) { .gallery-preview .gallery__item:nth-child(n+5) { display: block; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 11, 10, .96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; height: 72vh; width: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); }
.lightbox__cap { font-size: .9rem; color: var(--bone-2); }
.lightbox__nav { display: flex; gap: .5rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(243, 238, 229, .05); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: rgba(243, 238, 229, .12); border-color: var(--bone-3); }
.icon-btn svg { width: 20px; height: 20px; }
body.lightbox-open { overflow: hidden; }

/* ---------- PÁGINA: cabecera interior ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1rem; }
.page-head .lead { max-width: 55ch; }

/* ---------- PÁGINA: contenido legal (prosa) ---------- */
.legal-content { max-width: 68ch; padding-bottom: clamp(3rem, 6vw, 5rem); display: grid; gap: 1.25rem; }
.legal-content p { color: var(--muted-2); line-height: 1.7; }
.legal-content h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 1rem; color: var(--ink); }
.legal-content a { color: #d02020; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Línea completa (equipos.html): tabla de 3 columnas que entra en el celular, con filas de familia. */
.guide-table--linea { min-width: 0; }
.guide-table--linea td:first-child { white-space: normal; }
.guide-table--linea td:nth-child(2) { white-space: normal; }
.guide-table--linea tbody th[colspan] { position: static; text-align: left; background: rgba(232, 97, 26, .12); color: var(--ink); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.guide-table-wrap:has(.guide-table--linea) { max-height: none; }
.guide-table--linea th, .guide-table--linea td { padding: .55rem .6rem; }
.guide-table--linea td:last-child { white-space: nowrap; text-align: right; }
.guide-table--linea { table-layout: fixed; }
.guide-table--linea tbody th[colspan] { white-space: normal; }
.guide-table--linea td:nth-child(2) { text-align: left; }
@media (max-width: 480px) { .guide-table--linea { font-size: .8rem; } }

/* Estructura de catálogo (S00181): logo con fondo blanco, grilla de marcas y beneficios. */
.logo--pill { background: #fff; border-radius: 10px; padding: 4px 10px; }
.logo--pill img { height: 40px; width: auto; }
.footer .logo--pill img { height: 36px; }
.marcas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.marca { margin: 0; background: #fff; border: 1px solid var(--line-dark, #e3e8ee); border-radius: var(--radius, 12px); padding: .75rem; display: flex; align-items: center; justify-content: center; }
.marca img { width: 100%; height: auto; }
.steps--6 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- S00182 · tienda: fotos reales grandes (4:5, sin margen) y 2 columnas desde el celular ---------- */
.equip-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 900px) { .equip-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.equip__media { background: var(--ink-3); }
.equip__media img { object-fit: cover; padding: 0; }
.equip .card__body { padding: .85rem .9rem 1rem; gap: .6rem; }
.equip h3 { font-size: clamp(.95rem, 2.6vw, 1.1rem); line-height: 1.25; flex: 1; }
@media (max-width: 480px) { .equip .btn { font-size: .78rem; padding-inline: .5rem; } }
.footer .logo--pill { justify-self: start; width: max-content; }

/* =====================================================================
   S00182 · corrección 96689: tienda online (cabecera con buscador, banner compacto, tarjetas parejas 1:1)
   Va en components.css para que la tienda (pages/equipos.html) también lo tenga.
   ===================================================================== */
.tienda { background: #fff; }
.tienda .header, .tienda .header.is-solid { background: #fff; box-shadow: 0 2px 14px rgba(22, 26, 44, .08); backdrop-filter: none; }
.tienda .nav__link { color: var(--ink); }
.tienda .nav__link:hover { background: rgba(214, 40, 40, .08); color: var(--brass); }
.tienda .nav__link[aria-current] { background: none; color: var(--ink); }
.tienda .burger span { background: var(--ink); }
.tienda .theme-light, .tienda.theme-light { background: #fff; color: var(--ink); }
.tienda .bg-crema { background: #fbf4ea; }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 51; height: 34px; display: flex; align-items: center; background: var(--brass); color: #fff; font-size: .8rem; font-weight: 600; }
.topbar__inner { display: flex; justify-content: center; gap: 1.5rem; white-space: nowrap; overflow: hidden; }
.topbar a { color: #fff; }
@media (max-width: 640px) { .topbar__inner { justify-content: space-between; gap: .6rem; font-size: .72rem; } .topbar__extra { display: none; } }
.topbar + .header { top: 34px; }
/* buscador de la cabecera */
.header-search { display: none; flex: 1; max-width: 360px; margin-inline: 1rem; position: relative; }
@media (min-width: 1000px) { .header-search { display: flex; } }
.header-search input { width: 100%; height: 42px; padding: 0 2.8rem 0 1rem; border-radius: var(--radius-pill); border: 1px solid rgba(22, 26, 44, .18); background: #f7f5f1; font: inherit; font-size: .9rem; color: var(--ink); }
.header-search input:focus { outline: 2px solid #8cc63f; background: #fff; }
.header-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #8cc63f; cursor: pointer; }
.drawer__foot .header-search { display: flex; max-width: none; margin: 0 0 .75rem; }
/* banner compacto, como la referencia */
.hero--compacto { min-height: 0; padding: calc(var(--nav-h) + 34px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero--compacto .hero__content { max-width: 620px; gap: 1rem; }
.hero--compacto h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
@media (max-width: 700px) { .hero--compacto { align-items: center; } }
/* categorías cuadradas, del mismo tamaño y con el texto debajo (nunca sobre la foto) */
.tienda .cat-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 760px) { .tienda .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
.tienda .cat-card__nombre { min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.tienda .cat-card--color .cat-card__sin-foto { font-size: 0; }
/* tarjetas de producto parejas: foto 1:1, nombre en 2 líneas, botón al pie */
.tienda .equip-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; align-items: stretch; }
@media (min-width: 900px) { .tienda .equip-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
.tienda .equip { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid rgba(22, 26, 44, .08); border-radius: 14px; box-shadow: 0 6px 20px -14px rgba(22, 26, 44, .35); }
.tienda .equip[hidden] { display: none; }
.tienda .equip .card__body { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: .8rem .85rem .95rem; }
.tienda .equip h3 { flex: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font-size: clamp(.9rem, 2.4vw, 1rem); line-height: 1.25; color: var(--ink); }
.tienda .equip .btn { margin-top: auto; }
.tienda .equip__cat { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brass); }
/* tienda: buscador y filtros */
.tienda-tools { margin-bottom: 1rem; }
.tienda .buscador .input { width: 100%; background: #fff; border: 1px solid rgba(22, 26, 44, .18); color: var(--ink); }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .filtros { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; } .filtros .chip-toggle { flex: none; } }
.tienda .chip-toggle { color: var(--ink); border-color: rgba(22, 26, 44, .18); background: #fff; }
.tienda .chip-toggle[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: #fff; }
.tienda .cat-block[hidden] { display: none; }
.tienda .cat-block h2 { color: var(--ink); padding-bottom: .5rem; margin-bottom: 1rem; border-bottom: 3px solid #ffc93c; }
.tienda .page-head { padding-top: calc(var(--nav-h) + 34px + 2rem); }
.tienda .page-head h1, .tienda .page-head .eyebrow { color: var(--ink); }

/* =====================================================================
   S00182 · carrito, ficha de producto y botones de compra (corrección 96696)
   ===================================================================== */
.btn--carrito { background: #d62828; color: #fff; border-color: #d62828; }
.btn--carrito:hover { background: #b81f1f; }
.btn--carrito.is-added { background: #2f9e44; border-color: #2f9e44; }
.btn--carrito-head { background: #d62828; color: #fff; border-color: #d62828; gap: .4rem; }
.cart-badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: #ffc93c; color: #1d1a18; font-size: .75rem; font-weight: 800; }
.cart-badge[hidden] { display: none; }
.tienda .equip__precio { font-weight: 800; color: var(--ink); font-size: .98rem; }
.tienda .equip h3 a { color: inherit; }
.tienda .equip__media { display: block; }
/* panel lateral */
.carrito__fondo { position: fixed; inset: 0; z-index: 90; background: rgba(22, 26, 44, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.carrito__fondo.is-open { opacity: 1; pointer-events: auto; }
.carrito { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(420px, 100%); display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; background: #fff; color: #1d1a18; box-shadow: -18px 0 40px -20px rgba(22, 26, 44, .5); transform: translateX(105%); transition: transform .3s var(--ease); overflow-y: auto; }
.carrito.is-open { transform: none; }
body.carrito-abierto { overflow: hidden; }
.carrito__cab { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #ffc93c; padding-bottom: .6rem; }
.carrito__cab h2 { font-size: 1.3rem; color: #1d1a18; }
.carrito__x { border: 0; background: #f4efe7; width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.carrito__vacio { display: grid; gap: 1rem; justify-items: start; color: #5c5650; }
.carrito__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.carrito__item { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; align-items: start; padding-bottom: .8rem; border-bottom: 1px solid rgba(22, 26, 44, .08); }
.carrito__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.carrito__info { display: grid; gap: .3rem; }
.carrito__nombre { font-weight: 700; color: #1d1a18; line-height: 1.25; }
.carrito__precio { font-size: .85rem; color: #6d6660; }
.qty { display: flex; align-items: center; gap: .4rem; }
.qty button { width: 2rem; height: 2rem; border-radius: 8px; border: 1px solid rgba(22, 26, 44, .18); background: #fff; cursor: pointer; font-weight: 800; }
.qty span { min-width: 1.6rem; text-align: center; font-weight: 800; }
.qty .carrito__quitar { width: auto; padding: 0 .6rem; margin-left: auto; color: #d62828; border-color: transparent; font-weight: 700; font-size: .82rem; }
.carrito__tot { display: grid; gap: .35rem; padding: .9rem 1rem; border-radius: 12px; background: #fbf4ea; }
.carrito__tot div { display: flex; justify-content: space-between; }
.carrito__tot strong { font-size: 1.05rem; }
.carrito__form { display: grid; gap: .6rem; }
.carrito__form .input { background: #fff; border: 1px solid rgba(22, 26, 44, .18); color: #1d1a18; }
/* ficha de producto */
.ficha-pagina { padding-top: calc(var(--nav-h) + 34px + 1.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.migas { font-size: .85rem; color: #6d6660; margin-bottom: 1.25rem; }
.migas a { color: #d62828; }
.ficha { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .ficha { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.ficha__foto { border-radius: 16px; overflow: hidden; background: #f4efe7; aspect-ratio: 1; }
.ficha__foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha__info { display: grid; gap: .8rem; }
.ficha__nombre { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.12; color: #1d1a18; }
.ficha__precio { font-size: 1.5rem; font-weight: 800; color: #d62828; }
.ficha__sku { font-size: .85rem; color: #6d6660; letter-spacing: .04em; }
.ficha__desc { color: #4a4540; }
.ficha__compra { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.ficha__qty { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; color: #1d1a18; }
.qty-input { width: 90px; background: #fff; border: 1px solid rgba(22, 26, 44, .18); color: #1d1a18; }
.ficha__compra .btn--carrito { flex: 1; min-width: 200px; }
.relacionados { margin-top: clamp(2.5rem, 6vw, 4rem); }
/* corrección 96727: logo más grande y sin recuadro blanco (PNG transparente), en cabecera y pie */
.tienda .logo--pill, .footer .logo--pill { background: transparent; padding: 0; border-radius: 0; }
.tienda .header .logo--pill img { height: 60px; width: auto; }
@media (max-width: 700px) { .tienda .header .logo--pill img { height: 50px; } }
.footer .logo--pill img { height: 96px; width: auto; }

/* =====================================================================
   S00182 · corrección 97068: cabecera de tienda en dos filas (logo · buscador con categorías · carrito · WhatsApp;
   debajo, barra de navegación). Sin barra superior: envíos y horario quedan en la franja de beneficios.
   ===================================================================== */
.tienda .header--tienda, .tienda .header--tienda.is-solid { position: sticky; top: 0; height: auto; display: block; background: #fff; box-shadow: 0 2px 14px rgba(22, 26, 44, .08); }
.header--tienda .header__inner { height: 72px; gap: .6rem; }
.header--tienda .logo img { height: 54px; width: auto; transition: height .25s var(--ease); }
.header--tienda .header-search { display: none; }
.header--tienda .header-search--mob { display: flex; max-width: none; margin: 0; }
.header--tienda .header-search button { color: #fff; display: grid; place-items: center; }
.header__search-mob { padding-bottom: .7rem; }
.head-cart { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 8px; background: var(--brass); color: #fff; cursor: pointer; transition: background .2s; }
.head-cart:hover { background: #b81f1f; }
.head-cart .cart-badge { position: absolute; top: -7px; right: -7px; box-shadow: 0 0 0 2px #fff; }
.head-tel { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; color: var(--brass); font-weight: 800; font-size: 1rem; white-space: nowrap; }
.head-tel:hover { color: #b81f1f; }
.head-tel span { display: none; }
/* barra de navegación */
.header__bar { display: none; background: var(--brass); }
.header__bar .nav__list { display: flex; justify-content: center; gap: .25rem; }
.tienda .header--tienda .header__bar .nav__link { display: inline-flex; align-items: center; gap: .3rem; padding: .8rem 1.1rem; border: 0; border-radius: 0; background: none; color: #fff; font: inherit; font-size: .9rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.tienda .header--tienda .header__bar .nav__link:hover { background: rgba(0, 0, 0, .08); color: #fff; }
.tienda .header--tienda .header__bar .nav__link[aria-current] { text-decoration-line: underline; color: #fff; }
.nav__drop { position: relative; }
.nav__menu { display: none; position: absolute; top: 100%; left: 50%; z-index: 5; min-width: 250px; padding: .4rem 0; transform: translateX(-50%); background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 16px 30px -12px rgba(22, 26, 44, .35); }
.nav__drop.is-open .nav__menu, .nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { display: block; }
.nav__menu a { display: block; padding: .65rem 1.2rem; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav__menu a:hover { background: #fbf4ea; color: var(--brass); }
@media (min-width: 900px) {
  .header--tienda .header__inner { height: 112px; gap: 1.25rem; }
  .header--tienda .logo img { height: 96px; }
  .header--tienda.is-solid .header__inner { height: 84px; }
  .header--tienda.is-solid .logo img { height: 68px; }
  .header--tienda .header-search { display: flex; flex: 1; max-width: none; height: 48px; margin: 0 .75rem; border: 1px solid rgba(22, 26, 44, .18); border-radius: 999px; overflow: hidden; background: #fff; }
  .header--tienda .header-search:focus-within { border-color: #8cc63f; box-shadow: 0 0 0 3px rgba(140, 198, 63, .25); }
  .header--tienda .header-search select { flex: none; max-width: 190px; padding: 0 .9rem; border: 0; border-right: 1px solid rgba(22, 26, 44, .12); background: #f1eee9; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
  .header--tienda .header-search input { flex: 1; height: 100%; padding: 0 1rem; border: 0; border-radius: 0; background: #fff; font-size: .95rem; }
  .header--tienda .header-search input:focus { outline: 0; }
  .header--tienda .header-search button { position: static; width: 60px; height: 100%; border-radius: 0; }
  .header__search-mob { display: none; }
  .head-cart { margin-left: 0; }
  .head-tel span { display: inline; }
  .header__bar { display: block; }
  .tienda .header--tienda .burger { display: none; }
}
/* sin topbar ni header fijo: el contenido ya no necesita el hueco de antes */
.tienda .hero.hero--compacto { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.tienda .page-head { padding-top: 2rem; }
.tienda .ficha-pagina { padding-top: 1.5rem; }
.tienda .drawer { padding-top: 150px; background: #fff; }
.tienda .drawer__link { color: var(--ink); border-color: rgba(22, 26, 44, .1); }
.tienda .drawer__link[aria-current] { color: var(--brass); }
.tienda .cat-block, .ofertas-aviso { scroll-margin-top: 180px; }
/* ofertas (tienda) */
.ofertas-aviso { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; border: 2px dashed #ffc93c; border-radius: 14px; background: #fff7e0; color: var(--ink); }
.ofertas-aviso h2 { margin: .15rem 0 .35rem; font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--ink); }
.ofertas-aviso p { margin: 0; }
/* anclas (#contacto, #categorias…) no quedan tapadas por la cabecera fija (97254) */
.tienda section[id] { scroll-margin-top: 170px; }
@media (max-width: 899px) { .tienda section[id] { scroll-margin-top: 130px; } }
