/* Archivo variable, servida desde el propio sitio (antes Google Fonts) */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 110%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 110%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fondo: #FFFFFF;
  --superficie: #F3F6FA;   /* gris azulado muy claro para fotos de producto */
  --azul-claro: #E9F0FA;
  --tinta: #0E1B2C;
  --tinta-2: #5A6B80;
  --azul: #1D58A6;         /* azul BAESA del logo */
  --azul-hondo: #154583;
  --linea: #E4E9F0;
  --r-grande: 28px;
  --r-medio: 20px;
  --ancho: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
:is(a, button, input, select, textarea, summary, label) { touch-action: manipulation; }
[id] { scroll-margin-top: 6rem; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--azul); text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.saltar { position: absolute; left: 1rem; top: -4rem; background: var(--azul); color: #fff; padding: .6rem 1rem; border-radius: 999px; z-index: 20; }
.saltar:focus { top: 1rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.5rem;
  font: inherit; font-weight: 600; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: background-color .15s;
}
.btn-primario { background: var(--azul); color: #fff; }
.btn-primario:hover { background: var(--azul-hondo); }
.btn-suave { background: var(--azul-claro); color: var(--azul); }
.btn-suave:hover { background: #DCE7F7; }
.btn-blanco { background: #fff; color: var(--azul); }
.btn-borde-blanco { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.btn-borde-blanco:hover { background: rgb(255 255 255 / .1); }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.enlace { font-weight: 600; text-decoration: none; }
.enlace:hover { text-decoration: underline; }
.enlace-boton { font: inherit; font-weight: 600; background: none; border: 0; padding: .5rem 0; color: var(--azul); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* Barra */
.barra {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem var(--gutter); background: rgb(255 255 255 / .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.marca { display: flex; align-items: center; text-decoration: none; }
.marca img { width: 54px; height: 54px; }
.barra nav { display: flex; gap: .25rem; margin: 0 auto; }
.barra nav a { color: var(--tinta); text-decoration: none; font-weight: 500; padding: .45rem .95rem; border-radius: 999px; }
.barra nav a:hover { background: var(--superficie); }
.barra nav a[aria-current] { background: var(--azul-claro); color: var(--azul); }
.btn-cotizar { min-height: 2.6rem; padding: 0 1.25rem; }

/* Estructura */
.hero, .seccion, .ficha, .cta { max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.seccion { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.seccion-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
.pagina-cabeza {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--ancho) - 2 * var(--gutter))); margin: 1.25rem auto 0;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); border-radius: var(--r-grande); color: #fff;
  background: linear-gradient(100deg, rgb(20 63 122 / .96) 0%, rgb(29 88 166 / .84) 48%, rgb(29 88 166 / .3) 100%), var(--fondo-cabecera, none) center 40% / cover, var(--azul);
}
.pagina-cabeza h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); max-width: 18ch; }
.pagina-cabeza > p:not(.migas) { margin-top: 1rem; max-width: 40rem; font-size: 1.15rem; color: rgb(255 255 255 / .88); }
.pagina-cabeza a { color: #fff; }
.pagina-cabeza .migas, .pagina-cabeza .migas a { color: rgb(255 255 255 / .8); }
.migas { font-size: .95rem; margin-bottom: .75rem; color: var(--tinta-2); }
.migas a { text-decoration: none; }
.foto-redonda { width: 100%; border-radius: var(--r-grande); object-fit: cover; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--ancho) - 2 * var(--gutter))); margin-top: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-grande); background: linear-gradient(135deg, var(--azul) 0%, var(--azul-hondo) 100%); color: #fff;
}
.hero .entrada, .hero .entrada p { color: rgb(255 255 255 / .88); }
.hero .btn-primario { background: #fff; color: var(--azul); }
.hero .btn-suave { background: rgb(255 255 255 / .16); color: #fff; }
.hero .btn-suave:hover { background: rgb(255 255 255 / .26); }
.entrada { margin: 1.5rem 0 2rem; max-width: 34rem; font-size: 1.2rem; color: var(--tinta-2); }
.hero-foto { position: relative; margin: 0; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 70%; border-radius: var(--r-grande); }
.insignia {
  position: absolute; left: -1.5rem; bottom: 2rem; max-width: 15rem; padding: 1rem 1.25rem;
  background: #fff; border-radius: var(--r-medio); box-shadow: 0 12px 40px rgb(14 27 44 / .14); line-height: 1.35;
}
.insignia strong { display: block; color: var(--azul); font-size: 1.15rem; }

/* Categorías */
.categorias { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.categoria {
  display: grid; padding: 1.25rem; border-radius: var(--r-grande); background: var(--superficie);
  text-decoration: none; color: var(--tinta); height: 100%; transition: background-color .15s;
}
.categoria:hover { background: var(--azul-claro); }
.categoria img { width: 62%; aspect-ratio: 1; object-fit: contain; justify-self: center; mix-blend-mode: multiply; margin-bottom: 1rem; }
.categoria-nombre { font-weight: 700; font-size: 1.1rem; letter-spacing: -.015em; }
.categoria-cuenta { color: var(--tinta-2); font-size: .9rem; }

/* Productos */
.productos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.producto { display: flex; flex-direction: column; gap: .3rem; }
.producto-foto { display: block; background: var(--superficie); border-radius: var(--r-medio); padding: 1.25rem; margin-bottom: .6rem; }
.producto-foto img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.producto h3 a { color: var(--tinta); text-decoration: none; }
.producto h3 a:hover { color: var(--azul); }
.marca-prod { font-size: .85rem; font-weight: 600; color: var(--azul); }
.producto .desc { font-size: .95rem; color: var(--tinta-2); margin-bottom: .8rem; }
.cotizar {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1.1rem;
  font-weight: 600; font-size: .95rem; background: var(--azul-claro); color: var(--azul); border-radius: 999px; text-decoration: none;
}
.cotizar:hover { background: #DCE7F7; }

/* Catálogo */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { padding: .5rem 1rem; border-radius: 999px; background: var(--superficie); color: var(--tinta); text-decoration: none; font-size: .95rem; font-weight: 500; }
.chips a:hover { background: var(--azul-claro); }
.chips a[aria-current] { background: var(--azul); color: #fff; }
.buscar { display: block; margin: 1.25rem 0 2.5rem; }
.buscar input, .cot-filtros select {
  font: inherit; width: min(26rem, 100%); min-height: 3rem; padding: 0 1.25rem;
  background: var(--superficie); color: var(--tinta); border: 1.5px solid transparent; border-radius: 999px;
}
.buscar input:focus-visible, .cot-filtros select:focus-visible { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgb(29 88 166 / .18); }
.grupo + .grupo { margin-top: 3.5rem; }
.vacio { color: var(--tinta-2); margin-bottom: 2rem; }

/* Ficha */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
.ficha-foto { background: var(--superficie); border-radius: var(--r-grande); padding: clamp(2rem, 6vw, 4rem); }
.ficha-foto img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.ficha h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: .25rem 0 1.25rem; }
.ficha-texto > p:not(.migas, .marca-prod) { max-width: 36rem; color: var(--tinta-2); font-size: 1.1rem; }
.ficha .acciones { margin-top: 2rem; }
.nota-ficha { margin-top: 1rem; font-size: .95rem !important; color: var(--tinta-2); }

/* Ventajas: foto de la tienda + lista sin tarjetas */
.ventajas { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ventajas-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-grande); }
.ventajas-texto h2 { margin-bottom: 1.75rem; }
.ventajas-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.ventajas-lista li { padding-left: 1.25rem; box-shadow: inset 3px 0 0 var(--azul-claro); transition: box-shadow .3s; }
.ventajas-lista li:hover { box-shadow: inset 3px 0 0 var(--azul); }
.ventajas-lista h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.ventajas-lista p { color: var(--tinta-2); max-width: 34rem; }

/* Valores (Nosotros): palabra grande + explicación, en renglones */
.valores h2 { margin-bottom: 1.5rem; }
.valores-lista { margin: 0; display: grid; }
.valores-lista > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; align-items: baseline; padding: 1.6rem 0; border-top: 1px solid var(--linea); }
.valores-lista dt { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--azul); }
.valores-lista dd { margin: 0; font-size: 1.15rem; color: var(--tinta-2); max-width: 36rem; }
@media (max-width: 760px) { .valores-lista > div { grid-template-columns: 1fr; gap: .5rem; } }

/* Dos columnas */
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.prosa { display: grid; gap: 1rem; max-width: 36rem; font-size: 1.1rem; color: var(--tinta-2); }
.prosa h2 { color: var(--tinta); }

/* Sucursales */
.sucursales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); }
.sucursal { display: grid; gap: .6rem; align-content: start; }
.sucursal img { aspect-ratio: 4 / 3; margin-bottom: .75rem; }
.sucursal address { font-style: normal; color: var(--tinta-2); }
.contacto { list-style: none; padding: 0; margin: 0; }
.contacto a { font-weight: 600; overflow-wrap: anywhere; }
.mapa { width: 100%; height: 16rem; border: 0; border-radius: var(--r-medio); margin: .75rem 0 .25rem; background: var(--superficie); }
.sucursal .btn { justify-self: start; }

