/* =====================================================================
   Anchetas Navideñas · Componentes (prefijo ac-, BEM)
   Destino WordPress: plugin anchetas-cotizacion/assets/css/componentes.css
   Índice: 1 Botones · 2 Insignias/chips · 3 Header/megamenú/búsqueda · 4 Menú móvil
           5 Barra inferior · 6 Toast · 7 Tarjeta · 8 Carrusel · 9 Inicio
           10 Tienda/filtros · 11 Buscador · 12 Ficha · 13 Formularios
           14 Mi cotización · 15 Cotizador · 16 Vista PDF · 17 Gracias · 18 Footer
   ===================================================================== */

/* ---------- 1. Botones ---------- */
.ac-boton {
  --b-fondo: transparent; --b-texto: var(--ac-texto); --b-borde: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ac-e-2);
  min-height: var(--ac-toque); padding: 0 1.25rem;
  font-size: 1rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--b-texto); background: var(--b-fondo);
  border: 1.5px solid var(--b-borde); border-radius: var(--ac-radio-pildora);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--ac-dur) var(--ac-curva), transform var(--ac-dur-rapida) ease-out, border-color var(--ac-dur);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* Feedback en pointer-down (sz2-design §1) */
.ac-boton:active { transform: scale(0.97); }
.ac-boton[disabled], .ac-boton[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.ac-boton--accion { --b-fondo: var(--ac-accion); --b-texto: #fff; }
.ac-boton--accion:active { --b-fondo: var(--ac-accion-press); }
/* Lima de los delantales: CTA sobre el rojo del HERO. Texto SIEMPRE #292929 (7,0:1), nunca blanco */
.ac-boton--lima { --b-fondo: var(--ac-lima); --b-texto: var(--ac-texto); }
.ac-boton--lima:active { --b-fondo: var(--ac-lima-claro); }
/* Secundario sobre rojo: contorno blanco translúcido, texto blanco (8,9:1) */
.ac-boton--sobre-rojo { --b-fondo: rgb(255 255 255 / 0.08); --b-texto: #fff; --b-borde: rgb(255 255 255 / 0.55); }
.ac-boton--sobre-rojo:active { --b-fondo: rgb(255 255 255 / 0.18); }
/* Resto de controles tocables: feedback en pointer-down (§1) */
.ac-nav__enlace, .ac-mega__enlace, .ac-menu-movil__enlaces a, .ac-galeria__miniaturas button, .ac-buscador__opcion, .ac-aplicado, .ac-logo {
  transition: transform var(--ac-dur-rapida) ease-out, background-color var(--ac-dur);
  -webkit-tap-highlight-color: transparent;
}
.ac-nav__enlace:active, .ac-mega__enlace:active, .ac-menu-movil__enlaces a:active, .ac-galeria__miniaturas button:active, .ac-buscador__opcion:active { transform: scale(0.97); }
.ac-boton--oscuro { --b-fondo: var(--ac-oscuro); --b-texto: #fff; }
.ac-boton--contorno { --b-borde: var(--ac-texto); }
.ac-boton--claro { --b-fondo: #fff; --b-borde: var(--ac-borde); }
.ac-boton--suave { --b-fondo: var(--ac-fondo-2); }
.ac-boton--texto { padding-inline: var(--ac-e-2); --b-texto: var(--ac-marca); text-decoration: underline; text-underline-offset: 0.2em; }
.ac-boton--exito { --b-fondo: var(--ac-verde-suave); --b-texto: var(--ac-verde-texto); --b-borde: var(--ac-verde); }
.ac-boton--bloque { width: 100%; }
.ac-boton--grande { min-height: 3.375rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.ac-boton--icono { width: var(--ac-toque); padding: 0; }
.ac-boton--wa .ac-icono { color: #167a40; } /* 5,4:1 sobre blanco */
/* WhatsApp como siguiente paso principal (página de gracias). Sólido oscuro para no
   competir con el único acento rojo; el ícono lleva el verde de WhatsApp (sobre #292929). */
.ac-boton--wa-solido { --b-fondo: var(--ac-oscuro); --b-texto: #fff; }
.ac-boton--wa-solido .ac-icono { color: #25d366; }
@media (hover: hover) and (pointer: fine) { .ac-boton--wa-solido:hover { --b-fondo: #3d3d3d; } }
@media (hover: hover) and (pointer: fine) {
  .ac-boton--accion:hover { --b-fondo: var(--ac-accion-hover); }
  .ac-boton--oscuro:hover { --b-fondo: #3d3d3d; }
  .ac-boton--lima:hover { --b-fondo: var(--ac-lima-hover); }
  .ac-boton--sobre-rojo:hover { --b-fondo: rgb(255 255 255 / 0.16); --b-borde: #fff; }
  .ac-boton--contorno:hover, .ac-boton--claro:hover, .ac-boton--suave:hover { --b-fondo: var(--ac-fondo-3); }
}

.ac-grupo-botones { display: flex; flex-wrap: wrap; gap: var(--ac-e-3); align-items: center; }

/* ---------- 2. Insignias y chips ---------- */
.ac-insignia {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin: 0; padding: 0.25rem 0.6rem; border-radius: var(--ac-radio-pildora);
  font-size: var(--ac-fs-mini); font-weight: 650; line-height: 1.2; letter-spacing: var(--ac-tracking-mini);
  background: var(--ac-fondo-2); color: var(--ac-texto);
}
.ac-insignia--marca { background: var(--ac-marca-suave); color: var(--ac-marca); }
.ac-insignia--verde { background: var(--ac-verde-suave); color: var(--ac-verde-texto); }
.ac-insignia--aviso { background: var(--ac-aviso-suave); color: var(--ac-aviso-texto); }

.ac-chips { display: flex; flex-wrap: wrap; gap: var(--ac-e-2); }
.ac-chip { position: relative; display: inline-flex; }
.ac-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ac-chip > span, a.ac-chip, button.ac-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: var(--ac-toque); min-width: 3.25rem; padding: 0 1rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--ac-texto); text-decoration: none;
  background: #fff; border: 1.5px solid var(--ac-borde-control); border-radius: var(--ac-radio-pildora);
  transition: background-color var(--ac-dur), color var(--ac-dur), transform var(--ac-dur-rapida) ease-out;
  white-space: nowrap;
}
.ac-chip:active > span, a.ac-chip:active, button.ac-chip:active { transform: scale(0.97); }
/* Chip activo: rojo de marca (blanco encima 8,9:1) */
.ac-chip input:checked + span, .ac-chip[aria-pressed="true"], .ac-chip[aria-current="true"] {
  background: var(--ac-marca); border-color: var(--ac-marca); color: #fff;
}
.ac-chip input:focus-visible + span { outline: 3px solid var(--ac-foco); outline-offset: 3px; }
.ac-chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.ac-chip--sugerido > span { border-color: var(--ac-marca); box-shadow: inset 0 0 0 1px var(--ac-marca); }
/* Variante para chips-botón (tarjeta): cantidad sugerida por la búsqueda o el cotizador */
button.ac-chip.ac-chip--sugerido-b { border-color: var(--ac-marca); box-shadow: inset 0 0 0 1px var(--ac-marca); color: var(--ac-marca); }
@media (hover: hover) and (pointer: fine) {
  .ac-chip:hover > span, a.ac-chip:hover, button.ac-chip:hover { background: var(--ac-lima-suave); border-color: var(--ac-verde); }
  .ac-chip input:checked + span:hover { background: var(--ac-marca-oscuro); border-color: var(--ac-marca-oscuro); }
}

/* Chip de filtro aplicado (con ×) */
.ac-aplicado {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2.25rem; padding: 0 0.5rem 0 0.85rem;
  font-size: var(--ac-fs-pequeno); font-weight: 600; color: var(--ac-texto);
  background: var(--ac-fondo-2); border: 0; border-radius: var(--ac-radio-pildora); white-space: nowrap;
}
.ac-aplicado .ac-icono { width: 1rem; height: 1rem; }
.ac-aplicado:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ac-aplicado:hover { background: var(--ac-fondo-3); } }

/* ---------- 3. Header ---------- */
.ac-header {
  position: sticky; top: 0; z-index: var(--ac-z-header);
  background: var(--ac-material);
  -webkit-backdrop-filter: var(--ac-material-blur); backdrop-filter: var(--ac-material-blur);
  border-bottom: 1px solid var(--ac-material-borde);
}
.ac-header__fila {
  display: flex; align-items: center; gap: var(--ac-e-3);
  height: var(--ac-alto-header);
}
.ac-logo {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-right: auto; min-width: 0;
  min-height: var(--ac-toque);
  color: var(--ac-marca); text-decoration: none; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.0625rem); white-space: nowrap;
}
.ac-logo:active { transform: scale(0.97); }
/* Logo real (Desayunos del Cielo, óvalo azul del original) + nombre de la tienda */
.ac-logo__img { display: block; flex: none; width: auto; height: 2.5rem; aspect-ratio: 169 / 88; }
@media (min-width: 64rem) { .ac-logo__img { height: 2.75rem; } }
.ac-logo__texto { padding-left: 0.6rem; border-left: 1px solid var(--ac-borde); }
/* Móvil: en el header solo el logo (el nombre sigue disponible para lectores de pantalla) */
@media (max-width: 47.99rem) {
  .ac-header .ac-logo__texto { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
}
.ac-logo span small { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ac-texto-2); margin-top: 1px; }
.ac-nav { display: none; }
.ac-nav__lista { display: flex; align-items: center; gap: var(--ac-e-1); list-style: none; }
.ac-nav__enlace {
  display: inline-flex; align-items: center; gap: 0.25rem;
  min-height: var(--ac-toque); padding: 0 0.8rem; border-radius: var(--ac-radio-pildora);
  font-size: 0.9375rem; font-weight: 550; color: var(--ac-texto); text-decoration: none;
  background: none; border: 0;
}
.ac-nav__enlace[aria-current="page"] { color: var(--ac-marca); font-weight: 650; }
.ac-nav__enlace[aria-expanded] .ac-icono { width: 1rem; height: 1rem; transition: transform var(--ac-dur) var(--ac-curva); }
.ac-nav__enlace[aria-expanded="true"] .ac-icono { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .ac-nav__enlace:hover { background: rgb(0 0 0 / 0.05); } }

.ac-header__acciones { display: flex; align-items: center; gap: var(--ac-e-1); }
.ac-header__icono {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: var(--ac-toque); min-height: var(--ac-toque); padding: 0 0.6rem;
  border: 0; background: none; border-radius: var(--ac-radio-pildora);
  color: var(--ac-texto); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.ac-header__icono:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .ac-header__icono:hover { background: rgb(0 0 0 / 0.05); } }
.ac-header__icono .ac-icono { width: 1.375rem; height: 1.375rem; }
.ac-contador {
  display: inline-grid; place-items: center; min-width: 1.375rem; height: 1.375rem; padding: 0 0.3rem;
  font-size: 0.75rem; font-weight: 700; line-height: 1; color: #fff; background: var(--ac-marca); border-radius: var(--ac-radio-pildora);
}
.ac-contador[data-cero] { background: var(--ac-fondo-3); color: var(--ac-texto); }
.ac-header__cta { display: none; }
.ac-solo-escritorio { display: none; }

@media (min-width: 64rem) {
  .ac-nav { display: block; }
  .ac-logo { margin-right: var(--ac-e-4); flex: none; }
  .ac-nav__enlace, .ac-header__icono { white-space: nowrap; }
  .ac-header__acciones { margin-left: auto; }
  .ac-header__cta { display: inline-flex; min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.9375rem; white-space: nowrap; }
  .ac-header__menu { display: none; }
  .ac-solo-escritorio { display: inline; }
}
/* Laptop pequeña / tablet horizontal (1024–1279): sin espacio para nombre + menú completo.
   Se oculta el nombre (queda el logo y sigue disponible para lectores) y se compacta el menú. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .ac-header .ac-logo__texto { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
  .ac-header__fila { gap: var(--ac-e-2); }
  .ac-nav__enlace { padding: 0 0.6rem; }
}

/* Megamenú (patrón disclosure navigation; panel sólido bajo material translúcido) */
.ac-mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--ac-borde); box-shadow: var(--ac-sombra-2);
  max-height: calc(100dvh - var(--ac-alto-header)); overflow: auto;
}
.ac-mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 17rem; gap: var(--ac-e-6); padding-block: var(--ac-e-5) var(--ac-e-6); }
.ac-mega__titulo { margin-bottom: var(--ac-e-3); font-size: var(--ac-fs-mini); font-weight: 650; letter-spacing: var(--ac-tracking-mini); color: var(--ac-texto-3); }
.ac-mega__lista { list-style: none; display: grid; gap: 2px; }
.ac-mega__enlace {
  display: flex; align-items: center; gap: var(--ac-e-3);
  min-height: 2.5rem; padding: 0.3rem 0.5rem; margin-inline: -0.5rem; border-radius: var(--ac-radio-s);
  color: var(--ac-texto); text-decoration: none; font-weight: 550; font-size: 0.9688rem;
}
.ac-mega__enlace .ac-icono { width: 1.25rem; height: 1.25rem; color: var(--ac-marca); }
.ac-mega__enlace .ac-3d, .ac-atajo .ac-3d { display: block; flex: none; width: 1.75rem; height: 1.75rem; object-fit: contain; }
.ac-mega__enlace small { margin-left: auto; color: var(--ac-texto-3); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .ac-mega__enlace:hover { background: var(--ac-lima-suave); } }
.ac-mega__tarjeta { padding: var(--ac-e-5); background: var(--ac-crema); border-radius: var(--ac-radio-l); display: grid; gap: var(--ac-e-3); align-content: start; }
.ac-mega__tarjeta p { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }

/* Panel de búsqueda bajo el header */
.ac-busqueda-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ac-borde); box-shadow: var(--ac-sombra-2); padding-block: var(--ac-e-4) var(--ac-e-5); }

/* ---------- 4. Menú móvil (dialog) ---------- */
.ac-dialogo {
  margin: 0; padding: 0; border: 0; max-width: none; max-height: none;
  color: var(--ac-texto); background: #fff;
}
.ac-dialogo::backdrop { background: rgb(0 0 0 / 0.35); }
.ac-menu-movil { width: 100%; height: 100dvh; inset: 0; }
.ac-menu-movil[open] { display: flex; flex-direction: column; }
.ac-menu-movil__cabeza { display: flex; align-items: center; justify-content: space-between; gap: var(--ac-e-3); padding: var(--ac-e-2) var(--ac-margen); border-bottom: 1px solid var(--ac-borde); }
.ac-menu-movil__cuerpo { flex: 1; overflow: auto; padding: var(--ac-e-4) var(--ac-margen) var(--ac-e-6); display: grid; gap: var(--ac-e-5); align-content: start; }
.ac-menu-movil__pie { display: grid; grid-template-columns: 1fr auto; gap: var(--ac-e-2); padding: var(--ac-e-3) var(--ac-margen) calc(var(--ac-e-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--ac-borde); }
.ac-atajos { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--ac-e-2); }
.ac-atajo {
  display: flex; align-items: center; gap: var(--ac-e-2);
  min-height: 3.25rem; padding: 0.5rem 0.75rem; border-radius: var(--ac-radio);
  background: var(--ac-fondo-2); color: var(--ac-texto); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.ac-atajo .ac-icono { color: var(--ac-marca); }
.ac-atajo:active { transform: scale(0.97); }
.ac-acordeon > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: var(--ac-toque);
  list-style: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em;
}
.ac-acordeon > summary::-webkit-details-marker { display: none; }
.ac-acordeon > summary .ac-icono { transition: transform var(--ac-dur) var(--ac-curva); }
.ac-acordeon[open] > summary .ac-icono { transform: rotate(180deg); }
.ac-acordeon > *:not(summary) { margin-top: var(--ac-e-3); }
.ac-menu-movil__enlaces { list-style: none; display: grid; }
.ac-menu-movil__enlaces a { display: flex; align-items: center; min-height: var(--ac-toque); color: var(--ac-texto); text-decoration: none; font-weight: 600; font-size: 1.0625rem; border-bottom: 1px solid var(--ac-borde); }

/* ---------- 5. Barra inferior móvil (material translúcido §12) ---------- */
.ac-barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--ac-z-barra);
  display: flex; align-items: center; gap: var(--ac-e-2);
  min-height: var(--ac-alto-barra);
  padding: var(--ac-e-2) var(--ac-margen) calc(var(--ac-e-2) + env(safe-area-inset-bottom));
  background: var(--ac-material);
  -webkit-backdrop-filter: var(--ac-material-blur); backdrop-filter: var(--ac-material-blur);
  border-top: 1px solid var(--ac-material-borde);
}
.ac-barra__resumen { flex: 1; min-width: 0; display: grid; text-decoration: none; color: var(--ac-texto); line-height: 1.25; min-height: var(--ac-toque); align-content: center; }
.ac-barra__resumen strong { font-size: 0.9375rem; font-weight: 700; }
.ac-barra__resumen span { font-size: var(--ac-fs-mini); color: var(--ac-texto-2); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-barra__cta { flex: 1; }
.ac-barra__resumen:not([hidden]) + .ac-barra__cta { flex: 0 0 auto; }
@media (min-width: 64rem) { .ac-barra { display: none; } }

/* ---------- 6. Toast (aviso visual; el anuncio para lector va en #ac-anuncio) ---------- */
.ac-toast {
  position: fixed; z-index: var(--ac-z-toast);
  left: 50%; translate: -50% 0; bottom: calc(var(--ac-alto-barra) + env(safe-area-inset-bottom) + 0.75rem);
  width: min(calc(100% - 2rem), 28rem);
  display: grid; grid-template-columns: auto 1fr; gap: var(--ac-e-2) var(--ac-e-3); align-items: start;
  padding: var(--ac-e-4); border-radius: var(--ac-radio-l);
  color: #fff; background: rgb(29 29 31 / 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--ac-sombra-3);
  transition: opacity var(--ac-dur) var(--ac-curva), transform var(--ac-dur) var(--ac-curva);
}
.ac-toast[data-estado="oculto"] { opacity: 0; transform: translateY(8px); pointer-events: none; }
.ac-toast > .ac-icono { color: #b9d27a; width: 1.5rem; height: 1.5rem; }
.ac-toast p { margin: 0; font-weight: 550; line-height: 1.35; }
.ac-toast__acciones { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--ac-e-2); }
.ac-toast .ac-boton { min-height: 2.5rem; font-size: 0.9375rem; }
.ac-toast .ac-boton--claro { --b-borde: transparent; }
.ac-toast .ac-boton--fantasma { --b-texto: #fff; --b-borde: rgb(255 255 255 / 0.5); }
@media (min-width: 64rem) { .ac-toast { left: auto; right: 1.5rem; translate: none; bottom: 1.5rem; } }
@media (prefers-reduced-transparency: reduce) { .ac-toast { background: var(--ac-oscuro); } }

/* ---------- 7. Tarjeta de producto ---------- */
.ac-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ac-e-6) var(--ac-e-3); list-style: none; }
@media (min-width: 40rem) { .ac-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ac-e-6) var(--ac-e-5); } }
.ac-tarjeta { display: flex; flex-direction: column; min-width: 0; position: relative; }
.ac-tarjeta__media {
  display: block; aspect-ratio: 1; border-radius: var(--ac-radio-l); overflow: hidden;
  background: var(--ac-fondo-2);
}
.ac-seccion--gris .ac-tarjeta__media { background: #fff; }
.ac-tarjeta__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform 400ms var(--ac-curva); }
@media (hover: hover) and (pointer: fine) { .ac-tarjeta:hover .ac-tarjeta__media img { transform: scale(1.03); } }
.ac-tarjeta__cuerpo { display: flex; flex-direction: column; flex: 1; gap: var(--ac-e-2); padding-top: var(--ac-e-4); }
.ac-tarjeta__insignia { align-self: flex-start; }
.ac-tarjeta__titulo { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.ac-tarjeta__titulo a { color: var(--ac-texto); text-decoration: none; }
.ac-tarjeta__titulo a::after { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; } /* toda la foto lleva a la ficha */
@media (hover: hover) and (pointer: fine) { .ac-tarjeta__titulo a:hover { text-decoration: underline; } }
.ac-tarjeta__precio { margin: 0; color: var(--ac-texto-2); font-size: 0.9375rem; }
.ac-tarjeta__precio strong { color: var(--ac-texto); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.ac-icono--16 { width: 1rem; height: 1rem; }
/* Rasgos con ícono: licor · N productos · presentación (en tarjetas estrechas la presentación se oculta) */
.ac-tarjeta__cuerpo { container-type: inline-size; }
.ac-tarjeta__rasgos { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0; font-size: var(--ac-fs-mini); color: var(--ac-texto-2); }
.ac-tarjeta__rasgos li { display: inline-flex; align-items: center; gap: 0.3rem; }
.ac-tarjeta__rasgos .ac-icono { flex: none; }
@container (max-width: 12rem) { .ac-tarjeta__rasgos li:nth-child(3) { display: none; } }
.ac-tarjeta .ac-agregar, .ac-tarjeta [data-solo-sin-js] { margin-top: auto; padding-top: var(--ac-e-2); }
.ac-tarjeta .ac-boton { min-height: var(--ac-toque); font-size: 0.9375rem; padding-inline: 0.75rem; white-space: normal; text-align: center; }

/* «Agregar a mi cotización» → chips 10·25·50·100·Otra (la sugerida por la búsqueda, resaltada).
   Botón sólido oscuro de la marca; en la lista: «✓ En tu cotización · N u · Cambiar» en verde.
   Tarjetas estrechas (2 columnas en móvil): el texto se acorta a «Agregar» / «✓ N u · Cambiar» (1 línea). */
.ac-agregar { position: relative; z-index: 1; }
.ac-agregar__boton { --b-fondo: var(--ac-oscuro); --b-texto: #fff; --b-borde: var(--ac-oscuro); }
@media (hover: hover) and (pointer: fine) { .ac-agregar__boton:hover { --b-fondo: #3d3d3d; } }
.ac-agregar__boton[aria-expanded="true"] { --b-fondo: #fff; --b-texto: var(--ac-texto); --b-borde: var(--ac-texto); }
.ac-agregar__boton[data-en-lista] { --b-fondo: var(--ac-verde-suave); --b-borde: var(--ac-verde); --b-texto: var(--ac-verde-texto); }
.ac-agregar__boton[data-en-lista] .ac-icono { animation: ac-agregada 360ms var(--ac-curva); }
.ac-agregar__boton .ac-icono { flex: none; }
.ac-agregar__texto { white-space: nowrap; }
/* El nombre accesible no pierde nada: el span .ac-sr ya nombra la ancheta y su estado */
@container (max-width: 16.5rem) { .ac-agregar__largo { display: none; } }
@keyframes ac-agregada { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ac-agregar__panel { margin-top: var(--ac-e-3); display: grid; gap: var(--ac-e-2); }
.ac-agregar__panel[hidden] { display: none; }
.ac-agregar__legend { margin: 0; font-size: var(--ac-fs-pequeno); font-weight: 650; }
.ac-chips--cantidad { gap: 0.375rem; }
.ac-chips--cantidad .ac-chip > span { min-width: 0; padding: 0 0.7rem; font-size: 0.875rem; }
/* Chips-botón de la tarjeta: rejilla que siempre cabe (3 + 2 en tarjetas estrechas, 5 en una fila si caben) */
.ac-agregar .ac-chips--cantidad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (min-width: 17rem) { .ac-agregar .ac-chips--cantidad { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ac-agregar .ac-chips--cantidad button.ac-chip { min-width: 0; padding: 0 0.25rem; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
/* «Otra»: etiqueta visible + stepper [−][campo][+] a todo el ancho + «Agregar»; ayuda y error debajo */
.ac-agregar__otra { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ac-e-2); }
.ac-agregar__otra[hidden] { display: none; }
.ac-agregar__otra-label { font-size: var(--ac-fs-mini); font-weight: 600; }
.ac-agregar__ayuda { margin: 0; font-size: var(--ac-fs-mini); color: var(--ac-texto-2); line-height: 1.35; }
.ac-tarjeta .ac-agregar__ok { min-height: var(--ac-toque); padding-inline: 0.9rem; width: 100%; }
@container (min-width: 17rem) { .ac-agregar__otra { grid-template-columns: minmax(0, 1fr) auto; } .ac-agregar__otra > :not(.ac-stepper):not(.ac-agregar__ok) { grid-column: 1 / -1; } .ac-tarjeta .ac-agregar__ok { width: auto; } }
.ac-tarjeta .ac-agregar__quitar { justify-self: center; min-height: var(--ac-toque); font-size: var(--ac-fs-mini); --b-texto: var(--ac-texto-2); }
.ac-agregar__quitar[hidden] { display: none; }
/* Contador de «Mi cotización»: pulso breve al agregar (microfeedback) */
.ac-contador[data-pulso] { animation: ac-pulso 420ms var(--ac-curva); }
@keyframes ac-pulso { 40% { transform: scale(1.35); } }
/* <li> de la rejilla de tienda: estira la tarjeta para alinear los botones al pie */
.ac-rejilla__item { display: flex; min-width: 0; }
.ac-rejilla__item > .ac-tarjeta { flex: 1; }

/* ---------- 8. Carrusel (scroll-snap, APG; sin autoplay) ---------- */
.ac-carrusel__cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ac-e-4); margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.ac-carrusel__controles { display: none; gap: var(--ac-e-2); flex: none; }
.ac-js .ac-carrusel__controles { display: flex; }
.ac-carrusel__controles .ac-boton { --b-fondo: var(--ac-fondo-3); }
.ac-seccion--gris .ac-carrusel__controles .ac-boton { --b-fondo: #fff; }
.ac-carrusel__pista {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: var(--ac-e-4); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--ac-margen);
  padding-inline: var(--ac-margen); margin-inline: calc(-1 * var(--ac-margen));
  padding-bottom: var(--ac-e-3); scrollbar-width: none;
}
.ac-carrusel__pista::-webkit-scrollbar { display: none; }
.ac-carrusel__item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 40rem) { .ac-carrusel__pista { grid-auto-columns: calc((100% - 2 * var(--ac-e-5)) / 2.6); gap: var(--ac-e-5); } }
@media (min-width: 64rem) { .ac-carrusel__pista { grid-auto-columns: calc((100% - 3 * var(--ac-e-5)) / 3.6); } }
@media (min-width: 80rem) { .ac-carrusel__pista { grid-auto-columns: calc((100% - 3 * var(--ac-e-5)) / 4); } }
.ac-carrusel__estado { margin-top: var(--ac-e-3); font-size: var(--ac-fs-mini); color: var(--ac-texto-3); }

/* ---------- 8. Stepper de cantidad [−][campo][+] (tarjeta «Otra», ficha y líneas de «Mi cotización») ----------
   Una sola pieza para todo el sitio (js/cantidad.js): botones de 44 px, campo de texto con teclado numérico
   (sin flechas nativas), cifra centrada, 16 px o más (iOS no hace zoom), borde de error y foco visibles. */
.ac-stepper {
  display: grid; grid-template-columns: var(--ac-toque) minmax(3.5rem, 1fr) var(--ac-toque); align-items: center;
  width: 100%; max-width: 12rem; min-height: var(--ac-toque);
  border: 1.5px solid var(--ac-borde-control); border-radius: var(--ac-radio-pildora); background: #fff;
}
.ac-stepper:focus-within { border-color: var(--ac-texto); }
.ac-stepper:has([aria-invalid="true"]) { border-color: var(--ac-error); border-width: 2px; background: var(--ac-error-suave); }
.ac-stepper__btn {
  width: var(--ac-toque); height: var(--ac-toque); border: 0; padding: 0; background: none; color: var(--ac-texto);
  border-radius: var(--ac-radio-pildora); display: grid; place-items: center; cursor: pointer; touch-action: manipulation;
}
.ac-stepper__btn:active { transform: scale(0.92); }
.ac-stepper__btn[aria-disabled="true"] { color: var(--ac-texto-2); opacity: 0.45; }
.ac-stepper__btn:focus-visible { outline: 3px solid var(--ac-foco); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .ac-stepper__btn:not([aria-disabled="true"]):hover { background: var(--ac-fondo-2); } }
.ac-stepper__input {
  width: 100%; min-width: 0; height: var(--ac-toque); padding: 0 0.25rem; border: 0; background: none; color: var(--ac-texto);
  text-align: center; font: inherit; font-size: max(1rem, 16px); font-weight: 650; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.ac-stepper__input::-webkit-inner-spin-button, .ac-stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ac-stepper__input:focus-visible { outline: 3px solid var(--ac-foco); outline-offset: 2px; border-radius: 0.5rem; }
.ac-stepper__input::placeholder { color: var(--ac-texto-2); font-weight: 500; }
.ac-stepper--tarjeta { max-width: none; }

/* Ficha: «Otra» con etiqueta visible, ayuda de «más cantidad» y aviso del mínimo por total */
.ac-cant__ayuda { margin: var(--ac-e-2) 0 0; font-size: var(--ac-fs-mini); color: var(--ac-texto-2); }
.ac-cant__otra-label { font-weight: 600; font-size: 0.9375rem; }
.ac-cant__otra .ac-stepper { max-width: 14rem; }
.ac-cant__otra .ac-campo__ayuda[data-tipo="aviso"] { color: var(--ac-marca); font-weight: 600; }

/* ---------- 9. «Mi cotización» en dos pasos ---------- */
.ac-cot__titulo { margin-top: var(--ac-e-5); }
.ac-pasos-cot { list-style: none; margin: var(--ac-e-5) 0 var(--ac-e-6); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ac-e-2); counter-reset: none; }
.ac-pasos-cot li { position: relative; min-width: 0; }
.ac-pasos-cot li + li::before { content: ""; position: absolute; top: calc(var(--ac-toque) / 2); right: calc(100% - 0.25rem); width: calc(var(--ac-e-2) + 0.5rem); height: 2px; background: var(--ac-borde); }
.ac-pasos-cot__btn {
  width: 100%; min-height: var(--ac-toque); padding: 0.25rem 0.5rem; border: 0; background: none; color: var(--ac-texto-2);
  display: flex; align-items: center; justify-content: center; gap: 0.45rem; font: inherit; font-size: 0.875rem; font-weight: 600; text-align: left; line-height: 1.2;
  border-radius: var(--ac-radio);
}
button.ac-pasos-cot__btn:not(:disabled) { cursor: pointer; color: var(--ac-texto); text-decoration: underline; text-underline-offset: 0.2em; }
button.ac-pasos-cot__btn:disabled { cursor: default; }
.ac-pasos-cot__btn:focus-visible { outline: 3px solid var(--ac-foco); outline-offset: 2px; }
.ac-pasos-cot__n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ac-borde-control); background: #fff; font-variant-numeric: tabular-nums; font-size: 0.875rem; }
.ac-pasos-cot li[data-estado="actual"] .ac-pasos-cot__btn { color: var(--ac-texto); }
.ac-pasos-cot li[data-estado="actual"] .ac-pasos-cot__n { background: var(--ac-oscuro); border-color: var(--ac-oscuro); color: #fff; }
.ac-pasos-cot li[data-estado="hecho"] .ac-pasos-cot__n { background: var(--ac-verde-suave); border-color: var(--ac-verde); color: var(--ac-verde-texto); }
@media (max-width: 23.99rem) { .ac-pasos-cot__btn { flex-direction: column; text-align: center; gap: 0.2rem; font-size: 0.8125rem; } .ac-pasos-cot li + li::before { top: 0.875rem; } }
.ac-cot__paso[hidden] { display: none; }
.ac-cot__paso-titulo { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: var(--ac-e-2); }
.ac-cot__paso-titulo:focus { outline: none; }
.ac-cot__paso-titulo:focus-visible { outline: 3px solid var(--ac-foco); outline-offset: 4px; border-radius: 0.25rem; }
.ac-cot__paso .ac-lista { margin-top: var(--ac-e-5); }
.ac-cot__minimo { margin: var(--ac-e-4) 0 0; padding: var(--ac-e-3) var(--ac-e-4); border-radius: var(--ac-radio); background: #fff4e5; border: 1.5px solid #b45309; color: #7a3a00; font-weight: 600; font-size: 0.9375rem; }
.ac-cot__minimo[hidden] { display: none; }
.ac-cot__acciones-lista { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ac-e-2) var(--ac-e-4); margin-top: var(--ac-e-4); }
.ac-cot__acciones-lista[hidden] { display: none; }
.ac-cot__acciones-lista .ac-boton--texto { min-height: var(--ac-toque); }
.ac-cot__vaciar-btn { --b-texto: var(--ac-texto-2); }
.ac-cot__vaciar { display: inline-flex; }
.ac-cot__confirmar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--ac-e-2); padding: var(--ac-e-2) var(--ac-e-3); border-radius: var(--ac-radio); background: var(--ac-fondo-2); font-weight: 600; font-size: 0.9375rem; }
.ac-cot__confirmar[hidden] { display: none; }
.ac-boton--chico { min-height: var(--ac-toque); padding-inline: 0.9rem; font-size: 0.9375rem; }
.ac-cot__continuar { margin-top: var(--ac-e-6); display: grid; gap: var(--ac-e-2); text-align: center; }
.ac-cot__continuar[hidden] { display: none; }
.ac-cot__continuar .ac-boton .ac-icono { order: 2; }
.ac-cot__volver { min-height: var(--ac-toque); margin: 0 0 var(--ac-e-3) calc(-1 * var(--ac-e-2)); --b-texto: var(--ac-texto); }
.ac-cot__volver--pie { justify-self: center; max-width: 100%; margin: var(--ac-e-2) 0 0; white-space: normal; text-align: center; --b-texto: var(--ac-texto-2); }
.ac-cot__compacto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ac-e-2) var(--ac-e-4); margin: var(--ac-e-3) 0 var(--ac-e-4); padding: var(--ac-e-3) var(--ac-e-4); border-radius: var(--ac-radio); background: var(--ac-fondo-2); font-variant-numeric: tabular-nums; }
.ac-cot__compacto p { margin: 0; display: grid; gap: 0.15rem; }
.ac-cot__compacto p span { color: var(--ac-texto-2); font-size: var(--ac-fs-pequeno); }
.ac-cot__compacto p span strong { color: var(--ac-texto); font-size: 1.0625rem; }
.ac-cot[data-paso-actual="2"] .ac-formulario-cot { margin-top: 0; }
/* En el paso 2 en móvil el resumen grande sobra (ya está el compacto): se oculta para no alargar la página */
@media (max-width: 63.99rem) { .ac-cot[data-paso-actual="2"] > .ac-resumen { display: none; } }
.ac-resumen__cta[hidden] { display: none; }

/* Línea de la lista: stepper, subtotal y «Quitar» siempre dentro del ancho; error de cantidad bajo la línea */
.ac-linea .ac-stepper { width: 9.5rem; max-width: 100%; grid-template-columns: var(--ac-toque) minmax(2.5rem, 1fr) var(--ac-toque); }
.ac-linea__quitar { min-height: var(--ac-toque); --b-texto: var(--ac-texto-2); }
.ac-linea__error { grid-column: 1 / -1; }
.ac-linea__error:empty { display: none; }
@media (max-width: 22.5rem) { .ac-linea__acciones { gap: var(--ac-e-2); } .ac-linea .ac-stepper { width: 8.75rem; } }

/* Teléfono con prefijo +57 visible (el campo acepta también «+57 300…») */
.ac-campo__prefijo { position: relative; display: block; }
.ac-campo__prefijo > span { position: absolute; left: 0.9rem; top: 50%; translate: 0 -50%; color: var(--ac-texto-2); font-weight: 600; pointer-events: none; font-variant-numeric: tabular-nums; }
.ac-campo__prefijo > .ac-campo__input { padding-left: 3.1rem; }
/* Ningún campo por debajo de 16 px (iOS hace zoom al enfocarlos) */
.ac-form .ac-campo__input, .ac-panel__form .ac-campo__input { font-size: max(1rem, 16px); }
