/* ============================================================================
   ELECTRÓNICA MORELOS — CAPA DE CONVERSIÓN
   Tipografía con carácter + microinteracciones para toda la página.
   Se carga después de la campaña activa y no altera lógica, precios ni rutas.
   ============================================================================ */

:root {
  --mi-ease: cubic-bezier(.22, 1, .36, 1);
  --mi-spring: cubic-bezier(.34, 1.56, .64, 1);
  --mi-accent: var(--em-blue, #1769ff);
  --mi-accent-2: var(--em-gold, #c9a227);
  --mi-ink: var(--em-navy, #101c36);
  --mi-shadow-lift: 0 26px 58px -26px rgba(16, 28, 54, .42);
  --mi-display: var(--em-display, 'Sora', 'Space Grotesk', system-ui, sans-serif);
  --mi-price: var(--em-price, 'Space Grotesk', 'Sora', system-ui, sans-serif);
  --mi-body: var(--em-font, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
}

/* ----------------------------------------------------------------------------
   1. TIPOGRAFÍA CON CARÁCTER
   ---------------------------------------------------------------------------- */
html body {
  font-family: var(--mi-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body .em-section-head h2,
html body .nv-section__head h2 {
  font-family: var(--mi-display) !important;
  letter-spacing: -.04em;
  line-height: 1.06;
  text-wrap: balance;
}

html body h1 { letter-spacing: -.048em; line-height: 1.02; }
html body h2 { line-height: 1.08; }

html body p,
html body li {
  text-wrap: pretty;
}

html body .em-section-head h2 {
  display: inline-block;
  position: relative;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 800;
}

html body .em-section-head p {
  font-size: 1rem;
  line-height: 1.68;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  html body .em-hero__title-accent {
    background: linear-gradient(100deg, var(--mi-accent) 0%, var(--mi-accent-2) 45%, var(--mi-accent) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: miLineFlow 8s linear infinite;
  }
}

/* Kickers: etiquetas cortas con presencia editorial */
html body .em-kicker,
html body .nv-eyebrow,
html body .nv-kicker,
html body .elite-footer__cta-kicker {
  font-family: var(--mi-display);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html body .em-store-name,
html body .em-brand h1 {
  font-family: var(--mi-display) !important;
  font-weight: 800;
  letter-spacing: -.03em;
}

html body .em-btn,
html body .btn-primary,
html body .btn-secondary,
html body .btn-compra-rapida,
html body .em-product-card__buy,
html body .em-search__btn,
html body .em-mobile-search__submit,
html body .mobile-toolbar-btn,
html body .em-mobile-chip,
html body .elite-footer__cta-btn,
html body .elite-footer__newsletter-btn {
  font-family: var(--mi-display);
}

/* Subrayado que se dibuja al entrar en pantalla */
html body .em-section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 15px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mi-accent), var(--mi-accent-2), var(--mi-accent));
  background-size: 200% 100%;
  animation: miLineFlow 6s linear infinite;
  transform: scaleX(.45);
  transform-origin: center;
  opacity: .65;
  transition: transform .7s var(--mi-ease), opacity .7s var(--mi-ease);
}

html body .em-section-head.is-visible h2::after,
html body .em-section-head:hover h2::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Cifras y precios: lectura rápida, cero ambigüedad */
html body .em-product-card__price,
html body .em-product-card__old,
html body .em-product-card__off,
html body .stat-numero,
html body .nv-countdown strong,
html body .nv-board-card__price,
html body .product-price,
html body .precio,
html body [class*="price"] {
  font-family: var(--mi-price) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.025em;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  html body .stat-numero {
    background: linear-gradient(120deg, #ffffff 10%, var(--mi-accent-2) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
  }
}

/* ----------------------------------------------------------------------------
   2. REVELADO PROGRESIVO
   ---------------------------------------------------------------------------- */
html.mi-ready [data-mi-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(.986);
  transition:
    opacity .75s var(--mi-ease),
    transform .75s var(--mi-ease);
  transition-delay: var(--mi-delay, 0ms);
}

html.mi-ready [data-mi-reveal]:not(.is-visible) {
  will-change: opacity, transform;
}

html.mi-ready [data-mi-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ----------------------------------------------------------------------------
   3. BOTONES: DESTELLO, PRESIÓN Y FLECHAS
   ---------------------------------------------------------------------------- */
html body .em-btn,
html body .btn-primary,
html body .btn-secondary,
html body .btn-compra-rapida,
html body .btn-filters-contained,
html body .em-product-card__buy,
html body .em-product-card__cart,
html body .em-search__btn,
html body .em-mobile-search__submit,
html body .mobile-toolbar-btn,
html body .mobile-toolbar-sort,
html body .elite-footer__cta-btn,
html body .elite-footer__newsletter-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform .18s var(--mi-ease),
    box-shadow .18s var(--mi-ease),
    background-color .18s var(--mi-ease),
    border-color .18s var(--mi-ease),
    color .18s var(--mi-ease) !important;
}

html body .em-btn::before,
html body .btn-primary::before,
html body .btn-secondary::before,
html body .btn-compra-rapida::before,
html body .btn-filters-contained::before,
html body .em-product-card__buy::before,
html body .em-product-card__cart::before,
html body .em-search__btn::before,
html body .em-mobile-search__submit::before,
html body .mobile-toolbar-btn::before,
html body .elite-footer__cta-btn::before,
html body .elite-footer__newsletter-btn::before {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: 0;
  width: 42%;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
  transform: translateX(-165%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

html body .em-btn:hover::before,
html body .em-btn:focus-visible::before,
html body .btn-primary:hover::before,
html body .btn-primary:focus-visible::before,
html body .btn-secondary:hover::before,
html body .btn-secondary:focus-visible::before,
html body .btn-compra-rapida:hover::before,
html body .btn-filters-contained:hover::before,
html body .em-product-card__buy:hover::before,
html body .em-product-card__cart:hover::before,
html body .em-search__btn:hover::before,
html body .em-mobile-search__submit:hover::before,
html body .mobile-toolbar-btn:hover::before,
html body .elite-footer__cta-btn:hover::before,
html body .elite-footer__newsletter-btn:hover::before {
  opacity: 1;
  animation: miSheen .9s var(--mi-ease);
}

html body .em-btn > *,
html body .btn-primary > *,
html body .btn-secondary > *,
html body .btn-compra-rapida > *,
html body .em-product-card__buy > *,
html body .em-product-card__cart > *,
html body .em-search__btn > *,
html body .em-mobile-search__submit > *,
html body .elite-footer__cta-btn > *,
html body .elite-footer__newsletter-btn > * {
  position: relative;
  z-index: 2;
}

html body .em-btn i.fa-arrow-right,
html body .em-btn i.fa-arrow-down,
html body .nv-btn i.fa-arrow-right,
html body .em-category__cta i,
html body .elite-footer__cta-btn i,
html body .elite-footer__link span {
  transition: transform .25s var(--mi-ease);
}

html body .em-btn:hover i.fa-arrow-right,
html body .em-btn:hover i.fa-arrow-down,
html body .nv-btn:hover i.fa-arrow-right,
html body .em-category:hover .em-category__cta i,
html body .elite-footer__cta-btn:hover i {
  transform: translateX(6px);
}

html body .em-btn:active,
html body .btn-primary:active,
html body .btn-secondary:active,
html body .btn-compra-rapida:active,
html body .em-product-card__buy:active,
html body .em-product-card__cart:active,
html body .em-search__btn:active,
html body .mobile-toolbar-btn:active,
html body .nv-btn:active {
  transform: translateY(1px) scale(.975) !important;
}

html body .em-mobile-search__submit:active,
html body .em-mobile-search__submit.mi-pressed {
  transform: translateY(-50%) scale(.94) !important;
}

html body .mi-pressed {
  transform: translateY(1px) scale(.975) !important;
}

.mi-ripple {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: currentColor;
  opacity: .24;
  pointer-events: none;
  transform: scale(0);
  animation: miRipple .65s var(--mi-ease) forwards;
}

/* ----------------------------------------------------------------------------
   4. PRODUCTO: DESEO, CONFIANZA Y COMPRA
   ---------------------------------------------------------------------------- */
html body .em-product-card {
  transition:
    transform .35s var(--mi-ease),
    box-shadow .35s var(--mi-ease),
    border-color .35s var(--mi-ease) !important;
}

html body .em-product-card__media img {
  transition: transform .55s var(--mi-ease) !important;
}

html body .em-product-card__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .3s var(--mi-ease), color .2s var(--mi-ease);
}

html body .em-product-card__badge {
  overflow: hidden;
}

html body .em-product-card__badge::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -30%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-160%) skewX(-20deg);
  animation: miBadgeShimmer 4.4s var(--mi-ease) infinite;
  pointer-events: none;
}

html body .em-product-card__stock i {
  animation: miLivePulse 2.2s ease-in-out infinite;
}

html body .em-product-card__cart.is-adding i {
  animation: miSpin .8s linear infinite;
}

html body .em-product-card__price {
  transition: transform .25s var(--mi-ease), text-shadow .25s var(--mi-ease);
}

html body .em-product-card__off {
  transition: transform .22s var(--mi-spring), background-color .22s var(--mi-ease);
}

html body .em-product-card__ship {
  transition: transform .25s var(--mi-spring), box-shadow .25s var(--mi-ease);
}

html body .em-product-card__buy {
  transition:
    transform .18s var(--mi-ease),
    box-shadow .25s var(--mi-ease),
    background .18s var(--mi-ease) !important;
}

html body .em-product-card__buy i {
  transition: transform .25s var(--mi-spring);
}

/* Estado de éxito real: main.js cambia el icono a check */
html body .em-product-card__cart:has(i.fa-check),
html body .em-product-card__buy:has(i.fa-check),
html body .em-product-card__cart.is-added {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 10px 24px -12px rgba(16, 185, 129, .8);
}

html body .mi-fly-dot {
  position: fixed;
  z-index: 99999;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mi-accent-2);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .35), 0 8px 22px rgba(0, 0, 0, .25);
  pointer-events: none;
  transition:
    transform .68s cubic-bezier(.2, .8, .2, 1),
    opacity .68s ease;
}

html body .em-cart-btn.mi-bump {
  animation: miCartWiggle .7s var(--mi-spring);
}

html body #cartCount.mi-bump {
  animation: miCartBump .7s var(--mi-spring);
}

/* ----------------------------------------------------------------------------
   5. CATEGORÍAS, MARCAS, BENEFICIOS Y CAMPAÑAS
   ---------------------------------------------------------------------------- */
html body .em-category {
  transition:
    transform .3s var(--mi-ease),
    box-shadow .3s var(--mi-ease),
    border-color .3s var(--mi-ease);
}

html body .mobile-menu nav a {
  transition:
    transform .2s var(--mi-ease),
    background-color .2s var(--mi-ease),
    color .2s var(--mi-ease);
}

html body .mobile-menu nav a i.fa-chevron-right {
  transition: transform .22s var(--mi-ease);
}

html body .producto-card,
html body .product-card,
html body .product-card-contained {
  transition:
    transform .35s var(--mi-ease),
    box-shadow .35s var(--mi-ease),
    border-color .35s var(--mi-ease) !important;
}

html body .producto-card img,
html body .product-card img,
html body .product-card-contained img {
  transition: transform .55s var(--mi-ease) !important;
}

html body .em-category__icon,
html body .em-benefit__icon,
html body .em-campaign__icon,
html body .marca-card i {
  transition:
    transform .38s var(--mi-spring),
    background-color .25s var(--mi-ease),
    color .25s var(--mi-ease),
    box-shadow .25s var(--mi-ease);
}

html body .marca-card {
  transition:
    transform .28s var(--mi-ease),
    box-shadow .28s var(--mi-ease),
    border-color .28s var(--mi-ease),
    background-color .28s var(--mi-ease) !important;
}

html body .em-campaign {
  transition:
    transform .3s var(--mi-ease),
    box-shadow .3s var(--mi-ease),
    background-color .3s var(--mi-ease);
}

html body .em-career-card,
html body .em-first-purchase,
html body .beneficio-card,
html body .categoria-card {
  transition:
    transform .3s var(--mi-ease),
    box-shadow .3s var(--mi-ease);
}

/* ----------------------------------------------------------------------------
   6. HEADER STICKY Y BUSCADOR
   ---------------------------------------------------------------------------- */
html body .em-header {
  transition:
    box-shadow .3s var(--mi-ease),
    background-color .3s var(--mi-ease),
    backdrop-filter .3s var(--mi-ease);
}

html body .em-header.is-scrolled {
  background: rgba(255, 255, 255, .92) !important;
  background: color-mix(in srgb, var(--em-surface, #fff) 92%, transparent) !important;
  box-shadow: 0 18px 42px -24px rgba(16, 28, 54, .38) !important;
  backdrop-filter: blur(14px) saturate(1.12);
}

html body .em-header .em-header__main {
  transition: height .3s var(--mi-ease), min-height .3s var(--mi-ease);
}

html body .em-search input,
html body .em-search-mobile input,
html body .em-mobile-search__input {
  transition:
    border-color .22s var(--mi-ease),
    box-shadow .22s var(--mi-ease),
    background-color .22s var(--mi-ease),
    transform .22s var(--mi-ease) !important;
}

html body .em-search form.is-focused input,
html body .em-search-mobile form.is-focused input,
html body .em-mobile-search.is-focused .em-mobile-search__input {
  border-color: var(--mi-accent) !important;
  background: #fff !important;
  box-shadow:
    0 0 0 4px rgba(23, 105, 255, .14),
    0 16px 34px -22px rgba(0, 0, 0, .38) !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--mi-accent) 16%, transparent),
    0 16px 34px -22px rgba(0, 0, 0, .38) !important;
}

html body .em-catnav a {
  transition:
    transform .18s var(--mi-ease),
    background-color .18s var(--mi-ease),
    color .18s var(--mi-ease);
}

html body .em-header .em-icon-btn {
  transition:
    transform .2s var(--mi-ease),
    background-color .2s var(--mi-ease),
    border-color .2s var(--mi-ease),
    color .2s var(--mi-ease);
}

html body .em-header .em-icon-btn i {
  transition: transform .25s var(--mi-spring);
}

html body .em-search .em-search__icon {
  transition: color .2s var(--mi-ease), transform .28s var(--mi-spring);
}

html body .em-search form.is-focused .em-search__icon {
  color: var(--mi-accent);
  transform: translateY(-50%) scale(1.16);
}

html body .em-search__btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .4);
}

