/* =========================================================
   Refrigeración Are-Cold — hoja de estilos
   Tokens de marca al inicio para poder ajustar la paleta
   en vivo durante la reunión con el cliente.
   ========================================================= */

:root{
  /* --- Paleta: parte del azul real del logo --- */
  --ink:            #0E2436;
  --ink-soft:       #1B3B54;
  --blue-800:       #204a6b;
  --blue-700:       #2c5d84;
  --blue-600:       #3e6e9e; /* azul del logo */
  --blue-500:       #4a7ba6; /* azul del logo */
  --blue-400:       #6d97bf;
  --blue-300:       #9dbcd8;
  --blue-150:       #d3e3ef;
  --blue-100:       #e7f0f6;
  --frost:          #f6f9fb;
  --white:          #ffffff;

  /* --- Acento cálido: contraste contra el frío del producto --- */
  --accent:         #e07a29;
  --accent-dark:    #b85f1a;
  --accent-light:   #f5a75c;
  --accent-pale:    #fdedde;

  /* --- WhatsApp: solo en su propio componente --- */
  --whatsapp:       #25d366;
  --whatsapp-dark:  #1da851;

  /* --- Neutros de texto --- */
  --text-body:      #2c3e4a;
  --text-muted:     #5c7284;
  --text-on-dark:   #dce8f0;
  --text-on-dark-muted: #9db4c4;

  /* --- Estado --- */
  --focus-ring:     #e07a29;

  /* --- Tipografía --- */
  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

  /* --- Radios (sistema único: cards 18px, paneles grandes 22px, botones full-pill) --- */
  --radius-card: 18px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* --- Sombra: siempre con tinte azul, offset + blur --- */
  --shadow-sm: 0 2px 8px rgba(14, 36, 54, 0.08);
  --shadow-md: 0 10px 28px rgba(14, 36, 54, 0.14);
  --shadow-lg: 0 22px 48px rgba(14, 36, 54, 0.20);

  /* --- Layout --- */
  --container: 1240px;
  --header-h: 72px;

  color-scheme: light;
}

/* =========================================================
   Reset y base
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
input, textarea{ font: inherit; color: inherit; }

::selection{ background: var(--accent); color: var(--white); }

::-webkit-scrollbar{ width: 12px; height: 12px; }
::-webkit-scrollbar-track{ background: var(--blue-100); }
::-webkit-scrollbar-thumb{ background: var(--blue-400); border-radius: var(--radius-pill); border: 3px solid var(--blue-100); }
::-webkit-scrollbar-thumb:hover{ background: var(--blue-500); }

:focus-visible{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link{
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top .2s ease;
}
.skip-link:focus{ top: 1rem; }

.icon{ width: 1em; height: 1em; fill: none; flex-shrink: 0; }
.icon-sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden]{ display: none !important; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px){
  .container{ padding-inline: 2rem; }
}

.section{ padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--tight{ padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--frost{ background: var(--frost); }
.section--ink{ background: var(--ink); color: var(--text-on-dark); }

.section-head{
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section--ink .section-head h2{ color: var(--white); }
.section-head p{
  margin-top: .65rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 56ch;
}
.section--ink .section-head p{ color: var(--text-on-dark-muted); }

.section-head-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.section-head-row .section-head{ margin-bottom: 0; }

/* =========================================================
   Botones
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease, background-color .18s ease;
  line-height: 1;
}
.btn .icon{ width: 1.15em; height: 1.15em; }
.btn:active{ transform: scale(.97); }

.btn--primary{
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover{ background: var(--accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn--ghost{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn--ghost:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }

.btn--ghost-dark{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--blue-300);
}
.btn--ghost-dark:hover{ background: var(--blue-100); border-color: var(--blue-500); }

.btn--whatsapp{
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover{ background: var(--whatsapp-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn--sm{ padding: .6rem 1.15rem; font-size: .88rem; }
.btn--block{ width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--blue-150);
}
.site-header__bar{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__logo img{
  height: 38px;
  width: auto;
}
.site-header__nav{
  display: none;
}
@media (min-width: 1024px){
  .site-header__nav{
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }
  .site-header__nav a{
    font-weight: 600;
    font-size: .96rem;
    color: var(--ink-soft);
    position: relative;
    padding-block: .3rem;
  }
  .site-header__nav a::after{
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    transition: right .22s cubic-bezier(.16,1,.3,1);
  }
  .site-header__nav a:hover::after,
  .site-header__nav a[aria-current="page"]::after{ right: 0; }
  .site-header__nav a[aria-current="page"]{ color: var(--ink); }
}

.site-header__actions{
  display: flex;
  align-items: center;
  gap: .6rem;
}
.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background-color .18s ease;
}
.icon-btn:hover{ background: var(--blue-100); }
.icon-btn .icon{ width: 22px; height: 22px; }

.nav-toggle{ display: inline-flex; }
@media (min-width: 1024px){ .nav-toggle{ display: none; } }

.header-whatsapp{ display: none; }
@media (min-width: 480px){ .header-whatsapp{ display: inline-flex; } }

/* Buscador desplegable del header */
.search-panel{
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--blue-150);
  box-shadow: var(--shadow-md);
  padding-block: 1.1rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s cubic-bezier(.16,1,.3,1);
}
.search-panel.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.search-panel form{
  display: flex;
  gap: .6rem;
  align-items: center;
}
.search-panel input{
  flex: 1;
  border: 1.5px solid var(--blue-150);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: 1rem;
  background: var(--frost);
}
.search-panel input:focus-visible{ border-color: var(--accent); }

