/* Glazer Landing — identidad: morado, dorado, rojo, amarillo. Sin fuentes externas. */
:root {
  --morado-900: #4C1D95;
  --morado-600: #7C3AED;
  --dorado: #FBBF24;
  --rojo: #DC2626;
  --amarillo: #FDE047;
  --texto: #111827;
  --gris: #6B7280;
  --fondo: #F9FAFB;
  --blanco: #FFFFFF;

  --radio: 14px;
  --sombra: 0 6px 20px rgba(17, 24, 39, .08);
  --sombra-alta: 0 18px 44px rgba(17, 24, 39, .18);
  --ancho: 1160px;
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

/* scroll-padding = alto del topbar sticky (en móvil ocupa dos filas). */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
a { color: var(--morado-900); }

.container { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--morado-900);
  color: var(--blanco); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--morado-600); outline-offset: 2px; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--rojo); color: var(--blanco); box-shadow: 0 6px 16px rgba(220, 38, 38, .28); }
.btn-primary:hover { background: #b91c1c; }
.btn-primary[disabled] { background: var(--gris); box-shadow: none; cursor: progress; }
.btn-ghost { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: var(--blanco); color: var(--morado-900); border-color: var(--morado-600); }
.btn-outline:hover { background: #f5f3ff; }
.btn-wa { background: var(--morado-600); color: var(--blanco); }
.btn-wa:hover { background: var(--morado-900); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 40; overflow: hidden;
  background: linear-gradient(180deg, #3B1078 0%, var(--morado-900) 100%);
  color: var(--blanco);
  border-bottom: 3px solid var(--dorado);
  box-shadow: 0 6px 22px rgba(46, 16, 101, .35);
}
/* Brillo ambiental: dos manchas de luz radial, sin imagenes. */
.topbar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(480px 160px at 12% -20%, rgba(167, 139, 250, .4), transparent 70%),
    radial-gradient(420px 200px at 92% 120%, rgba(251, 191, 36, .16), transparent 70%);
}
.topbar-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .45rem; padding: .5rem 0; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 10px; }
.brand-logo { height: 30px; width: auto; }

/* Los links de navegación van en pastillas, no en texto suelto. */
.navpill {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .42rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2);
  color: #EDE9FE; font-size: .88rem; font-weight: 700; text-decoration: none;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
a.navpill:hover { background: var(--dorado); border-color: var(--dorado); color: var(--morado-900); transform: translateY(-1px); }
.navpill-ico { color: var(--dorado); font-size: 1rem; line-height: 1; }
a.navpill:hover .navpill-ico { color: var(--morado-900); }
.navpill-svgico {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: var(--dorado); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
a.navpill:hover .navpill-svgico { stroke: var(--morado-900); }
.navpill-txt { display: flex; flex-direction: column; line-height: 1.1; font-variant-numeric: tabular-nums; }
.navpill-txt small {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dorado);
}
a.navpill:hover .navpill-txt small { color: var(--morado-900); }

/* Pastilla activa (Catálogo): borde dorado con brillo, como una entrada resaltada. */
.navpill-active {
  background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .7);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, .25), 0 0 16px rgba(251, 191, 36, .45);
}

.topbar-nav { display: flex; gap: .4rem; flex: 1 1 100%; order: 3; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar-nav::-webkit-scrollbar { display: none; }
.topbar-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; flex: none; }