html body .em-search form.is-focused .em-search__btn,
html body .em-search-mobile form.is-focused button[type="submit"] {
  animation: miSearchPulse 1.8s ease-in-out infinite;
}

html body form.mi-submitting .em-search__btn,
html body form.mi-submitting .em-mobile-search__submit {
  pointer-events: none;
}

html body form.mi-invalid input {
  animation: miShake .42s var(--mi-ease);
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .16) !important;
}

html body .em-search input::placeholder,
html body .em-search-mobile input::placeholder,
html body .em-mobile-search__input::placeholder {
  transition: color .2s var(--mi-ease), opacity .2s var(--mi-ease);
}

html body .em-search form.is-focused input::placeholder,
html body .em-search-mobile form.is-focused input::placeholder,
html body .em-mobile-search.is-focused .em-mobile-search__input::placeholder {
  opacity: .72;
}

/* ----------------------------------------------------------------------------
   7. MENÚ MÓVIL: UNA COLUMNA, TAP TARGETS GRANDES
   ---------------------------------------------------------------------------- */
html body .mobile-menu {
  transition: transform .4s var(--mi-ease), box-shadow .4s var(--mi-ease);
  overscroll-behavior: contain;
}

html body .mobile-menu.active {
  box-shadow: -24px 0 70px rgba(0, 0, 0, .28);
}

