/* Ajustes del documento de hallazgos — HOME (agente home). Solo body.cdmx-homepage. */

/* --- Hero: controles del carrusel con área táctil de 44px; la barrita fina se dibuja con ::before --- */
html body.cdmx-homepage .hero-dots { gap: 0 !important; margin: 8px 0 0 -9px !important; }
html body.cdmx-homepage .hero-dot,
html body.cdmx-homepage .hero-dot.active {
  position: relative;
  width: 44px !important; height: 44px !important; min-width: 44px;
  padding: 0 !important; border: 0 !important;
  background: transparent !important;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
html body.cdmx-homepage .hero-dot::before {
  content: "";
  width: 26px; height: 5px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.35s ease, background 0.35s ease;
}
html body.cdmx-homepage .hero-dot:hover::before { background: rgba(255, 255, 255, 0.55); }
html body.cdmx-homepage .hero-dot.active::before { width: 38px; background: var(--ix-mint, #94DEA5); }
html body.cdmx-homepage .hero-dot:focus-visible { outline: 2px solid var(--ix-mint, #94DEA5); outline-offset: -6px; border-radius: 10px; }

/* --- Testimonios sin sello: estrellas solas a la izquierda --- */
html body.cdmx-homepage .testimonial-top { justify-content: flex-start !important; }

/* --- Fotos de producto y categoría: a todo el ancho, equipo completo (contain, sin recorte) --- */
html body.cdmx-homepage .product-image {
  height: auto !important;
  aspect-ratio: 1 / 1;
  padding: 14px !important;
}
html body.cdmx-homepage .product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}
html body.cdmx-homepage .category-thumb { aspect-ratio: 1 / 1; }
html body.cdmx-homepage .category-thumb img { padding: 8px !important; }

/* --- Precio: 3 MSI (misma regla que la ficha) y "En stock" solo si Woo lo confirma --- */
html body.cdmx-homepage .product-price { margin-bottom: 4px !important; }
html body.cdmx-homepage .product-msi {
  margin: 0 0 10px !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151 !important;
}
html body.cdmx-homepage .product-msi strong { color: #023D54; font-weight: 700; }
html body.cdmx-homepage .product-stock {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 12px !important;
  font-size: 0.875rem; font-weight: 600;
  color: #198E8B !important;
}
html body.cdmx-homepage .product-stock span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #198E8B;
  box-shadow: 0 0 0 3px rgba(25, 142, 139, 0.15);
}
html body.cdmx-homepage .add-to-cart-btn i { transition: transform 0.3s ease; }
html body.cdmx-homepage .add-to-cart-btn:hover i { transform: translateX(3px); }

/* --- Lectura legible: peso 400+, gris oscuro, nunca < 14px --- */
html body.cdmx-homepage .category-subtitle,
html body.cdmx-homepage .contact-info,
html body.cdmx-homepage .trust-sub {
  font-weight: 500 !important;
  color: #374151 !important;
}
html body.cdmx-homepage .contact-info { font-size: 1rem !important; line-height: 1.6 !important; }

/* --- Celular --- */
@media (max-width: 768px) {
  html body.cdmx-homepage .product-image { height: auto !important; padding: 8px !important; }
  html body.cdmx-homepage .trust-sub { font-size: 0.875rem !important; }
}
@media (max-width: 600px) {
  html body.cdmx-homepage .category-thumb img { padding: 4px !important; }
  html body.cdmx-homepage .category-subtitle { font-size: 0.875rem !important; line-height: 1.35 !important; }
  html body.cdmx-homepage .product-msi,
  html body.cdmx-homepage .product-stock { font-size: 0.875rem; }
  html body.cdmx-homepage .product-msi { margin-bottom: 8px !important; line-height: 1.3; }
  html body.cdmx-homepage .product-stock { margin-bottom: 10px !important; }
}

/* --- Hero: titular más largo, cortes de línea equilibrados --- */
html body.cdmx-homepage .hero-title { text-wrap: balance; }

/* ===== HERO con fotos reales de clientes: marco editorial ===== */
html body.cdmx-homepage .hero-showcase { padding: 0 !important; max-width: 600px !important; isolation: isolate; }
/* marco desplazado detrás de la foto + resplandor teal */
html body.cdmx-homepage .hero-showcase::before {
  left: 18px !important; top: 18px !important; translate: none !important;
  width: 100% !important; aspect-ratio: 3 / 2 !important;
  border-radius: 24px !important; background: none !important;
  border: 2px solid rgba(34, 195, 188, 0.55);
  box-shadow: 0 0 60px rgba(34, 195, 188, 0.25);
  z-index: -1;
}
html body.cdmx-homepage .hero-showcase img {
  width: 100% !important; height: auto !important; aspect-ratio: 3 / 2;
  object-fit: cover !important; border-radius: 22px;
  filter: none !important; animation: none !important;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* degradado sobre la foto para que la etiqueta se lea */
html body.cdmx-homepage .hero-showcase .hero-badge {
  top: 16px !important; left: 16px !important; z-index: 2;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5) !important;
}
html body.cdmx-homepage .hero-showcase-label::before { display: none !important; }
html body.cdmx-homepage .hero-showcase-label { margin-top: 30px !important; border-top: 0 !important; padding-top: 0 !important; font-size: 1.05rem !important; color: #fff !important; }
html body.cdmx-homepage .hero-showcase-price:empty { display: none !important; }
@media (max-width: 768px) {
  html body.cdmx-homepage .hero-showcase img { height: auto !important; border-radius: 18px; }
  html body.cdmx-homepage .hero-showcase::before { left: 10px !important; top: 10px !important; border-radius: 20px !important; }
  html body.cdmx-homepage .hero-showcase-label { margin-top: 20px !important; font-size: 0.95rem !important; }
}

/* ===== HERO: cambio automático cada 4 s — cortina diagonal + acercamiento lento (Ken Burns) ===== */
html body.cdmx-homepage .hero-showcase img { transform-origin: 60% 50%; }
html body.cdmx-homepage .hero-showcase.is-auto img { animation: ixKen 4.2s ease-out both !important; }
html body.cdmx-homepage .hero-showcase img.ix-in { animation: ixReveal 1s cubic-bezier(.77, 0, .18, 1) both, ixKen 4.2s ease-out both !important; }
@keyframes ixReveal {
  0%   { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); filter: brightness(1.35) saturate(1.2); }
  100% { clip-path: polygon(-20% 0, 100% 0, 100% 100%, 0 100%); filter: none; }
}
@keyframes ixKen { from { transform: scale(1.1); } to { transform: scale(1); } }
html body.cdmx-homepage .hero-showcase.is-paused img { animation-play-state: paused !important; }
/* la etiqueta entra con la foto */
html body.cdmx-homepage .hero-showcase.is-auto .hero-badge { animation: ixBadge 0.6s 0.35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ixBadge { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* barra activa = cuenta regresiva de 4 s */
html body.cdmx-homepage .hero-showcase.is-auto .hero-dot.active::before { animation: ixDotFill 4s linear both; }
html body.cdmx-homepage .hero-showcase.is-paused .hero-dot.active::before { animation-play-state: paused; }
@keyframes ixDotFill { from { width: 8px; } to { width: 38px; } }
@media (prefers-reduced-motion: reduce) {
  html body.cdmx-homepage .hero-showcase img,
  html body.cdmx-homepage .hero-showcase img.ix-in { animation: none !important; }
}

/* Etiqueta de categoría en tarjetas: un solo renglón, nunca tapa la foto */
html body.cdmx-homepage .product-card .brand-label { white-space: nowrap !important; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  html body.cdmx-homepage .product-card .brand-label { font-size: 0.58rem !important; padding: 5px 8px !important; letter-spacing: 0.04em !important; top: 8px !important; left: 8px !important; }
}