/* Menú móvil */
.mobile-nav{
  overflow-y: auto;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
}
.mobile-nav.is-open{ transform: translateX(0); }
.mobile-nav__top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.mobile-nav__top img{ height: 34px; }
.mobile-nav .icon-btn{ color: var(--white); }
.mobile-nav .icon-btn:hover{ background: rgba(255,255,255,.12); }
.mobile-nav__links{
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-nav__links a{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav__footer{
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.mobile-nav__contact{
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-on-dark-muted);
  font-size: .95rem;
}

body.nav-locked{ overflow: hidden; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  background: linear-gradient(155deg, var(--ink) 0%, var(--blue-800) 62%, var(--blue-700) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  position: relative;
}
.hero__grid{
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px){
  .hero__grid{
    grid-template-columns: .9fr 1.1fr;
    gap: 3rem;
  }
}
.hero__copy h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.hero__copy h1 em{
  font-style: normal;
  color: var(--accent-light);
}
.hero__copy p{
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--text-on-dark-muted);
  max-width: 46ch;
}
.hero__actions{
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* Franja de icing de hielo, recurso puntual */
.frost-divider{
  width: 100%;
  height: 34px;
  color: var(--white);
  display: block;
}
.frost-divider--top{ transform: scaleY(-1); }

.badge{
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.badge__icon{
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: none;
}
.badge--oferta{ background: var(--accent); color: var(--white); }
.badge--destacado{ background: var(--ink); color: var(--white); }
.badge--nuevo{ background: var(--white); color: var(--blue-700); border: 1.5px solid var(--blue-300); box-shadow: none; }

/* =========================================================
   Placeholder de foto de producto
   ========================================================= */
.photo-block{
  position: relative;
  aspect-ratio: 4/3;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, var(--blue-100) 0 14px, var(--blue-150) 14px 28px);
}
.photo-block .icon{
  width: 34%;
  height: 34%;
  max-width: 72px;
  max-height: 72px;
  color: var(--blue-400);
}
.photo-block--photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-block__tag{
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  font-size: .68rem;
  color: var(--blue-700);
  background: rgba(255,255,255,.82);
  padding: .25rem .55rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* =========================================================
   Grilla de productos
   ========================================================= */
.product-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px){
  .product-grid{ grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}
@media (min-width: 1024px){
  .product-grid{ grid-template-columns: repeat(4, 1fr); }
}

.product-card{
  background: var(--white);
  border: 1px solid var(--blue-150);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.product-card__media{ position: relative; }
.product-card__body{
  padding: .95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.product-card__cat{
  font-size: .74rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-card__name{
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.28;
}
.product-card button.product-card__open{
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}
.product-card__foot{ padding: 0 1rem 1rem; }
.product-card__foot .btn{ white-space: normal; line-height: 1.15; padding-inline: .7rem; text-align: center; }

/* =========================================================
   Catálogo: filtros
   ========================================================= */
.catalog-toolbar{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.catalog-search{
  position: relative;
}
.catalog-search .icon{
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--text-muted);
}
.catalog-search input{
  width: 100%;
  padding: .9rem 1rem .9rem 2.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-150);
  background: var(--frost);
  font-size: 1rem;
}
.catalog-search input:focus-visible{ border-color: var(--accent); }

.catalog-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: .92rem;
}

.empty-state{
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}
.empty-state .icon{
  width: 48px; height: 48px;
  color: var(--blue-300);
  margin-inline: auto;
  margin-bottom: 1rem;
}
.empty-state h3{
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.2rem;
  margin-bottom: .4rem;
}

/* Transición suave de la grilla al filtrar */
.product-grid.is-filtering .product-card{
  opacity: 0;
  transform: translateY(8px);
}
.product-card{
  animation: card-in .32s cubic-bezier(.16,1,.3,1) both;
}
@keyframes card-in{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Repuestos block
   ========================================================= */
.spares{
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.spares__frost{
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%;
  height: 30px;
  color: var(--white);
  z-index: 1;
}
@media (min-width: 860px){
  .spares{ grid-template-columns: 1.1fr .9fr; align-items: center; }
}
.spares__copy h2{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}
.spares__copy p{
  margin-top: .9rem;
  color: var(--text-on-dark-muted);
  max-width: 48ch;
}
.spares__list{
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.spares__list li{
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text-on-dark);
  font-size: .96rem;
}
.spares__list .icon{ width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; }
.spares__actions{ margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.spares__panel{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1.6rem;
}
.spares__panel-row{
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-block: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.spares__panel-row:last-child{ border-bottom: none; }
.spares__panel-row .icon{ width: 24px; height: 24px; color: var(--accent-light); flex-shrink: 0; }
.spares__panel-row strong{ display: block; font-size: .95rem; }
.spares__panel-row span{ display: block; font-size: .82rem; color: var(--text-on-dark-muted); }

/* =========================================================
   Cómo comprar — pasos
   ========================================================= */
.steps{
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}
@media (min-width: 768px){
  .steps{ grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
}
.step{
  position: relative;
  padding-top: .5rem;
}
.step::before{
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--blue-200, var(--blue-150));
  -webkit-text-stroke: 1.5px var(--blue-400);
  color: transparent;
  line-height: 1;
  display: block;
}
.step h3{
  margin-top: .6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
}
.step p{
  margin-top: .4rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.step:not(:last-child){
  border-bottom: 1px solid var(--blue-150);
  padding-bottom: 1.4rem;
}
@media (min-width: 768px){
  .step:not(:last-child){
    border-bottom: none;
    border-right: 1px solid var(--blue-150);
    padding-bottom: 0;
    padding-right: 1.8rem;
  }
}

/* =========================================================
   Dónde estamos
   ========================================================= */
.location{
  display: grid;
  gap: 1.8rem;
}
@media (min-width: 860px){
  .location{ grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.location__card{
  background: var(--white);
  border: 1px solid var(--blue-150);
  border-radius: var(--radius-card);
  padding: 1.8rem;
}
.location__row{
  display: flex;
  gap: .9rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--blue-150);
}
.location__row:first-of-type{ padding-top: 0; }
.location__row:last-of-type{ border-bottom: none; }
.location__row .icon{ width: 22px; height: 22px; color: var(--blue-600); flex-shrink: 0; margin-top: .1rem; }
.location__row strong{ display: block; color: var(--ink); font-size: .98rem; margin-bottom: .15rem; }
.location__row span, .location__row p, .location__row a[data-mail]{ color: var(--text-muted); font-size: .92rem; margin: 0; }
.location__social{
  display: flex;
  gap: .6rem;
  margin-top: 1.3rem;
}
.location__social a{
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  transition: background-color .18s ease;
}
.location__social a:hover{ background: var(--blue-150); }
.location__map{
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(145deg, var(--blue-500), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.location__map-content{
  text-align: center;
  padding: 2rem;
}
.location__map-content .icon{ width: 40px; height: 40px; margin-inline: auto; margin-bottom: .8rem; color: var(--accent-light); }
.location__map-content .btn{ margin-top: 1.2rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--ink);
  color: var(--text-on-dark-muted);
}
.site-footer__top{
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 2.2rem;
}
@media (min-width: 768px){
  .site-footer__top{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px){
  .site-footer__top{ grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer__brand img{ height: 44px; margin-bottom: 1rem; }
.site-footer__brand p{ max-width: 34ch; font-size: .92rem; }
.site-footer h4{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .9rem;
}
.site-footer__list{ display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; }
.site-footer__list a:hover{ color: var(--white); }
.site-footer__social{ display: flex; gap: .6rem; margin-top: 1rem; }
.site-footer__social a{
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
}
.site-footer__social a:hover{ background: rgba(255,255,255,.16); }
.site-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .82rem;
  text-align: center;
}
@media (min-width: 640px){
  .site-footer__bottom{ flex-direction: row; justify-content: space-between; text-align: left; }
}
.site-footer__bottom a{ color: var(--text-on-dark); font-weight: 600; }

/* =========================================================
   WhatsApp flotante
   ========================================================= */
.float-whatsapp{
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.4);
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease;
}
.float-whatsapp:hover{ transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 32px rgba(37, 211, 102, 0.48); }
.float-whatsapp .icon{ width: 28px; height: 28px; }

/* =========================================================
   Modal ficha de producto
   ========================================================= */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(14, 36, 54, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
@media (min-width: 768px){
  .modal-overlay{ align-items: center; padding: 2rem; }
}
.modal-overlay.is-open{ opacity: 1; pointer-events: auto; }

.product-modal{
  background: var(--white);
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(24px);
  transition: transform .26s cubic-bezier(.16,1,.3,1);
  position: relative;
}
@media (min-width: 768px){
  .product-modal{ border-radius: var(--radius-lg); }
}
.modal-overlay.is-open .product-modal{ transform: translateY(0); }

.product-modal__close{
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}
.product-modal__media{ position: relative; }
.product-modal__body{ padding: 1.6rem 1.6rem 2rem; }
.product-modal__cat{
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-modal__body h2{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink);
  margin-top: .3rem;
  line-height: 1.2;
}
.product-modal__desc{
  margin-top: .9rem;
  color: var(--text-body);
  max-width: 60ch;
}
.product-modal__features{
  margin-top: 1.3rem;
  display: grid;
  gap: .6rem;
}
.product-modal__features li{
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-body);
  padding-block: .5rem;
  border-bottom: 1px solid var(--blue-150);
}
.product-modal__features li:last-child{ border-bottom: none; }
.product-modal__features .icon{ width: 18px; height: 18px; color: var(--blue-600); flex-shrink: 0; margin-top: .15rem; }
.product-modal__actions{
  margin-top: 1.6rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

/* =========================================================
   Formulario de contacto
   ========================================================= */
.form-grid{
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px){
  .form-row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}
.field{ display: flex; flex-direction: column; gap: .45rem; }
.field label{ font-size: .9rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea{
  border: 1.5px solid var(--blue-150);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  background: var(--frost);
  font-size: .98rem;
  resize: vertical;
}
.field input:focus-visible, .field textarea:focus-visible{ border-color: var(--accent); }
.field small{ color: var(--text-muted); font-size: .8rem; }
.form-note{
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: .3rem;
}
.form-note .icon{ width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; margin-top: .1rem; }

.form-success{
  display: none;
  text-align: center;
  padding: 2.4rem 1rem;
}
.form-success.is-visible{ display: block; }
.form-success .icon{ width: 52px; height: 52px; color: var(--whatsapp); margin-inline: auto; margin-bottom: 1rem; }
.form-success h3{ font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.form-success p{ margin-top: .5rem; color: var(--text-muted); max-width: 42ch; margin-inline: auto; }

/* =========================================================
   Página "Nosotros" bloques compartidos (hero simple de páginas internas)
   ========================================================= */
.page-hero{
  background: linear-gradient(155deg, var(--ink) 0%, var(--blue-700) 100%);
  color: var(--text-on-dark);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1{
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  max-width: 20ch;
}
.page-hero p{
  margin-top: .8rem;
  color: var(--text-on-dark-muted);
  max-width: 52ch;
}

.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   FASE 2 — Header: "Categorías" + mega-menú
   ========================================================= */
.nav-cats{
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink-soft);
  padding-block: .3rem;
}
.nav-cats .icon{ width: .95em; height: .95em; transition: transform .2s ease; }
.nav-cats[aria-expanded="true"]{ color: var(--ink); }
.nav-cats[aria-expanded="true"] .icon{ transform: rotate(180deg); }

.mega{
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--blue-150);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .22s cubic-bezier(.16,1,.3,1), visibility 0s linear .22s;
}
.mega.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.mega__inner{
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 1.1fr;
  gap: 1.6rem;
  padding-block: 1.4rem 1.6rem;
  max-height: calc(100vh - var(--header-h) - 1rem);
  overflow-y: auto;
}
.mega__cats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .15rem .5rem;
  align-content: start;
}
.mega__cat{
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink-soft);
  transition: background-color .15s ease, color .15s ease;
}
.mega__cat > .icon:first-child{ width: 20px; height: 20px; color: var(--blue-600); }
.mega__cat > .icon:last-child:not(:first-child){ width: 15px; height: 15px; margin-left: auto; opacity: .35; }
.mega__cat[aria-current="true"]{ background: var(--blue-100); color: var(--ink); }
.mega__cat[aria-current="true"] > .icon:last-child:not(:first-child){ opacity: 1; color: var(--accent); }

.mega__panel{
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.4rem;
  background: var(--frost);
  border: 1px solid var(--blue-150);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  min-height: 100%;
}
.mega__panel h3{
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.1;
}
.mega__subs{ margin-top: .8rem; display: grid; }
.mega__subs a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .1rem;
  border-bottom: 1px solid var(--blue-150);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
}
.mega__subs a:hover{ color: var(--accent-dark); }
.mega__subs small{
  font-size: .74rem;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--blue-150);
  border-radius: var(--radius-pill);
  padding: .1rem .5rem;
}
.mega__empty{ margin-top: .8rem; color: var(--text-muted); font-size: .92rem; max-width: 34ch; }
.mega__all{
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--accent-dark);
}
.mega__all .icon{ transition: transform .18s ease; }
.mega__all:hover .icon{ transform: translateX(3px); }
.mega__photo{
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 14px;
}
.mega__photo--icon{
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  color: var(--blue-400);
}
.mega__photo--icon .icon{ width: 56px; height: 56px; }

/* Botón "Mi cotización" del header */
.quote-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 42px;
  padding: 0 .6rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .9rem;
  transition: background-color .18s ease, border-color .18s ease;
}
.quote-btn:hover{ background: var(--blue-100); }
.quote-btn .icon{ width: 22px; height: 22px; }
.quote-btn__label{ display: none; }
.quote-count{
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--white);
}
.quote-count--inline{ position: static; box-shadow: none; margin-left: .2rem; }
@media (min-width: 1200px){
  .quote-btn{ border: 1.5px solid var(--blue-150); padding: 0 1rem 0 .8rem; }
  .quote-btn__label{ display: inline; }
  .quote-btn .quote-count{ position: static; box-shadow: none; }
}

/* Menú móvil: categorías en acordeón */
.mobile-nav__cats summary{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-nav__cats summary::-webkit-details-marker,
.mobile-cat-group summary::-webkit-details-marker{ display: none; }
.mobile-nav__cats summary .icon{ width: 22px; height: 22px; transition: transform .2s ease; }
.mobile-nav__cats[open] > summary .icon{ transform: rotate(180deg); }
.mobile-nav__cats ul{ padding: .4rem 0 .8rem; }
.mobile-nav__links .mobile-cat{
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: .6rem .2rem;
  border-bottom: none;
  color: var(--text-on-dark);
  list-style: none;
  cursor: pointer;
}
.mobile-cat .icon{ width: 20px; height: 20px; color: var(--blue-300); }
.mobile-cat .icon:last-child:not(:first-child){ margin-left: auto; width: 18px; height: 18px; transition: transform .2s ease; }
.mobile-cat-group[open] .mobile-cat .icon:last-child{ transform: rotate(180deg); }
.mobile-cat__subs{ display: grid; padding: 0 0 .6rem 2.3rem; }
.mobile-nav__links .mobile-cat__subs a{
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  padding: .45rem 0;
  border-bottom: none;
  color: var(--text-on-dark-muted);
}
.btn--quote-outline{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}

/* =========================================================
   FASE 2 — Hero con foco en Calefacción / Aires
   ========================================================= */
.hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1rem;
}
.hero__eyebrow::before{
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-focus{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.hero-focus--single{ grid-template-columns: 1fr; }
@media (min-width: 900px){
  /* Las dos tarjetas desfasadas: una arriba, otra abajo, como dos estaciones */
  .hero-focus:not(.hero-focus--single) .focus-card:first-child{ margin-bottom: 2.4rem; }
  .hero-focus:not(.hero-focus--single) .focus-card:last-child{ margin-top: 2.4rem; }
}

.focus-card{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: clamp(280px, 40vw, 430px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--blue-700);
  box-shadow: var(--shadow-lg);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.focus-card:hover{ transform: translateY(-4px); }
.focus-card__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.focus-card:hover .focus-card__img{ transform: scale(1.04); }
.focus-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.focus-card--warm{ background: var(--accent-dark); }
.focus-card--warm::after{
  background: linear-gradient(180deg, rgba(224,122,41,.10) 0%, rgba(184,95,26,.55) 45%, rgba(84,36,8,.94) 100%);
}
.focus-card--cold::after{
  background: linear-gradient(180deg, rgba(74,123,166,.08) 0%, rgba(32,74,107,.58) 45%, rgba(14,36,54,.95) 100%);
}
.focus-card .frost-edge{
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%;
  height: 30px;
  color: var(--white);
  z-index: 1;
}
.focus-card__body{ padding: clamp(1rem, 2.4vw, 1.5rem); width: 100%; }
.focus-card__icon{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.focus-card__icon .icon{ width: 24px; height: 24px; }
.focus-card--warm .focus-card__icon{ background: var(--accent); }
.focus-card--cold .focus-card__icon{ background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.focus-card h2{
  margin-top: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.95rem);
  line-height: 1.05;
}
/* Toda la tarjeta es clickeable; los accesos a subcategorías quedan por encima */
.focus-card__link::after{ content: ""; position: absolute; inset: 0; z-index: 1; }
.focus-card__meta{ margin-top: .3rem; font-size: .86rem; color: rgba(255,255,255,.8); }
.focus-card__subs{
  display: none;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .9rem;
}
@media (min-width: 560px){ .focus-card__subs{ display: flex; } }
.focus-card__subs a{
  position: relative;
  z-index: 2;
  font-size: .76rem;
  font-weight: 600;
  padding: .35rem .7rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  transition: background-color .15s ease;
}
.focus-card__subs a:hover{ background: rgba(255,255,255,.28); }
.focus-card__cta{
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .92rem;
}
.focus-card__cta .icon{ transition: transform .2s ease; }
.focus-card:hover .focus-card__cta .icon{ transform: translateX(4px); }
.focus-card--warm .focus-card__cta{ color: var(--accent-pale); }

/* =========================================================
   FASE 2 — Grilla grande de categorías
   ========================================================= */
.cat-section .section-head-row{ margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.cat-showcase{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: .75rem;
}
@media (min-width: 640px){ .cat-showcase{ grid-auto-rows: 180px; gap: 1rem; } }
@media (min-width: 960px){ .cat-showcase{ grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } }
.cat-card--wide{ grid-column: span 2; }

.cat-card{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-card);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  color: var(--white);
  background: var(--ink);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease;
}
.cat-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.cat-card:hover img{ transform: scale(1.05); }
.cat-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14,36,54,0) 25%, rgba(14,36,54,.88) 100%);
}
.cat-card--plain{ background: linear-gradient(145deg, var(--blue-600), var(--ink)); }
.cat-card__icon{
  position: absolute;
  top: .85rem;
  left: .85rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-card__icon .icon{ width: 21px; height: 21px; }
.cat-card__text strong{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.1;
}
.cat-card--wide .cat-card__text strong{ font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.cat-card__text small{
  display: block;
  margin-top: .25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  line-height: 1.35;
}
.cat-card__arrow{
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.cat-card:hover .cat-card__arrow,
.cat-card:focus-visible .cat-card__arrow{ opacity: 1; transform: translateX(0); }
@media (max-width: 520px){
  .cat-card__text small{ display: none; }
}

/* =========================================================
   FASE 2 — Carrusel de marcas
   ========================================================= */
.brands{
  padding-block: clamp(2.2rem, 5vw, 3.2rem);
  border-bottom: 1px solid var(--blue-150);
}
.brands__head h2{
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}
.brands__viewport{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands__track{
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: brands-scroll var(--brands-duration, 28s) linear infinite;
}
.brands__viewport:hover .brands__track{ animation-play-state: paused; }
@keyframes brands-scroll{
  to{ transform: translateX(calc(-50% - .5rem)); }
}
.brand-logo{
  flex: 0 0 auto;
  width: 168px;
  height: 72px;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-150);
  border-radius: 14px;
  background: #fff;
}
.brand-logo img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce){
  .brands__viewport{ overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 1.25rem; }
  .brands__track{ animation: none !important; }
  .brand-logo[aria-hidden="true"]{ display: none; }
}

/* =========================================================
   FASE 2 — Botón "Agregar a cotización"
   ========================================================= */
.btn--quote{
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn--quote:hover{ background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn--quote.is-added{
  background: var(--blue-100);
  border-color: var(--blue-300);
  color: var(--ink);
  box-shadow: none;
}
.btn--quote.is-added .icon{ color: var(--blue-600); }
.btn--quote.is-added:hover{ background: var(--blue-150); transform: none; }

.steps__cta{ margin-top: 2.2rem; }

/* =========================================================
   FASE 2 — Galería de la ficha de producto
   ========================================================= */
.gallery__stage{
  position: relative;
  aspect-ratio: 16/10;
  background: var(--frost);
  overflow: hidden;
}
.gallery__stage > .photo-block{ height: 100%; aspect-ratio: auto; }
.gallery__main{ width: 100%; height: 100%; object-fit: cover; }
.gallery__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.gallery__nav .icon{ width: 20px; height: 20px; }
.gallery__nav--prev{ left: .8rem; }
.gallery__nav--next{ right: .8rem; }
.gallery__count{
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  background: rgba(14,36,54,.62);
  color: var(--white);
  font-size: .74rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.gallery__thumbs{
  display: flex;
  gap: .5rem;
  padding: .8rem 1.6rem 0;
  overflow-x: auto;
}
.gallery__thumb{
  flex: 0 0 68px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .6;
  transition: opacity .15s ease, border-color .15s ease;
}
.gallery__thumb:hover{ opacity: .9; }
.gallery__thumb[aria-current="true"]{ border-color: var(--accent); opacity: 1; }
.gallery__thumb img{ width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   FASE 2 — Panel "Mi cotización"
   ========================================================= */
.quote-overlay{
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(14, 36, 54, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.quote-overlay.is-open{ opacity: 1; pointer-events: auto; }
.quote-drawer{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.quote-overlay.is-open .quote-drawer{ transform: translateX(0); }
.quote-drawer__head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 1.4rem 1.1rem;
  border-bottom: 1px solid var(--blue-150);
}
.quote-drawer__head h2{ font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); line-height: 1.1; }
.quote-drawer__head p{ margin-top: .2rem; font-size: .88rem; color: var(--text-muted); }
.quote-drawer__body{ flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.quote-items{ display: grid; gap: .6rem; }
.quote-item{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .55rem;
  border: 1px solid var(--blue-150);
  border-radius: 14px;
}
.quote-item__thumb{
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-item__thumb img{ width: 100%; height: 100%; object-fit: cover; }
.quote-item__thumb .icon{ width: 28px; height: 28px; color: var(--blue-400); }
.quote-item__info strong{ display: block; font-size: .95rem; color: var(--ink); line-height: 1.25; }
.quote-item__info span{ display: block; margin-top: .15rem; font-size: .78rem; color: var(--text-muted); }
.quote-item__remove{ color: var(--text-muted); }
.quote-item__remove:hover{ background: var(--accent-pale); color: var(--accent-dark); }
.quote-item__remove .icon{ width: 20px; height: 20px; }
.quote-drawer__foot{
  display: grid;
  gap: .75rem;
  padding: 1.1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--blue-150);
  background: var(--frost);
}
.quote-drawer__note{ display: flex; gap: .55rem; font-size: .84rem; color: var(--ink-soft); }
.quote-drawer__note .icon{ width: 18px; height: 18px; color: var(--blue-600); margin-top: .15rem; }
.quote-drawer__clear{
  justify-self: center;
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quote-drawer__clear:hover{ color: var(--accent-dark); }
.quote-empty{ text-align: center; padding: 3rem .5rem; }
.quote-empty > .icon{ width: 52px; height: 52px; color: var(--blue-300); margin-inline: auto; }
.quote-empty h3{ margin-top: 1rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.quote-empty p{ margin: .5rem auto 1.4rem; max-width: 34ch; color: var(--text-muted); font-size: .93rem; }

/* Aviso breve al agregar/quitar */
.toast{
  position: fixed;
  left: 50%;
  bottom: 1.3rem;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: .6rem;
  max-width: calc(100% - 2rem);
  padding: .65rem .7rem .65rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.toast.is-visible{ opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast .icon{ width: 18px; height: 18px; color: var(--accent-light); }
.toast button{
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.toast button:hover{ background: rgba(255,255,255,.24); }
@media (max-width: 560px){
  .toast{ left: 1rem; right: 5.2rem; transform: translateY(16px); max-width: none; }
  .toast.is-visible{ transform: translateY(0); }
}

/* =========================================================
   VERSIÓN FINAL — Hero con foto del local de fondo
   ========================================================= */
.hero{ isolation: isolate; background: var(--ink); }
.hero__bg{
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: blur(1.5px); /* suaviza las letras del cartel detrás del texto */
  transform: scale(1.02);
}
/* Velo oscuro: más cerrado detrás del texto (izquierda/abajo) para mantener el contraste */
.hero__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,36,54,.96) 0%, rgba(14,36,54,.92) 40%, rgba(14,36,54,.62) 68%, rgba(14,36,54,.5) 100%),
    linear-gradient(0deg, rgba(14,36,54,.6) 0%, rgba(14,36,54,0) 40%);
}
@media (max-width: 899px){
  /* En celular el texto ocupa todo el ancho: la foto va desenfocada para que el cartel no compita con la lectura */
  .hero__bg img{ filter: blur(3px); transform: scale(1.04); }
  .hero__bg::after{
    background: linear-gradient(180deg, rgba(14,36,54,.9) 0%, rgba(14,36,54,.84) 55%, rgba(14,36,54,.92) 100%);
  }
}

/* =========================================================
   VERSIÓN FINAL — Mapa real en "Dónde estamos"
   ========================================================= */
.location__map--embed{
  display: block;
  min-height: 320px;
  background: var(--blue-100);
}
.location__map--embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Con mapa, "Cómo llegar" va en la tarjeta de datos; este botón solo aparece si no hay mapa cargado */
.location__map-btn{ display: none; }
.location__social .location__directions{
  width: auto;
  height: 42px;
  margin-left: auto;
  padding: 0 1.1rem;
  background: var(--accent);
  color: var(--white);
}
.location__social .location__directions:hover{ background: var(--accent-dark); }
.location__map--empty{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--blue-500), var(--ink));
}
.location__map--empty iframe{ display: none; }
.location__map--empty .location__map-btn{ display: inline-flex; }

/* =========================================================
   VERSIÓN FINAL — Catálogo: barra lateral de categorías / panel en celular
   ========================================================= */
.catalog__layout{ display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px){
  .catalog__layout{ grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; }
  .catalog .product-grid{ grid-template-columns: repeat(3, 1fr); }
}

.catalog-toolbar{
  flex-direction: row;
  align-items: stretch;
  gap: .6rem;
  margin-bottom: 1rem;
}
.catalog-toolbar .catalog-search{ flex: 1; min-width: 0; }
@media (max-width: 959px){
  /* La barra de búsqueda + "Categorías" queda a mano del pulgar mientras se recorre la grilla */
  .catalog-toolbar{
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    background: var(--white);
    margin-inline: -1.25rem;
    padding: .6rem 1.25rem;
    border-bottom: 1px solid var(--blue-150);
  }
}
.filters-open{ flex-shrink: 0; max-width: 46%; }
.filters-open span{ overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 960px){ .filters-open{ display: none; } }

.filters__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.filters__head h2{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.filters__close, .filters__foot{ display: none; }

.filter-cats{ display: grid; gap: .2rem; }
.filter-cat, .filter-sub{
  width: 100%;
  display: flex;
  align-items: center;
  gap: .65rem;
  text-align: left;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  transition: background-color .15s ease, color .15s ease;
}
.filter-cat{
  min-height: 46px;
  padding: .55rem .75rem;
  font-weight: 600;
  font-size: .95rem;
}
.filter-cat > .icon:first-child{ width: 20px; height: 20px; color: var(--blue-600); }
.filter-cat span, .filter-sub span{ flex: 1; min-width: 0; }
.filter-cat small, .filter-sub small{
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--frost);
  border: 1px solid var(--blue-150);
  border-radius: var(--radius-pill);
  padding: .05rem .5rem;
}
.filter-cat:hover, .filter-sub:hover{ background: var(--blue-100); color: var(--ink); }
.filter-check{ width: 18px; height: 18px; }

/* Activa: fondo lleno + texto en negrita + tilde (no depende solo del color) */
.filter-cat[aria-pressed="true"]{
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.filter-cat[aria-pressed="true"] > .icon:first-child{ color: var(--accent-light); }
.filter-cat[aria-pressed="true"] small{ background: rgba(255,255,255,.14); border-color: transparent; color: var(--white); }
.filter-cat[aria-pressed="true"] .filter-check{ color: var(--accent-light); }

.filter-subs{
  display: grid;
  gap: .15rem;
  margin: .3rem 0 .5rem 1.15rem;
  padding-left: .75rem;
  border-left: 2px solid var(--blue-150);
}
.filter-sub{
  min-height: 42px;
  padding: .45rem .65rem;
  font-size: .9rem;
  font-weight: 500;
}
.filter-sub[aria-pressed="true"]{
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent);
}
.filter-sub[aria-pressed="true"] small{ background: var(--white); border-color: var(--accent-light); color: var(--accent-dark); }
.filter-sub[aria-pressed="true"] .filter-check{ color: var(--accent); }

@media (min-width: 960px){
  .filters{
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--blue-150);
    border-radius: var(--radius-card);
    padding: 1.1rem .7rem 1rem;
  }
  .filters__head{ padding-inline: .45rem; }
}

/* Celular: panel que sube desde abajo, botones grandes para el pulgar */
@media (max-width: 959px){
  .filters{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 115;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.16,1,.3,1), visibility 0s linear .3s;
  }
  .filters.is-open{ transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .filters__head{
    padding: 1rem 1.25rem .6rem;
    margin: 0;
    border-bottom: 1px solid var(--blue-150);
  }
  .filters__head::before{
    content: "";
    position: absolute;
    top: .45rem;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: var(--blue-150);
  }
  .filters__close{ display: inline-flex; }
  .filter-cats{ overflow-y: auto; padding: .6rem 1rem; flex: 1; overscroll-behavior: contain; }
  .filter-cat{ min-height: 50px; }
  .filter-sub{ min-height: 46px; }
  .filters__foot{
    display: block;
    padding: .8rem 1.25rem calc(.8rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--blue-150);
  }
}
.filters-overlay{
  position: fixed;
  inset: 0;
  z-index: 114;
  background: rgba(14, 36, 54, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
body.filters-open .filters-overlay{ opacity: 1; pointer-events: auto; }
@media (min-width: 960px){ .filters-overlay{ display: none; } }

/* Filtros activos (se quitan con un toque; hacen wrap, sin scroll lateral) */
/* Al cerrar el panel en celular se vuelve a esta fila: que no quede debajo del header + barra fija */
.active-filters, .catalog-meta{ scroll-margin-top: calc(var(--header-h) + 84px); }
.active-filters{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: .9rem;
}
.active-chip{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  padding: .35rem .6rem .35rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: .86rem;
  font-weight: 600;
}
.active-chip .icon{ width: 15px; height: 15px; opacity: .8; }
.active-chip:hover .icon{ opacity: 1; }
.active-clear{
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: .35rem .3rem;
}
.active-clear:hover{ color: var(--accent-dark); }

/* Aviso de datos de ejemplo (fallback sin base de datos, ver js/store.js) */
.demo-notice{
  background: var(--accent-pale);
  color: var(--accent-dark);
  border-bottom: 1px solid var(--accent-light);
  font-size: .82rem;
  text-align: center;
  padding: .4rem 1rem;
}

/* Precio del producto (o "Consultar precio" si todavía no tiene) */
.price{
  margin-top: .35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.2;
}
.price--ask{
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.price--lg{ font-size: 1.6rem; margin: .1rem 0 .6rem; }
.price--lg.price--ask{ font-size: 1rem; }

/* =========================================================
   FOTOS DE PRODUCTO REALES (lote 3): fondo neutro fijo y foto completa
   Las fotos de fábrica son recortes PNG sobre fondo transparente y las de estudio traen fondo propio:
   con fondo blanco y object-fit: contain todas ocupan el mismo espacio y nunca se cortan.
   (Las imágenes ilustrativas de assets/productos siguen llenando el recuadro.)
   ========================================================= */
.photo-block--product{ background: #fff; }
.photo-block--product img{ object-fit: contain; padding: .6rem; }
.gallery__stage{ background: #fff; }
.gallery__main{ object-fit: contain; background: #fff; }
.gallery__thumb img{ object-fit: contain; background: #fff; }
.quote-item__thumb img{ object-fit: contain; background: #fff; }

/* =========================================================
   Quiénes somos (inicio)
   ========================================================= */
.about__body{ max-width: 68ch; margin-inline: auto; }
.about__eyebrow{
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.about h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.about h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--ink);
  margin: 2rem 0 .7rem;
}
.about p{ font-size: 1.04rem; line-height: 1.75; color: var(--text-body); }
.about p + p{ margin-top: 1rem; }
.about .about__sign{
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--blue-150);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--blue-700);
}

.about__more{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--blue-700);
}
.about__more .icon{ width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.about__more:hover{ color: var(--accent); }
.about__more:hover .icon{ transform: translateX(3px); }
.about--page{ padding-top: clamp(2rem, 4vw, 3rem); }
.about--page .about__body{ margin-inline: 0; }