/* Botón "Llámanos": pastilla con brillo morado/dorado y círculo degradado con el ícono. */
.phone-pill {
  display: none; align-items: center; gap: .55rem;
  padding: .3rem .95rem .3rem .3rem; border-radius: 999px;
  background: rgba(124, 58, 237, .22); border: 1px solid rgba(251, 191, 36, .55);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, .3), 0 0 18px rgba(124, 58, 237, .4);
  text-decoration: none; color: var(--blanco);
  transition: box-shadow .16s ease, transform .16s ease;
}
.phone-pill:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(124, 58, 237, .4), 0 0 22px rgba(251, 191, 36, .5); }
.phone-pill-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dorado), #F59E0B);
  box-shadow: 0 0 14px rgba(251, 191, 36, .55);
}
.phone-pill-ico svg {
  width: 16px; height: 16px; fill: none; stroke: var(--morado-900);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- hero */
/* Banner a todo el ancho: la sección no vive dentro de .container, asi que
   ocupa el 100% del viewport sin recurrir a 100vw (que suma la barra de scroll). */
.hero {
  width: 100%; max-width: 100%; overflow: hidden;
  background: linear-gradient(135deg, var(--morado-900) 0%, var(--morado-600) 65%, #8B5CF6 100%);
  line-height: 0;
}
/* Imagen completa, a todo el ancho, sin recortar. */
.hero-banner-img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------- carrusel de familias
   Banda a todo el ancho: la sección no vive dentro de .container, así que
   ocupa el 100% del viewport sin recurrir a 100vw (que suma la barra de scroll). */
.familias {
  width: 100%; max-width: 100%; overflow: hidden;
  background: linear-gradient(180deg, #2E1065 0%, #1E1B4B 100%);
  padding-bottom: .8rem;
}
.hero-carousel { width: 100%; }
.hc-viewport { position: relative; overflow: hidden; }
.hc-track {
  display: flex; margin: 0; padding: 0; list-style: none; min-width: 0;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform;
}
/* min-width:0 evita que el ancho minimo de las 28 slides ensanche la pagina. */
.hc-slide {
  position: relative; flex: 0 0 100%; min-width: 0; overflow: hidden;
  display: flex; align-items: center; background: var(--morado-900);
}

/* Fondo temático por rubro: degradado + patrón, todo en CSS (sin imágenes). */
.hc-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(125deg, #4C1D95 0%, #6D28D9 100%); }
.hc-bg::before { content: ""; position: absolute; inset: 0; opacity: .55; }
.hc-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, .34) 0%, rgba(17, 24, 39, .12) 45%, rgba(17, 24, 39, .3) 100%);
}

[data-theme="taller"] .hc-bg { background: linear-gradient(125deg, #312E81 0%, #4C1D95 52%, #7C3AED 100%); }
[data-theme="taller"] .hc-bg::before {
  background-image:
    linear-gradient(rgba(251, 191, 36, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, .16) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
}

.hc-inner {
  position: relative; z-index: 1;
  width: min(100% - 3.6rem, var(--ancho)); margin-inline: auto;
  padding: 1.1rem 0 1.2rem; display: grid; gap: .8rem; align-items: center;
}
.hc-head { color: var(--blanco); text-align: left; }
.hc-kicker {
  margin: 0 0 .15rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amarillo);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.hc-count {
  background: var(--dorado); color: var(--morado-900); border-radius: 999px;
  padding: .1rem .5rem; letter-spacing: .04em; font-size: .66rem;
}
.hc-title {
  margin: 0 0 .15rem; font-size: clamp(1.7rem, 4.8vw, 2.9rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hc-tagline { margin: 0 0 .7rem; font-size: .9rem; color: rgba(255, 255, 255, .92); max-width: 40ch; }
.hc-cta {
  padding: .52rem 1.1rem; font-size: .9rem; background: var(--dorado); color: var(--morado-900);
  box-shadow: 0 8px 20px rgba(17, 24, 39, .28);
}
.hc-cta:hover { background: var(--amarillo); }

/* Tarjetas de producto dentro de la slide.
   En móvil entran 3 en una sola fila; la 4a se reserva para pantallas grandes. */
.hc-items {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  margin: 0; padding: 0; list-style: none;
}
.hc-item:nth-child(n+4) { display: none; }
.hc-item {
  flex: 1 1 0; max-width: 218px; min-width: 0;
  display: flex; flex-direction: column; text-align: center;
  background: rgba(255, 255, 255, .97); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 12px; padding: .35rem .35rem .45rem;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .25);
}
.hc-item-media { position: relative; aspect-ratio: 1 / 1; background: var(--blanco); border-radius: 8px; overflow: hidden; }
.hc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .15rem; }
.hc-item-name {
  margin: .3rem 0 0; font-size: .7rem; font-weight: 800; line-height: 1.2;
  color: var(--texto); min-height: 2.4em; overflow: hidden;
}
.hc-item-model { margin: .1rem 0 0; font-size: .62rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.hc-item-price { margin: .1rem 0 .4rem; color: var(--rojo); font-size: .92rem; font-weight: 900; }
.hc-buy { margin-top: auto; width: 100%; padding: .38rem .3rem; font-size: .76rem; border-radius: 999px; }

.hc-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .9);
  color: var(--morado-900); font-size: 1.5rem; line-height: 1; font-weight: 900;
  display: grid; place-items: center; padding: 0 0 .18em;
  box-shadow: var(--sombra);
}
.hc-nav:hover { background: var(--morado-900); color: var(--blanco); border-color: var(--dorado); }
.hc-prev { left: .3rem; }
.hc-next { right: .3rem; }

.hc-controls { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; }
.hc-toggle {
  flex: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .14);
  color: var(--blanco); font-size: .62rem; display: grid; place-items: center; padding: 0;
}
.hc-toggle:hover { background: rgba(255, 255, 255, .3); }
.hc-dots { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.hc-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .42); transition: background-color .15s ease, transform .15s ease;
}
.hc-dot:hover { background: var(--blanco); }
.hc-dot.is-active { background: var(--dorado); transform: scale(1.35); }
.hc-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- catálogo */
.catalogo { padding: clamp(2rem, 5vw, 3.5rem) 0; background: var(--blanco); position: relative; }
/* Puntitos decorativos arriba a la izquierda y derecha del titulo. */
.catalogo::before, .catalogo::after {
  content: ""; position: absolute; top: 0; width: 220px; height: 160px; pointer-events: none;
  background-image: radial-gradient(circle, #D1D5DB 1.6px, transparent 1.8px);
  background-size: 22px 22px; opacity: .6;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}
.catalogo::before { left: 0; }
.catalogo::after { right: 0; }
.section-head { margin-bottom: 1.5rem; }
.section-head p { color: var(--gris); margin: 0; }
.section-head-catalogo { position: relative; z-index: 1; text-align: center; margin-bottom: 1.75rem; }
.section-head-catalogo h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-head-catalogo .accent { color: var(--morado-600); }
.section-head-catalogo p { font-size: 1.05rem; margin-top: .3rem; }

/* Banner de busqueda: fondo degradado, queda fijo mientras se recorre el
   catalogo (vive dentro de .container, que tiene todo el alto de
   .catalogo como limite, asi que sticky tiene recorrido real). */
.filtro-buscar {
  position: sticky; top: 76px; z-index: 20; overflow: hidden;
  background: linear-gradient(135deg, var(--morado-900) 0%, var(--morado-600) 55%, #8B5CF6 100%);
  border-radius: var(--radio); padding: 1.5rem 1.75rem; box-shadow: var(--sombra-alta);
  margin-bottom: 1.1rem;
}
.buscar-deco {
  position: absolute; right: 1rem; bottom: -.5rem; width: 110px; height: 150px;
  color: rgba(255, 255, 255, .14); pointer-events: none;
}
.buscar-deco svg { width: 100%; height: 100%; }
.buscar-head { position: relative; z-index: 1; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.buscar-ico-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .16); font-size: 1rem;
}
.buscar-label { color: var(--blanco); font-weight: 800; font-size: 1.05rem; }
.buscar-row { position: relative; z-index: 1; display: flex; gap: .6rem; flex-wrap: wrap; }
.buscar-row .input-wrap { flex: 1 1 260px; }
.btn-buscar {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  background: var(--dorado); color: var(--morado-900); font-weight: 800;
  border: 0; border-radius: 10px; padding: 0 1.4rem; font-size: .95rem; cursor: pointer;
  transition: background-color .14s ease;
}
.btn-buscar:hover { background: var(--amarillo); }

.input-wrap { position: relative; }
.input-ico {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  font-size: .95rem; pointer-events: none;
}
.filtro-buscar .input-wrap input {
  width: 100%; padding: .85rem 1rem .85rem 2.5rem; border: 0; border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: var(--blanco); color: var(--texto);
  box-shadow: 0 4px 14px rgba(17, 24, 39, .18);
}
.filtro-buscar .input-wrap input:focus { outline: 3px solid rgba(251, 191, 36, .6); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 2px solid #E5E7EB; background: var(--blanco); color: var(--texto);
  padding: .4rem .9rem; border-radius: 999px; cursor: pointer; font-size: .9rem;
  font-weight: 600; font-family: inherit;
}
.chip-ico { font-size: .95rem; line-height: 1; }
.chip:hover { border-color: var(--morado-600); }
.chip.is-active { background: var(--morado-900); border-color: var(--morado-900); color: var(--blanco); }

.contador { color: var(--gris); font-weight: 700; margin: 0 0 1rem; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }

.card {
  background: var(--blanco); border: 1px solid #E5E7EB; border-radius: var(--radio);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: var(--morado-600); }
/* La imagen va fuera de flujo: así el alto del contenedor sale solo del aspect-ratio
   y no del tamaño intrínseco de la foto al terminar de cargar (evita layout shift). */
.card-media { background: var(--blanco); aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
/* contain, no cover: en un catálogo de máquinas la foto no se debe recortar. */
.card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card-cat { color: var(--morado-600); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.card-name { font-size: 1.05rem; margin: 0; }
.card-model { color: var(--gris); font-size: .85rem; margin: 0; font-variant-numeric: tabular-nums; }
.card-price { color: var(--rojo); font-size: 1.4rem; font-weight: 900; margin: .35rem 0 .75rem; }
.card .btn { margin-top: auto; width: 100%; }

/* Tarjetas compactas en celular: 2 columnas, ~4 tarjetas visibles por pantalla. */
@media (max-width: 639.98px) {
  .card-body { padding: .65rem .7rem; gap: .15rem; }
  .card-cat { font-size: .62rem; }
  .card-name { font-size: .82rem; line-height: 1.25; }
  .card-model { font-size: .7rem; }
  .card-price { font-size: 1.05rem; margin: .2rem 0 .45rem; }
  .card .btn { padding: .45rem .5rem; font-size: .8rem; }
}

.empty-state {
  background: #FEF3C7; border: 2px dashed var(--dorado); border-radius: var(--radio);
  padding: 1.5rem; text-align: center; font-weight: 700; margin-top: 1rem;
}
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .65); }
.modal-box {
  position: relative; background: var(--blanco); border-radius: var(--radio);
  max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--sombra-alta); padding: 1.5rem;
}
.modal-close {
  position: absolute; top: .5rem; right: .75rem; background: transparent; border: none;
  font-size: 2rem; line-height: 1; cursor: pointer; color: var(--gris); font-family: inherit;
}
.modal-grid { display: grid; gap: 1.25rem; }
.modal-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; background: var(--blanco); border: 1px solid #E5E7EB; }
.modal-thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.modal-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid #E5E7EB; cursor: pointer; }
.modal-cat { color: var(--morado-600); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.modal-model { color: var(--gris); font-size: .9rem; }
.modal-price { color: var(--rojo); font-size: 1.9rem; font-weight: 900; margin: .25rem 0 0; }
.modal-desc { color: var(--texto); }
.modal-specs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; }
.modal-specs li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #E5E7EB; padding: .35rem 0; font-size: .92rem; }
.modal-specs span:first-child { color: var(--gris); }
.modal-specs span:last-child { font-weight: 700; }
.modal-ctas { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- sedes */
.sedes { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.sedes-grid { display: grid; gap: 1rem; }
.sede { background: var(--blanco); border-radius: var(--radio); padding: 1.25rem; box-shadow: var(--sombra); }
.sede h3 { color: var(--morado-900); }
.sede p { color: var(--gris); font-size: .92rem; margin: 0; }
.sede-address {
  display: flex; align-items: flex-start; gap: .35rem;
  margin-top: .6rem; padding-top: .6rem; border-top: 1px solid #E5E7EB;
  color: var(--morado-600); font-weight: 600; font-size: .85rem;
  text-decoration: none; cursor: pointer;
}
.sede-address:hover { color: var(--morado-900); text-decoration: underline; }
.sede-address::before { content: "📍"; flex: none; font-size: .9rem; line-height: 1.3; }

/* ---------------------------------------------------------------- cotizador */
.cotizar { padding: clamp(2rem, 5vw, 3.5rem) 0; background: var(--blanco); }
.cotizar-inner { display: grid; gap: 1.5rem; align-items: start; }
.cotizar-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: var(--gris); }
.cotizar-points li::before { content: "✓"; color: var(--rojo); font-weight: 900; margin-right: .5rem; }

.form {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  background: var(--fondo); border-radius: var(--radio); padding: 1.25rem; border: 1px solid #E5E7EB;
}
/* min-width:0 evita que el <select> de 109 productos ensanche la pagina en movil. */
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea {
  padding: .7rem .9rem; border: 2px solid #E5E7EB; border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: var(--blanco); color: var(--texto);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--morado-600); outline: none; }
.field [aria-invalid="true"] { border-color: var(--rojo); background: #FEF2F2; }
.field-check { flex-direction: row; align-items: flex-start; gap: .55rem; flex-wrap: wrap; }
.field-check input { width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.field-check label { font-weight: 500; font-size: .92rem; }
.error { color: var(--rojo); font-size: .85rem; font-weight: 700; margin: 0; }
.field-check .error { width: 100%; }
.form-fine { color: var(--gris); font-size: .8rem; margin: .5rem 0 0; }
.form-error-box {
  background: #FEF2F2; border: 2px solid var(--rojo); color: var(--rojo);
  border-radius: 10px; padding: .75rem; font-weight: 700; margin: 0;
}
.lead-success {
  background: linear-gradient(135deg, var(--morado-900), var(--morado-600)); color: var(--blanco);
  border-radius: var(--radio); padding: 1.75rem; text-align: center;
}
.lead-success h3 { color: var(--amarillo); }
.lead-success .btn { margin-top: .5rem; background: var(--dorado); color: var(--morado-900); }

/* ---------------------------------------------------------------- faq */
.faq { padding: clamp(2rem, 5vw, 3.5rem) 0 6rem; }
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: var(--blanco); border-radius: 10px; box-shadow: var(--sombra); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
  padding: 1rem 1.25rem; font-size: 1rem; font-weight: 700; font-family: inherit; color: var(--texto);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-q::after { content: "+"; color: var(--morado-600); font-size: 1.4rem; font-weight: 900; }
.faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-a { padding: 0 1.25rem 1rem; color: var(--gris); }
.faq-a p { margin: 0; }

/* ---------------------------------------------------------------- footer */
.footer {
  background: linear-gradient(135deg, var(--morado-900) 0%, var(--morado-600) 100%);
  color: var(--blanco); padding: 2.5rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 1.5rem; }
.footer-logo { font-weight: 900; font-size: 1.5rem; letter-spacing: .14em; margin: 0 0 .35rem; }
.footer-legal { color: #E9D5FF; font-size: .9rem; margin: 0 0 .25rem; }
.footer-nav { display: grid; gap: .35rem; }
.footer-nav a, .footer-contact a { color: var(--dorado); text-decoration: none; font-weight: 600; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-contact p { margin: 0 0 .35rem; }
.footer-privacy { color: #E9D5FF; font-size: .82rem; margin-top: .75rem; }
.footer-copy { text-align: center; color: #DDD6FE; font-size: .8rem; margin: 1.5rem 0 0; }

/* ---------------------------------------------------------------- CTAs flotantes */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: .5rem; padding: .6rem .75rem;
  background: rgba(255, 255, 255, .97); border-top: 2px solid var(--dorado);
  box-shadow: 0 -6px 18px rgba(17, 24, 39, .12);
}
.sticky-cta .btn { flex: 1; padding: .7rem .5rem; }

/* Celular: flota abajo a la derecha, encima de la barra sticky-cta.
   Desktop (768px+): centrado en el borde derecho (ver media query). */
.fab-wa {
  position: fixed; right: 1rem; bottom: calc(4.5rem + 1rem); z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--blanco); text-decoration: none;
  box-shadow: var(--sombra-alta);
}
.fab-wa:hover { background: #1EBE5B; }

/* Celular: el buscador, "ordenar por" y el carrusel de familias no van;
   se pasa directo del hero al catalogo de maquinas. */
@media (max-width: 767.98px) {
  .filtro-buscar, .familias { display: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (min-width: 640px) {
  .grid { gap: 1.25rem; }
  .sedes-grid { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .modal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  body { padding-bottom: 4.5rem; }
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
  .fab-wa { bottom: auto; top: 50%; transform: translateY(-50%); right: 1.25rem; }
  .faq { padding-bottom: 3.5rem; }
}

@media (min-width: 640px) {
  html { scroll-padding-top: 76px; }
  .topbar-inner { gap: .6rem; padding: .6rem 0; }
  .brand-logo { height: 36px; }
  .topbar-nav { flex: 0 1 auto; order: 0; margin-left: .6rem; overflow: visible; }
  .phone-pill { display: inline-flex; }
  .hc-inner { width: min(100% - 6rem, var(--ancho)); padding: 1.6rem 0 1.7rem; gap: 1.1rem; }
  .hc-items { gap: .7rem; }
  .hc-item { padding: .5rem .5rem .6rem; }
  .hc-item:nth-child(n+4) { display: flex; }
  .hc-tagline { font-size: .95rem; }
  .hc-item-name { font-size: .82rem; min-height: 2.44em; }
  .hc-item-model { font-size: .66rem; }
  .hc-item-price { font-size: 1.05rem; }
  .hc-buy { padding: .42rem .5rem; font-size: .82rem; }
  .hc-nav { width: 42px; height: 42px; }
  .hc-prev { left: .5rem; }
  .hc-next { right: .5rem; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .hc-inner {
    width: min(100% - 7rem, var(--ancho));
    grid-template-columns: minmax(220px, 300px) 1fr; gap: 2rem;
    padding: 2rem 0 2.1rem;
  }
  .hc-items { justify-content: flex-end; gap: .9rem; }
  .hc-item { flex: 1 1 170px; }
  .hc-prev { left: 1rem; }
  .hc-next { right: 1rem; }
  .sedes-grid { grid-template-columns: repeat(4, 1fr); }
  .cotizar-inner { grid-template-columns: .8fr 1.2fr; }
  .footer-grid { grid-template-columns: 1.2fr .8fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, a.navpill:hover { transform: none; }
  .hc-track { transition: none; }
  .hc-dot { transition: none; }
}