/* Formularios */
.formulario, .resumen form, .listo { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--superficie); border-radius: var(--r-grande); }
.formulario label, .resumen form > label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.formulario input, .formulario select, .formulario textarea, .resumen input:not([type=radio]), .resumen textarea {
  font: inherit; font-weight: 400; padding: .8rem 1rem; border: 1.5px solid var(--linea); border-radius: 14px; background: #fff; color: var(--tinta); width: 100%;
}
.formulario :is(input, select, textarea):focus-visible, .resumen :is(input, textarea):focus-visible { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgb(29 88 166 / .18); }
.formulario .btn { justify-self: start; }
.contacto-grid { align-items: start; }
.datos-contacto { display: grid; gap: 1.75rem; }
.datos-contacto h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.datos-contacto a { font-weight: 600; }

/* Cotizador */
.cotizador { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.paso h2, .resumen h2, .listo h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .7rem; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--azul); color: #fff; font-size: 1rem; letter-spacing: 0; flex: none; }
.cot-filtros { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1rem; }
.cot-filtros .buscar { margin: 0; flex: 1 1 14rem; }
.cot-filtros .buscar input { width: 100%; }
.cot-filtros select { width: auto; flex: 0 1 16rem; appearance: none; padding-right: 2.5rem;
  background: var(--superficie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D58A6' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1.1rem center; }
.filas { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fila { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: center; padding: .6rem .9rem .6rem .6rem; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linea); }
.fila.activa { background: var(--azul-claro); box-shadow: inset 0 0 0 1.5px var(--azul); }
.fila img { width: 3.5rem; height: 3.5rem; object-fit: contain; background: var(--superficie); border-radius: 12px; padding: .3rem; mix-blend-mode: multiply; }
.fila-nombre { font-weight: 600; line-height: 1.3; }
.fila-nombre small { display: block; font-weight: 500; font-size: .85rem; color: var(--tinta-2); }
.cantidad { display: flex; align-items: center; gap: .25rem; }
.cantidad button { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px; background: var(--superficie); color: var(--azul); font: inherit; font-size: 1.25rem; font-weight: 600; cursor: pointer; }
.fila.activa .cantidad button { background: #fff; }
.cantidad input { font-variant-numeric: tabular-nums; width: 3.5rem; height: 2.5rem; text-align: center; font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--tinta); -moz-appearance: textfield; }
.cantidad input::-webkit-inner-spin-button { display: none; }
.resumen { position: sticky; top: 5.5rem; }
.resumen-items { list-style: none; margin: 0; padding: 0; display: grid; }
.resumen-items li { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--linea); font-size: .95rem; }
.resumen-items button { font: inherit; font-size: .85rem; min-height: 2.75rem; padding: 0 .25rem; background: none; border: 0; color: var(--tinta-2); text-decoration: underline; cursor: pointer; }
.resumen .vacio { margin: 0; }
.resumen fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; font-size: .95rem; }
.resumen legend { font-weight: 600; margin-bottom: .4rem; }
.resumen fieldset label { display: flex; gap: .5rem; align-items: center; min-height: 2.75rem; padding: 0 1rem 0 .8rem; border-radius: 999px; background: #fff; cursor: pointer; }
.resumen fieldset label:has(:checked) { box-shadow: inset 0 0 0 1.5px var(--azul); color: var(--azul); font-weight: 600; }
.resumen fieldset input { accent-color: var(--azul); width: 1.1rem; height: 1.1rem; margin: 0; }
.aviso { color: #B42318; font-weight: 600; font-size: .95rem; }
.aviso:empty { display: none; }
.listo p { color: var(--tinta-2); }
.listo strong { color: var(--tinta); }
.apiladas { flex-direction: column; }
.apiladas .btn { width: 100%; }

/* Preguntas */
.preguntas > :is(details, .buscar, .vacio) { max-width: 54rem; }
.preguntas h2 { margin-bottom: 1.25rem; }
details { background: var(--superficie); border-radius: var(--r-medio); margin-bottom: .6rem; }
summary { cursor: pointer; padding: 1.1rem 3.25rem 1.1rem 1.4rem; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; translate: 0 -50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border-radius: 999px; background: #fff; color: var(--azul); font-size: 1.25rem; transition: rotate .2s;
}
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 1.4rem 1.3rem; max-width: 44rem; color: var(--tinta-2); }

/* Llamado final: el único bloque azul */
.cta {
  margin-block: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--azul); color: #fff; border-radius: var(--r-grande); max-width: calc(var(--ancho) - 2 * var(--gutter));
}
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta p { margin: 1rem 0 2rem; max-width: 36rem; font-size: 1.15rem; color: rgb(255 255 255 / .85); }