html body .mobile-menu .em-mobile-brands {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

html body .mobile-menu .em-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--em-border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  color: var(--em-text, #111827);
  font-weight: 700;
  font-size: .86rem;
  text-decoration: none;
  transition:
    transform .22s var(--mi-ease),
    opacity .22s var(--mi-ease),
    filter .22s var(--mi-ease),
    background-color .22s var(--mi-ease),
    border-color .22s var(--mi-ease),
    color .22s var(--mi-ease);
}

html body .mobile-menu .em-mobile-brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mi-accent);
  box-shadow: 0 0 0 4px rgba(23, 105, 255, .12);
  flex: 0 0 auto;
}

html body .mobile-menu .em-mobile-brand i {
  margin-left: auto;
  color: var(--em-muted, #6b7280);
  font-size: .72rem;
  transition: transform .25s var(--mi-ease), color .2s var(--mi-ease);
}

html body .mobile-menu .em-mobile-brand.is-match {
  border-color: var(--mi-accent);
  background: var(--em-blue-light, #eaf2ff);
  color: var(--mi-accent);
  box-shadow: 0 0 0 3px rgba(23, 105, 255, .1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mi-accent) 14%, transparent);
}

html body .mobile-menu .em-mobile-brand.is-dim {
  opacity: .38;
  filter: saturate(.6);
  transform: scale(.99);
}

html body .em-mobile-search {
  position: relative;
}

html body .em-mobile-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--em-muted, #6b7280);
  font-size: .9rem;
  pointer-events: none;
  transition: color .2s var(--mi-ease), transform .28s var(--mi-spring);
}

html body .em-mobile-search.is-focused .em-mobile-search__icon {
  color: var(--mi-accent);
  transform: translateY(-50%) scale(1.14);
}

html body .em-mobile-search__input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 86px 0 40px;
  border: 1.5px solid var(--em-border, #e5e7eb);
  border-radius: 12px;
  background: var(--em-surface, #f7f9fc);
  color: var(--em-text, #111827);
  font-size: .86rem;
  font-weight: 500;
  outline: none;
}

html body .em-mobile-search__clear,
html body .em-mobile-search__submit {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition:
    transform .18s var(--mi-ease),
    background-color .18s var(--mi-ease),
    color .18s var(--mi-ease);
}

html body .em-mobile-search__clear {
  right: 48px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--em-surface-2, #eef2f8);
  color: var(--em-muted, #6b7280);
  font-size: .72rem;
}

html body .em-mobile-search__clear[hidden] {
  display: none;
}

html body .em-mobile-search__clear:hover {
  color: #ef4444;
  transform: translateY(-50%) scale(1.08);
}

html body .em-mobile-search__submit {
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--mi-accent);
  color: #fff;
  font-size: .86rem;
}

html body .em-mobile-search__submit:hover {
  transform: translateY(calc(-50% - 1px)) scale(1.04);
}

html body .em-mobile-search-form.is-focused .em-mobile-search__submit {
  animation: miSearchPulse 1.8s ease-in-out infinite;
}

html body .em-mobile-search__hint {
  margin: 7px 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  color: var(--em-muted, #6b7280);
  transition: color .2s var(--mi-ease);
}

html body .em-mobile-search-form.is-focused .em-mobile-search__hint {
  color: var(--mi-accent);
}

html body .em-mobile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 16px;
}

html body .em-mobile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--em-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: var(--em-text-soft, #475467);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .18s var(--mi-ease),
    border-color .18s var(--mi-ease),
    color .18s var(--mi-ease),
    background-color .18s var(--mi-ease);
}

html body .em-mobile-chip:hover {
  border-color: var(--mi-accent);
  background: var(--em-blue-light, #eaf2ff);
  color: var(--mi-accent);
  transform: translateY(-1px);
}

html body .em-mobile-chip:active {
  transform: scale(.96);
}

/* ----------------------------------------------------------------------------
   8. NAVEGACIÓN INFERIOR MÓVIL
   ---------------------------------------------------------------------------- */
html body .em-mobile-nav a,
html body .em-mobile-nav button {
  transition: color .2s var(--mi-ease), transform .18s var(--mi-ease);
}

html body .em-mobile-nav a:active,
html body .em-mobile-nav button:active {
  transform: scale(.94);
}

html body .em-mobile-nav .em-mobile-nav__search i {
  animation: miSearchHalo 3.4s ease-in-out infinite;
}

html body .em-mobile-nav a.is-current {
  color: var(--mi-accent-2) !important;
}

html body .em-mobile-nav a.is-current::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--mi-accent-2);
  transform: translateX(-50%);
}

/* ----------------------------------------------------------------------------
   9. FOOTER Y DETALLES DE CONVERSIÓN
   ---------------------------------------------------------------------------- */
html body .elite-footer__link {
  transition: color .2s var(--mi-ease), transform .2s var(--mi-ease);
}

html body .elite-footer__social-link {
  transition:
    transform .25s var(--mi-spring),
    box-shadow .25s var(--mi-ease),
    background-color .25s var(--mi-ease);
}

html body .elite-footer__contact-item {
  transition: transform .2s var(--mi-ease), background-color .2s var(--mi-ease);
}

html body .mobile-toolbar-badge {
  animation: miBadgePop .4s var(--mi-spring);
}

/* ----------------------------------------------------------------------------
   10. HOVER (solo dispositivos con puntero fino)
   ---------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  html body .em-product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--mi-shadow-lift) !important;
  }

  html body .em-product-card:hover .em-product-card__media img {
    transform: scale(1.075) rotate(-.4deg) !important;
  }

  html body .em-product-card:hover .em-product-card__title a {
    background-size: 100% 1px;
  }

  html body .em-product-card__cart:hover {
    transform: translateY(-3px) rotate(-7deg) scale(1.05) !important;
  }

  html body .em-product-card__buy:hover i {
    transform: translateX(3px) rotate(-8deg);
  }

  html body .em-product-card:hover .em-product-card__buy {
    box-shadow: 0 14px 28px -14px rgba(1, 50, 32, .55);
  }

  html body .em-product-card:hover .em-product-card__price {
    transform: translateY(-1px);
  }

  html body .em-product-card:hover .em-product-card__off {
    transform: scale(1.08);
  }

  html body .em-product-card:hover .em-product-card__ship {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5);
  }

  html body .em-category:hover {
    transform: translateY(-6px) !important;
  }

  html body .mobile-menu nav a:hover {
    transform: translateX(3px);
    background: var(--em-blue-light, #eaf2ff);
    color: var(--mi-accent);
  }

  html body .mobile-menu nav a:hover i.fa-chevron-right {
    transform: translateX(3px);
    color: var(--mi-accent);
  }

  html body .producto-card:hover,
  html body .product-card:hover,
  html body .product-card-contained:hover {
    transform: translateY(-7px) !important;
    box-shadow: var(--mi-shadow-lift) !important;
  }

  html body .producto-card:hover img,
  html body .product-card:hover img,
  html body .product-card-contained:hover img {
    transform: scale(1.06);
  }

  html body .em-category:hover .em-category__icon {
    transform: translateY(-2px) rotate(-6deg) scale(1.07);
    box-shadow: 0 12px 24px -14px rgba(16, 28, 54, .4);
  }

  html body .em-benefit:hover .em-benefit__icon i {
    transform: rotate(-8deg) scale(1.14);
  }

  html body .em-benefit:hover .em-benefit__icon {
    box-shadow: 0 12px 24px -14px rgba(16, 28, 54, .35);
  }

  html body .em-catnav a:hover {
    transform: translateY(-1px);
  }

  html body .em-header .em-icon-btn:hover {
    transform: translateY(-2px);
  }

  html body .em-header .em-icon-btn:hover i {
    transform: scale(1.1) rotate(-4deg);
  }

  html body .marca-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 32px -20px rgba(16, 28, 54, .4) !important;
  }

  html body .marca-card:hover i {
    transform: translateY(-2px) rotate(-7deg) scale(1.14);
  }

  html body .em-campaign:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .35);
  }

  html body .em-campaign:hover .em-campaign__icon i {
    transform: rotate(-8deg) scale(1.12);
  }

  html body .mobile-menu .em-mobile-brand:hover {
    transform: translateX(3px);
    background: var(--em-blue-light, #eaf2ff);
    border-color: var(--mi-accent);
    color: var(--mi-accent);
  }

  html body .mobile-menu .em-mobile-brand:hover i {
    transform: translateX(3px);
    color: var(--mi-accent);
  }

  html body .elite-footer__social-link:hover {
    transform: translateY(-3px) rotate(-3deg);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .35);
  }

  html body .elite-footer__link:hover {
    transform: translateX(3px);
  }

  html body .elite-footer__contact-item:hover {
    transform: translateX(3px);
  }
}

/* ----------------------------------------------------------------------------
   11. MOBILE
   ---------------------------------------------------------------------------- */
@media (max-width: 767px) {
  html body .em-header .em-header__main {
    transition: min-height .3s var(--mi-ease), height .3s var(--mi-ease);
  }

  html body .em-header.is-scrolled .em-header__main {
    height: 64px !important;
    min-height: 64px !important;
  }

  html body .em-search-mobile {
    transition: box-shadow .3s var(--mi-ease);
  }

  html body .em-header.is-scrolled .em-search-mobile {
    box-shadow: inset 0 1px 0 rgba(16, 28, 54, .06);
  }

  html body .mobile-menu {
    width: min(100vw, 420px);
    padding-bottom: env(safe-area-inset-bottom);
  }

  html body .em-section-head h2::after {
    margin-top: 12px;
  }

  html body .em-product-card:active,
  html body .em-category:active {
    transform: scale(.988);
  }
}

@media (max-width: 480px) {
  html body .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ----------------------------------------------------------------------------
   12. KEYFRAMES
   ---------------------------------------------------------------------------- */
@keyframes miSheen {
  0%   { transform: translateX(-165%) skewX(-18deg); }
  100% { transform: translateX(420%) skewX(-18deg); }
}

@keyframes miLineFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes miRipple {
  0%   { transform: scale(0); opacity: .28; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes miShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

@keyframes miBadgeShimmer {
  0%, 55%   { transform: translateX(-160%) skewX(-20deg); opacity: 0; }
  62%       { opacity: .9; }
  78%, 100% { transform: translateX(420%) skewX(-20deg); opacity: 0; }
}

@keyframes miLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  50%      { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

@keyframes miCartBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.28) rotate(-6deg); }
  65%  { transform: scale(.94) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes miCartWiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-9deg) scale(1.06); }
  55%      { transform: rotate(7deg) scale(1.04); }
  80%      { transform: rotate(-3deg) scale(1.02); }
}

@keyframes miSearchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 105, 255, .35); }
  50%      { box-shadow: 0 0 0 8px rgba(23, 105, 255, 0); }
}

@keyframes miSearchHalo {
  0%, 100% { box-shadow: 0 8px 18px rgba(23, 105, 255, .32), 0 0 0 0 rgba(23, 105, 255, .35); }
  50%      { box-shadow: 0 8px 18px rgba(23, 105, 255, .32), 0 0 0 10px rgba(23, 105, 255, 0); }
}

@keyframes miBadgePop {
  0%   { transform: scale(.4); }
  70%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes miSpin {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------------------
   13. ACCESIBILIDAD: MENOS MOVIMIENTO
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html body *,
  html body *::before,
  html body *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html.mi-ready [data-mi-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  html body .em-section-head h2::after {
    transform: scaleX(1);
    opacity: 1;
  }
}