/* Pie: banda azul con marca, navegación y sucursales con horario en vivo */
.pie { margin-top: clamp(3rem, 7vw, 5rem); background: linear-gradient(160deg, var(--azul-hondo) 0%, #0F2F5E 100%); color: rgb(255 255 255 / .8); border-radius: var(--r-grande) var(--r-grande) 0 0; }
.pie-grid { max-width: var(--ancho); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2.5rem; display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 2.5rem; font-size: .95rem; }
.pie h2 { font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: #fff; margin-bottom: 1rem; }
.pie-marca { display: grid; gap: 1rem; align-content: start; }
.pie-logo { width: 72px; height: 72px; filter: brightness(0) invert(1); }
.pie-marca p { font-size: 1.1rem; color: #fff; max-width: 18rem; line-height: 1.4; }
.pie-redes { display: flex; gap: .5rem; }
.pie-redes a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; transition: background-color .15s; }
.pie-redes a:hover { background: rgb(255 255 255 / .22); }
.pie-redes svg { width: 18px; height: 18px; }
.pie-nav { display: grid; gap: .55rem; align-content: start; }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie-suc { display: grid; gap: .45rem; align-content: start; }
.pie-suc address { font-style: normal; }
.pie .estado { color: rgb(255 255 255 / .7); margin: 0; }
.pie .estado.abierto { color: #8BE3B0; }
.legal { max-width: var(--ancho); margin: 0 auto; padding: 1.25rem var(--gutter) 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .85rem; color: rgb(255 255 255 / .65); border-top: 1px solid rgb(255 255 255 / .14); }
@media (max-width: 960px) { .pie-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pie-grid { grid-template-columns: 1fr; gap: 2rem; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Tablet y móvil */
@media (max-width: 960px) {
  .hero, .ficha, .dos, .sucursales, .cotizador { grid-template-columns: 1fr; }
  .resumen { position: static; }
  .hero-foto img { aspect-ratio: 4 / 3; }
  .insignia { left: 1rem; bottom: 1rem; }
  .ventajas { grid-template-columns: 1fr; }
  .ventajas-foto { aspect-ratio: 16 / 10; }
  .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .categorias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .9rem; }
  .categorias { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .categoria { padding: 1rem; border-radius: var(--r-medio); }
  .producto-foto { padding: .9rem; }
  .producto .desc { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; scrollbar-width: none; }
  .chips a { flex: none; }
  .fila { grid-template-columns: 3rem 1fr; gap: .4rem .75rem; }
  .fila img { width: 3rem; height: 3rem; grid-row: span 2; }
  .cantidad { grid-column: 2; }
  .cot-filtros select { flex: 1 1 100%; }
  .pie-grid { grid-template-columns: 1fr; }
}
.enlace { white-space: nowrap; }

.trampa { position: absolute; left: -9999px; }
.prosa-ficha p { max-width: 36rem; color: var(--tinta-2); font-size: 1.1rem; margin-bottom: .75rem; }
.contenido > * { max-width: 48rem; }

/* Hero "el muro se arma": 3 pantallas de scroll; el escenario queda fijo mientras el video avanza */
body:has(.hero-muro) .barra { position: fixed; inset: 0 0 auto 0; }
.hero-muro { position: relative; height: 320vh; }
.escenario { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--superficie); }
.escenario canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Velo blanco a la izquierda para que el texto se lea sobre cualquier cuadro */
.escenario::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / .94) 0%, rgb(255 255 255 / .8) 30%, rgb(255 255 255 / 0) 55%); }
.muro-texto {
  position: relative; z-index: 1; max-width: var(--ancho); margin: 0 auto; height: 100%;
  padding: clamp(7rem, 14vh, 9rem) var(--gutter) 2.5rem; display: flex; flex-direction: column; justify-content: space-between;
}
.muro-texto h1 { max-width: 11.6em; font-size: clamp(2.4rem, 4.4vw, 4rem); }
.muro-texto .entrada { max-width: 27rem; }
.etapas { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.etapas a {
  display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem .55rem .55rem; border-radius: 999px;
  background: rgb(255 255 255 / .82); backdrop-filter: blur(10px); color: var(--tinta-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .25s, color .25s;
}
.etapas .num { width: 1.7rem; height: 1.7rem; font-size: .85rem; background: var(--linea); color: var(--tinta-2); transition: inherit; }
.etapas a[aria-current="step"] { background: #fff; color: var(--tinta); box-shadow: 0 8px 30px rgb(14 27 44 / .12); }
.etapas a[aria-current="step"] .num { background: var(--azul); color: #fff; }
@media (max-width: 760px) {
  .muro-texto { padding-top: 7.5rem; }
  .muro-texto .entrada { display: none; }
  .muro-texto .acciones { margin-top: 1.25rem; }
  .escenario canvas { top: 46%; height: 54%; }
  .escenario::after { top: 46%; height: 12%; background: linear-gradient(180deg, #fff, rgb(255 255 255 / 0)); }
  .etapas a { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-muro { height: auto; } .escenario { position: relative; } }
/* Con sesión iniciada en WordPress, el menú baja para no quedar bajo la barra de administración */
body.admin-bar .barra { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { body.admin-bar .barra { top: 0; } }

/* Mapa de sucursales */
.mapa-sucursales { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.mapa-lienzo { position: sticky; top: 5.5rem; height: min(78vh, 44rem); border-radius: var(--r-grande); overflow: hidden; background: var(--superficie); z-index: 0; }
.mapa-lista { display: grid; gap: 1rem; }
.cercana { justify-self: start; }
.aviso-cercana { color: var(--tinta-2); font-size: .95rem; }
.aviso-cercana:empty { display: none; }
.sucursal-tarjeta {
  display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem; border-radius: var(--r-grande);
  background: var(--superficie); cursor: pointer; transition: background-color .2s, box-shadow .2s;
}
.sucursal-tarjeta:hover { background: var(--azul-claro); }
.sucursal-tarjeta.activa { background: #fff; box-shadow: inset 0 0 0 2px var(--azul), 0 12px 40px rgb(14 27 44 / .1); }
.sucursal-tarjeta img { width: 6rem; height: 6rem; object-fit: cover; border-radius: var(--r-medio); }
.sucursal-tarjeta h2 { font-size: 1.5rem; }
.sucursal-tarjeta address { font-style: normal; color: var(--tinta-2); margin: .35rem 0; }
.sucursal-tarjeta .acciones { margin-top: .75rem; }
.sucursal-tarjeta .btn { min-height: 2.6rem; padding: 0 1.1rem; }
.estado { font-size: .9rem; font-weight: 600; color: var(--tinta-2); margin-top: .2rem; }
.estado.abierto { color: #1A7F4B; }
.estado.abierto::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; background: currentColor; vertical-align: .1em; }
.distancia { font-weight: 600; color: var(--azul); }
.contacto-linea { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .95rem; }
.contacto-linea a { font-weight: 600; overflow-wrap: anywhere; }
.pin-baesa span {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--azul); box-shadow: 0 6px 18px rgb(14 27 44 / .3);
}
.pin-baesa img { width: 34px; height: 34px; rotate: 45deg; border-radius: 50%; background: #fff; padding: 3px; }
.leaflet-container { font: inherit; }
.leaflet-tile-pane { filter: grayscale(1) brightness(1.08) contrast(.88); }
.leaflet-popup-content-wrapper { border-radius: 16px; }
@media (max-width: 1100px) {
  .mapa-sucursales { grid-template-columns: 1fr; }
  .mapa-lienzo { position: relative; top: 0; height: 55vh; }
}
@media (max-width: 480px) {
  .sucursal-tarjeta { grid-template-columns: 1fr; }
  .sucursal-tarjeta img { width: 100%; height: 9rem; }
}

/* Nosotros: hero rayos X */
.rx { position: relative; margin: 0; border-radius: var(--r-grande); overflow: hidden; aspect-ratio: 3 / 4; cursor: crosshair; touch-action: pan-y; background: var(--superficie); }
.rx img, .rx canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rx canvas { opacity: 0; transition: opacity .6s; }
.rx.listo canvas { opacity: 1; }
.rx-pista {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1; padding: .6rem 1rem; border-radius: 999px;
  background: rgb(255 255 255 / .9); backdrop-filter: blur(8px); font-size: .9rem; font-weight: 600; color: var(--tinta);
}

/* Comparador: estructura vs. muro terminado */
.comparador { position: relative; margin: 0; border-radius: var(--r-grande); overflow: hidden; aspect-ratio: 16 / 9; --corte: 50%; }
.comparador img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparador .despues { clip-path: inset(0 0 0 var(--corte)); }
.comparador::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--corte); width: 3px; translate: -50% 0; background: #fff; box-shadow: 0 0 12px rgb(14 27 44 / .3); pointer-events: none; }
.comparador input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparador input:focus-visible + .tirador { outline: 3px solid var(--azul); outline-offset: 3px; }
.tirador {
  position: absolute; top: 50%; left: var(--corte); translate: -50% -50%; width: 3rem; height: 3rem; border-radius: 50%;
  background: #fff; color: var(--azul); display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 20px rgb(14 27 44 / .25); pointer-events: none;
}
.etiqueta-img { position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .9); font-size: .85rem; font-weight: 600; pointer-events: none; }
.etiqueta-img.izq { left: 1rem; } .etiqueta-img.der { right: 1rem; }
.nota-ilustracion { font-size: .85rem; color: var(--tinta-2); margin-top: .6rem; }
.lista-beneficios { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .9rem; }
.lista-beneficios strong { display: block; color: var(--tinta); }

/* Muro de marcas */
.marcas-muro { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.marca-tile {
  position: relative; display: grid; place-items: center; min-height: 13.5rem; padding: 1.5rem; border-radius: var(--r-grande);
  background: var(--superficie); text-decoration: none; color: var(--tinta); overflow: hidden; transition: background-color .2s;
}
.marca-tile img { max-width: 88%; max-height: 6rem; object-fit: contain; mix-blend-mode: multiply; transition: translate .3s, scale .3s; }
.marca-tile .nombre-texto { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; transition: translate .3s, scale .3s; }
.marca-tile .nombre-texto small { display: block; font-size: .8rem; font-weight: 600; color: var(--tinta-2); letter-spacing: 0; text-align: center; }
.marca-info {
  position: absolute; inset: auto 0 0 0; padding: 1rem 1.25rem; background: var(--azul); color: #fff; font-size: .88rem; line-height: 1.35;
  translate: 0 100%; transition: translate .3s;
}
.marca-info strong { display: block; font-size: 1.05rem; }
.marca-tile:hover, .marca-tile:focus-visible { background: var(--azul-claro); }
.marca-tile:hover .marca-info, .marca-tile:focus-visible .marca-info { translate: 0 0; }
.marca-tile:hover :is(img, .nombre-texto), .marca-tile:focus-visible :is(img, .nombre-texto) { translate: 0 -3.4rem; scale: .8; }
@media (hover: none) {
  .marca-tile { grid-template-rows: 1fr auto; place-items: stretch; padding: 0; }
  .marca-tile img, .marca-tile .nombre-texto { justify-self: center; align-self: center; margin: 1.25rem 0; }
  .marca-info { position: static; translate: none; background: none; color: var(--tinta-2); padding: 0 1rem 1rem; font-size: .88rem; }
  .marca-info strong { color: var(--tinta); }
}
@media (max-width: 960px) { .marcas-muro { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rx { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .marca-info, .marca-tile img, .marca-tile .nombre-texto { transition: none; } }

/* Radar "BAESA llega hasta ti" */
.radar span {
  position: absolute; left: 0; top: 0; width: var(--d, 0); height: var(--d, 0); translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 290deg, rgb(29 88 166 / .04) 290deg, rgb(29 88 166 / .28) 359deg, rgb(29 88 166 / .5) 360deg);
  box-shadow: inset 0 0 0 1px rgb(29 88 166 / .25);
  animation: barrido 6s linear infinite;                 /* misma VUELTA que en app.js */
}
@keyframes barrido { to { rotate: 360deg; } }
.localidad span {
  position: relative; display: block; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 3px var(--azul), 0 2px 6px rgb(14 27 44 / .25);
}
.localidad span::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--azul); opacity: 0;
  animation: ping 6s ease-out infinite; animation-delay: var(--retraso, 0s);
}
@keyframes ping { 0% { scale: 1; opacity: .7; } 22% { scale: 3.4; opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar span, .localidad span::after { animation: none; } }

.radar-buscador { display: grid; gap: .75rem; padding: 1.25rem; border-radius: var(--r-grande); background: var(--azul); color: #fff; }
.radar-buscador h2 { font-size: 1.4rem; }
.radar-buscador form { display: flex; gap: .5rem; flex-wrap: wrap; }
.radar-buscador input { flex: 1 1 12rem; min-height: 3rem; padding: 0 1.1rem; font: inherit; border: 0; border-radius: 999px; color: var(--tinta); }
.radar-buscador .btn-blanco { min-height: 3rem; }
.radar-resultado { font-size: .98rem; line-height: 1.45; }
.radar-resultado:empty { display: none; }
.radar-resultado a { color: #fff; font-weight: 700; }
.radar-resultado[data-tipo] { padding: .8rem 1rem; border-radius: var(--r-medio); background: rgb(255 255 255 / .14); }
.radar-buscador .cercana { background: rgb(255 255 255 / .16); color: #fff; }
.radar-buscador .cercana:hover { background: rgb(255 255 255 / .26); }
.radar-buscador .aviso-cercana { color: rgb(255 255 255 / .85); }

.radar-intro { max-width: 44rem; color: var(--tinta-2); margin: -.75rem 0 1.75rem; }
.localidades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.localidades-suc { padding: 1.25rem; border-radius: var(--r-grande); background: var(--superficie); }
.localidades-suc summary { display: flex; align-items: center; gap: 1rem; padding: .25rem .5rem; min-height: 2.75rem; cursor: pointer; list-style: none; }
/* La flecha va en línea con el texto (el "+" general de los acordeones es absoluto y se encimaba con "13 localidades") */
.localidades-suc summary::after { position: static; translate: none; display: block; }
.localidades-suc summary::-webkit-details-marker { display: none; }
.localidades-suc summary span { margin-left: auto; font-size: .9rem; color: var(--tinta-2); }
.localidades-suc summary::after {
  content: ""; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231D58A6' stroke-width='2'/%3E%3C/svg%3E") no-repeat center; transition: rotate .2s;
}
.localidades-suc[open] summary::after { rotate: 180deg; }
.localidades-suc[open] summary { margin-bottom: .75rem; }
.localidades-suc summary::before { display: none; }
.localidades-suc h3 { font-size: 1.3rem; }
.localidades-suc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.localidades-suc button {
  width: 100%; display: grid; grid-template-columns: 1fr 5.5rem 4rem; gap: .75rem; align-items: center; text-align: left;
  padding: .55rem .75rem; min-height: 2.75rem; border: 0; border-radius: 14px; background: none; font: inherit; color: var(--tinta); cursor: pointer;
}
.localidades-suc button:hover, .localidades-suc button:focus-visible { background: #fff; }
.barra-km { height: 6px; }
.barra-km::before { content: ""; display: block; height: 100%; width: calc(var(--km) / 40 * 100%); border-radius: inherit; background: var(--azul); }
.localidades-suc .km { font-size: .9rem; color: var(--tinta-2); text-align: right; font-variant-numeric: tabular-nums; }
.localidades-suc .gratis { background: var(--azul); color: #fff; margin-bottom: .35rem; grid-template-columns: 1fr auto; }
.localidades-suc .gratis:hover { background: var(--azul-hondo); }
.localidades-suc .gratis .etq { font-size: .85rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .18); }
.nota-radar { margin-top: 1.25rem; font-size: .9rem; color: var(--tinta-2); max-width: 48rem; }
@media (max-width: 760px) { .localidades { grid-template-columns: 1fr; } }

/* 1. Titulares que "se arman": de condensado a su ancho normal ligado al scroll, y se dibuja la cinta de junta */
:is(.seccion-cabeza h2, .prosa h2, .preguntas > h2, .ventajas-texto h2, .valores > h2)::after {
  content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .7rem; border-radius: 2px; background: var(--azul); transform-origin: left;
}
@keyframes armar {
  from { font-variation-settings: "wdth" 75; letter-spacing: .06em; opacity: .15; }
  to { font-variation-settings: "wdth" 100; letter-spacing: -.03em; opacity: 1; }
}
@keyframes cinta { from { scale: 0 1; } to { scale: 1 1; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :is(.seccion-cabeza h2, .prosa h2, .preguntas > h2, .ventajas-texto h2, .valores > h2) { animation: armar linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    :is(.seccion-cabeza h2, .prosa h2, .preguntas > h2, .ventajas-texto h2, .valores > h2)::after { animation: cinta linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
  }
  /* Sin animación ligada al scroll (Firefox): app.js agrega .arma-js y marca .visto al entrar en pantalla */
  .arma-js :is(.seccion-cabeza h2, .prosa h2, .preguntas > h2, .ventajas-texto h2, .valores > h2) { font-variation-settings: "wdth" 75; letter-spacing: .06em; opacity: .15; transition: font-variation-settings .9s cubic-bezier(.2, .7, .2, 1), letter-spacing .9s, opacity .6s; }
  .arma-js :is(.seccion-cabeza h2, .prosa h2, .preguntas > h2, .ventajas-texto h2, .valores > h2)::after { scale: 0 1; transition: scale .8s .3s cubic-bezier(.2, .7, .2, 1); }
  .arma-js :is(.seccion-cabeza h2, .prosa h2, .preguntas > h2, .ventajas-texto h2, .valores > h2).visto { font-variation-settings: "wdth" 100; letter-spacing: -.03em; opacity: 1; }
  .arma-js :is(.seccion-cabeza h2, .prosa h2, .preguntas > h2, .ventajas-texto h2, .valores > h2).visto::after { scale: 1 1; }
  /* El título de cada página se arma una vez al cargar */
  .pagina-cabeza h1, .hero h1 { animation: armar .9s cubic-bezier(.2, .7, .2, 1) both .1s; }
}

/* 2. Carrusel de marcas (portada) */
.marcas-slider { padding-block: clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--linea); }
.marcas-slider-titulo { text-align: center; color: var(--tinta-2); font-weight: 500; margin-bottom: 1.5rem; padding-inline: var(--gutter); }
.marquesina { display: flex; 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); }
.marquesina ul { flex: none; display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 4.5rem); padding: 0 clamp(1.25rem, 3vw, 2.25rem); margin: 0; list-style: none; animation: marquesina 38s linear infinite; }
.marquesina:hover ul, .marquesina:focus-within ul { animation-play-state: paused; }
.marquesina a { display: block; border-radius: 10px; }
.marquesina img { height: 3.4rem; width: auto; max-width: 10rem; object-fit: contain; mix-blend-mode: multiply; transition: scale .2s; }
.marquesina a:hover img { scale: 1.08; }
@keyframes marquesina { to { translate: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .marquesina { -webkit-mask-image: none; mask-image: none; }
  .marquesina ul { animation: none; flex: 1; flex-wrap: wrap; justify-content: center; }
  .marquesina ul + ul { display: none; }
}

/* Páginas legales */
.legal-texto > * { max-width: 48rem; }
.legal-texto h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.legal-texto p, .legal-texto li { color: var(--tinta-2); margin-bottom: .75rem; }
.legal-texto ul { padding-left: 1.25rem; }
.legal-texto table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.legal-texto th, .legal-texto td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
.legal-texto th { color: var(--tinta); }
.pie .legales { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.pie .legales a { color: rgb(255 255 255 / .8); }

/* Carruseles de la portada: 3 a la vez con scroll-snap nativo; app.js los avanza y maneja las flechas */
.categorias[data-carrusel], .productos[data-carrusel] {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem;
}
:is(.categorias, .productos)[data-carrusel]::-webkit-scrollbar { display: none; }
:is(.categorias, .productos)[data-carrusel] > li { scroll-snap-align: start; }
.cabeza-acciones { display: flex; align-items: center; gap: 1rem; }
.carrusel-controles { display: flex; gap: .5rem; }
.carrusel-controles button {
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--superficie); color: var(--azul);
  font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .15s;
}
.carrusel-controles button:hover { background: var(--azul-claro); }
@media (max-width: 960px) { :is(.categorias, .productos)[data-carrusel] { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 560px) {
  :is(.categorias, .productos)[data-carrusel] { grid-auto-columns: 78%; gap: .9rem; }
  .cabeza-acciones .enlace { display: none; }
}

/* Contacto: "¿En qué te ayudamos?" */
.ayuda-opciones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.ayuda-opciones button {
  display: grid; gap: .35rem; align-content: start; text-align: left; padding: 1.1rem 1.2rem; min-height: 6.5rem; border: 0; border-radius: var(--r-medio);
  background: var(--superficie); color: var(--tinta); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: background-color .15s, color .15s;
}
.ayuda-opciones button small { font-weight: 400; font-size: .88rem; color: var(--tinta-2); }
.ayuda-opciones button:hover { background: var(--azul-claro); }
.ayuda-opciones button[aria-expanded="true"] { background: var(--azul); color: #fff; }
.ayuda-opciones button[aria-expanded="true"] small { color: rgb(255 255 255 / .85); }
.ayuda-panel { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-grande); background: var(--superficie); display: grid; gap: 1rem; }
#op-envio { grid-template-columns: 1fr auto; align-items: end; }
#op-envio .ayuda-resultado { grid-column: 1 / -1; }
.ayuda-panel label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.ayuda-panel :is(input, select, textarea) { font: inherit; font-weight: 400; padding: .8rem 1rem; border: 1.5px solid var(--linea); border-radius: 14px; background: #fff; color: var(--tinta); }
.ayuda-panel :is(input, select, textarea):focus-visible { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgb(29 88 166 / .18); }
.ayuda-panel .btn { justify-self: start; }
.ayuda-panel p { color: var(--tinta-2); }
.ayuda-fila { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.ayuda-resultado:empty { display: none; }
.ayuda-resultado { padding: .9rem 1.1rem; border-radius: var(--r-medio); background: #fff; color: var(--tinta) !important; }

/* Contacto: tarjetas de sucursal en vivo */
.contacto-sucursales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.contacto-suc { display: grid; gap: .75rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--r-grande); background: var(--superficie); }
.contacto-suc h3 { font-size: 1.6rem; }
.contacto-suc address { font-style: normal; color: var(--tinta-2); }
.contacto-suc .acciones { gap: .5rem; }
.contacto-suc .btn { min-height: 2.75rem; padding: 0 1.1rem; }
.contacto-suc .tuya-etq { display: none; justify-self: start; padding: .25rem .75rem; border-radius: 999px; background: var(--azul); color: #fff; font-size: .85rem; font-weight: 600; }
.contacto-suc.tuya { order: -1; background: #fff; box-shadow: inset 0 0 0 2px var(--azul); }
.contacto-suc.tuya .tuya-etq { display: inline-block; }
.nota-pdf { margin-top: 1rem; color: var(--tinta-2); }
.preguntas .buscar { margin: 0 0 1.25rem; }
details[hidden] { display: none; }
.faq-accion { display: inline-block; margin: -.4rem 1.4rem 1.2rem; font-weight: 600; }
@media (max-width: 960px) { .ayuda-opciones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ayuda-opciones button { min-height: 0; } }
@media (max-width: 760px) { .contacto-sucursales, .ayuda-fila { grid-template-columns: 1fr; } }

/* Menú burger solo en celular y tableta: el botón despliega la navegación en un panel */
.menu-boton {
  display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--superficie); color: var(--tinta); cursor: pointer; transition: background-color .15s;
}
.menu-boton:hover { background: var(--azul-claro); }
.menu-boton > span[aria-hidden], .menu-boton > span[aria-hidden]::before, .menu-boton > span[aria-hidden]::after {
  display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: rotate .2s, translate .2s, background-color .2s;
}
.menu-boton > span[aria-hidden] { position: relative; }
.menu-boton > span[aria-hidden]::before, .menu-boton > span[aria-hidden]::after { content: ""; position: absolute; left: 0; }
.menu-boton > span[aria-hidden]::before { top: -6px; }
.menu-boton > span[aria-hidden]::after { top: 6px; }
.barra.abierta .menu-boton { background: var(--azul); color: #fff; }
.barra.abierta .menu-boton > span[aria-hidden] { background: transparent; }
.barra.abierta .menu-boton > span[aria-hidden]::before { translate: 0 6px; rotate: 45deg; }
.barra.abierta .menu-boton > span[aria-hidden]::after { translate: 0 -6px; rotate: -45deg; }
@media (max-width: 960px) {
  .barra { flex-wrap: nowrap; gap: .75rem; }
  .btn-cotizar { margin-left: auto; }
  .menu-boton { display: inline-grid; }
  .barra nav { display: none; }
  .barra.abierta nav {
    display: grid; gap: .25rem; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; overflow: visible;
    padding: .75rem var(--gutter) 1.25rem; background: #fff; border-bottom: 1px solid var(--linea); box-shadow: 0 18px 30px rgb(14 27 44 / .08);
  }
  .barra.abierta nav a { padding: .8rem 1rem; font-size: 1.1rem; }
  .ayuda-opciones button:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  #op-envio { grid-template-columns: 1fr; }
  .contacto-suc .acciones { display: grid; grid-template-columns: 1fr 1fr; }
  .contacto-suc .acciones .btn { justify-content: center; }
  .contacto-suc .acciones .btn:first-child { grid-column: 1 / -1; }
  .localidades-suc button { grid-template-columns: 1fr 2.75rem 3.75rem; gap: .5rem; padding: .55rem .5rem; font-size: .95rem; }
}

/* Bienvenida: solo la primera visita (el <head> agrega .sin-bienvenida si ya se vio) */
.bienvenida {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #fff;
  animation: bienvenida-sale .7s cubic-bezier(.7, 0, .2, 1) 2s forwards;
}
.sin-bienvenida .bienvenida { display: none; }
.bienvenida-centro { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: var(--gutter); }
.bienvenida img { width: 110px; height: 110px; animation: bienvenida-logo .7s cubic-bezier(.2, .7, .2, 1) .1s both; }
.bienvenida p { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--azul); animation: armar 1s cubic-bezier(.2, .7, .2, 1) .35s both; }
.bienvenida-cinta { display: block; width: 4.5rem; height: 4px; border-radius: 2px; background: var(--azul); transform-origin: left; animation: cinta .9s cubic-bezier(.2, .7, .2, 1) .9s both; }
@keyframes bienvenida-logo { from { opacity: 0; translate: 0 14px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes bienvenida-sale { to { translate: 0 -100%; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .bienvenida { animation: bienvenida-desvanece .3s .8s forwards; }
  .bienvenida * { animation: none !important; }
  @keyframes bienvenida-desvanece { to { opacity: 0; visibility: hidden; } }
}

/* Volver arriba: el anillo se llena con lo que llevas leído */
.subir {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 20; width: 3.4rem; height: 3.4rem; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--azul); cursor: pointer;
  box-shadow: 0 10px 30px rgb(14 27 44 / .18); opacity: 0; translate: 0 1rem; pointer-events: none; transition: opacity .25s, translate .25s;
}
.subir.visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.subir svg { width: 100%; height: 100%; }
.subir circle { fill: none; stroke-width: 3; }
.subir .pista { stroke: var(--linea); }
.subir .progreso { stroke: var(--azul); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--leido, 0) * 100); rotate: -90deg; transform-origin: center; }
.subir path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s; }
.subir:hover path { translate: 0 -2px; }
@media (prefers-reduced-motion: reduce) { .subir, .subir path { transition: none; } }

/* Cotiza en dos minutos: una solicitud de ejemplo se llena sola */
.cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; overflow: hidden; position: relative; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .06) 0 12px, transparent 12px 24px);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.cta-texto, .cta-demo { position: relative; }
.cta-demo { display: grid; justify-items: center; gap: 1rem; }
.demo-hoja { width: min(100%, 22rem); padding: 1.25rem; border-radius: var(--r-medio); background: #fff; color: var(--tinta); rotate: -2deg; box-shadow: 0 24px 50px rgb(8 25 54 / .35); }
.demo-titulo { display: flex; justify-content: space-between; gap: .5rem; font-weight: 700; font-size: .95rem; padding-bottom: .75rem; border-bottom: 2px solid var(--azul); margin-bottom: .6rem !important; color: var(--tinta) !important; }
.demo-titulo span { font-weight: 500; color: var(--tinta-2); font-size: .8rem; }
.demo-hoja ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; min-height: 9.5rem; }
.demo-hoja li, .demo-pdf, .demo-envio { opacity: 0; translate: 0 8px; transition: opacity .35s, translate .35s cubic-bezier(.2, .7, .2, 1); }
.demo-hoja li.ver, .demo-pdf.ver, .demo-envio.ver { opacity: 1; translate: 0 0; }
.demo-hoja li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.demo-hoja li b { min-width: 2.4rem; text-align: center; padding: .15rem .4rem; border-radius: 999px; background: var(--azul-claro); color: var(--azul); font-size: .85rem; }
.demo-pdf { display: inline-flex; gap: .4rem; align-items: center; margin-top: .75rem !important; padding: .35rem .8rem; border-radius: 999px; background: var(--azul); color: #fff !important; font-size: .85rem !important; font-weight: 600; }
.demo-envio { justify-self: end; padding: .6rem 1rem; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--azul) !important; font-weight: 700; font-size: .9rem !important; margin: 0 !important; box-shadow: 0 12px 30px rgb(8 25 54 / .3); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta-demo { justify-items: start; } .demo-envio { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .demo-hoja li, .demo-pdf, .demo-envio { opacity: 1; translate: 0 0; transition: none; } }

/* Zonas táctiles de al menos 44 px en enlaces sueltos (pie, preguntas, cabezas de sección) */
.pie-nav a, .pie-suc a, .pie .legales a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.pie-nav, .pie-suc { gap: 0; }
.pie-suc .estado, .pie-suc address { margin-bottom: .35rem; }
.faq-accion, .seccion-cabeza .enlace { display: inline-flex; align-items: center; min-height: 2.75rem; }
.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }

/* Tarjetas que aparecen al hacer scroll (fuera de los carruseles, que se mueven de lado) */
@keyframes aparecer { from { opacity: 0; translate: 0 2.5rem; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :is(.productos:not([data-carrusel]) > li, .ventajas > div, .marcas-muro > li, .contacto-suc, .localidades-suc, .sucursal-tarjeta, .ayuda-opciones button, .comparador, .demo-hoja) {
      animation: aparecer linear both; animation-timeline: view(); animation-range: entry 0% entry 90%;
    }
  }
  .arma-js :is(.productos:not([data-carrusel]) > li, .ventajas > div, .marcas-muro > li, .contacto-suc, .localidades-suc, .sucursal-tarjeta, .ayuda-opciones button, .comparador, .demo-hoja) {
    opacity: 0; translate: 0 2.5rem; scale: .96; transition: opacity .6s, translate .7s cubic-bezier(.2, .7, .2, 1), scale .7s cubic-bezier(.2, .7, .2, 1);
  }
  .arma-js :is(.productos:not([data-carrusel]) > li, .ventajas > div, .marcas-muro > li, .contacto-suc, .localidades-suc, .sucursal-tarjeta, .ayuda-opciones button, .comparador, .demo-hoja).visto { opacity: 1; translate: 0 0; scale: 1; }
}

/* Hero del muro: cada etapa muestra cuánto falta para terminarla, y una pista invita a deslizar */
.etapas a { position: relative; overflow: hidden; }
/* barra de avance de cada etapa */
.etapas a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--azul);
  transform-origin: left; scale: var(--avance, 0) 1;
}


/* Pausa para lo que se mueve solo (marcas y carruseles) */
.pausa {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--superficie); color: var(--azul); cursor: pointer; transition: background-color .15s;
}
.pausa:hover { background: var(--azul-claro); }
.pausa svg { width: 14px; height: 14px; fill: currentColor; }
.marcas-slider { position: relative; }
.marcas-slider > .pausa { position: absolute; right: var(--gutter); top: clamp(1.4rem, 4vw, 2.4rem); width: 2.25rem; height: 2.25rem; }
.marquesina.pausada ul { animation-play-state: paused; }
@media (max-width: 560px) { .pie-nav { grid-template-columns: 1fr 1fr; column-gap: 1rem; } .pie-nav h2 { grid-column: 1 / -1; } }

/* Cotizador: acordeones por categoría y bloques por marca */
.cot-filtros { position: sticky; top: 5rem; z-index: 3; margin-inline: -.5rem; padding: .5rem; border-radius: 999px; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); }
.cot-todo { flex: none; min-height: 3rem; }
.cot-cats { display: grid; gap: .6rem; }
.cot-cat { margin: 0; }
.cot-cat summary { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; min-height: 4rem; font-size: 1.1rem; }
.cot-cat-cuenta { font-size: .88rem; font-weight: 500; color: var(--tinta-2); }
.cot-cat-elegidos { padding: .15rem .7rem; border-radius: 999px; background: var(--azul); color: #fff; font-size: .82rem; font-weight: 600; }
.cot-cat[open] summary { border-bottom: 1px solid var(--linea); }
.cot-sub { padding: .9rem .9rem .3rem; }
.cot-sub:last-child { padding-bottom: .9rem; }
.cot-sub-titulo { margin: 0 0 .6rem .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }
.fila.resalta { animation: resalta 1.4s ease-out; }
@keyframes resalta { 0%, 30% { box-shadow: inset 0 0 0 2px var(--azul), 0 0 0 6px rgb(29 88 166 / .2); } }
@media (max-width: 960px) { .cot-filtros { top: 4.6rem; } }
@media (max-width: 560px) { .cot-filtros { flex-wrap: nowrap; gap: .5rem; } .cot-filtros .buscar { flex: 1 1 auto; min-width: 0; } .cot-filtros .buscar input { padding-inline: 1rem; } .cot-todo { padding: 0 1rem; font-size: .9rem; } .cot-sub { padding-inline: .5rem; } }

/* Buscador del encabezado */
.buscar-boton {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem 0 .85rem; border: 0; border-radius: 999px;
  background: var(--superficie); color: var(--tinta-2); font: inherit; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s;
}
.buscar-boton:hover { background: var(--azul-claro); color: var(--azul); }
.buscar-boton svg, .buscador-caja svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
@media (min-width: 961px) { .buscar-boton { margin-left: auto; } .barra nav { margin: 0 0 0 auto; } }
@media (max-width: 960px) { .buscar-boton { width: 2.75rem; padding: 0; justify-content: center; margin-left: auto; } .buscar-boton span { display: none; } .btn-cotizar { margin-left: 0; } }
.buscador {
  width: min(40rem, calc(100% - 2rem)); max-height: min(38rem, calc(100dvh - 4rem)); margin: 5rem auto auto; padding: 0; border: 0;
  border-radius: var(--r-grande); background: #fff; color: var(--tinta); box-shadow: 0 30px 80px rgb(14 27 44 / .3); overflow: hidden;
}
.buscador[open] { display: flex; flex-direction: column; }
.buscador::backdrop { background: rgb(14 27 44 / .35); backdrop-filter: blur(4px); }
.buscador-caja { display: flex; align-items: center; gap: .75rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid var(--linea); color: var(--azul); }
.buscador-caja input { flex: 1; min-width: 0; min-height: 3rem; border: 0; font: inherit; font-size: 1.15rem; color: var(--tinta); background: none; }
.buscador-caja input:focus-visible { outline: none; }
.buscador-cerrar { min-height: 2.25rem; padding: 0 .7rem; border: 0; border-radius: 10px; background: var(--superficie); color: var(--tinta-2); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.buscador-sugerencias { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem 1.25rem; font-size: .9rem; color: var(--tinta-2); }
.buscador-sugerencias button { min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--superficie); color: var(--tinta); font: inherit; font-size: .9rem; cursor: pointer; }
.buscador-sugerencias button:hover { background: var(--azul-claro); color: var(--azul); }
.buscador-estado { padding: .75rem 1.25rem 0; font-size: .85rem; color: var(--tinta-2); }
.buscador-estado:empty { display: none; }
.buscador-lista { list-style: none; margin: 0; padding: .5rem; overflow-y: auto; overscroll-behavior: contain; }
.buscador-lista li { display: flex; align-items: center; gap: .5rem; border-radius: 16px; }
.buscador-lista li:hover, .buscador-lista li:focus-within { background: var(--superficie); }
.res { flex: 1; min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .5rem .75rem; border-radius: 16px; color: var(--tinta); text-decoration: none; }
.res img, .res-sin-foto { width: 3rem; height: 3rem; flex: none; object-fit: contain; border-radius: 12px; background: var(--superficie); padding: .25rem; mix-blend-mode: multiply; }
.res strong { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.res small { display: block; color: var(--tinta-2); font-size: .85rem; }
.res-cotizar { flex: none; margin-right: .5rem; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; background: var(--azul-claro); color: var(--azul); font-weight: 600; font-size: .9rem; text-decoration: none; }
.res-cotizar:hover { background: var(--azul); color: #fff; }
@media (max-width: 560px) { .buscador { margin-top: 1rem; width: calc(100% - 1rem); } }
.localidades-suc summary span { white-space: nowrap; }
@media (max-width: 560px) { .localidades-suc { padding: 1rem .75rem; } .localidades-suc h3 { font-size: 1.1rem; } .localidades-suc summary { gap: .6rem; } }

/* Volver arriba sin JS: aparece después de 60vh y el anillo sigue la lectura con scroll(root) */
@keyframes subir-ver { from { opacity: 0; translate: 0 1rem; visibility: hidden; } to { opacity: 1; translate: 0 0; visibility: visible; } }
@keyframes leer { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@supports (animation-timeline: scroll()) {
  .subir { pointer-events: auto; animation: subir-ver linear both; animation-timeline: scroll(root); animation-range: 45vh 65vh; }
  .subir .progreso { animation: leer linear both; animation-timeline: scroll(root); }
}
@media (prefers-reduced-motion: reduce) { .subir { translate: none; } }
/* Título + controles del carrusel: en pantallas angostas los controles bajan de renglón en vez de desbordar la página */
.seccion-cabeza { flex-wrap: wrap; }
.seccion-cabeza h2 { min-width: 0; }
@media (max-width: 560px) { .cabeza-acciones { margin-left: auto; } }
