/* ============================================================
   ELECTRÓNICA MORELOS — TEMA NOVIEMBRE 2026
   Capa visual front-end. No modifica lógica PHP/MySQL.
   ============================================================ */

:root {
  /* Paleta oficial de campaña */
  --em-navy: #101C36;
  --em-navy-soft: #182A52;
  --em-blue: #1769FF;
  --em-blue-dark: #0F56D9;
  --em-blue-light: #EAF2FF;
  --em-charcoal: #171A21;
  --em-white: #FFFFFF;
  --em-surface: #F5F7FA;
  --em-surface-2: #EEF2F8;
  --em-orange: #FF6B35;
  --em-orange-dark: #E4551F;
  --em-red: #E53935;
  --em-green: #12B76A;

  /* Texto */
  --em-text: #1B2436;
  --em-text-soft: #475467;
  --em-muted: #667085;
  --em-border: #E4E9F2;

  /* Forma y sombra */
  --em-radius-sm: 10px;
  --em-radius: 16px;
  --em-radius-lg: 22px;
  --em-shadow-sm: 0 1px 2px rgba(16, 28, 54, .05);
  --em-shadow: 0 10px 30px rgba(16, 28, 54, .08);
  --em-shadow-lg: 0 24px 60px rgba(16, 28, 54, .14);
  --em-ring: 0 0 0 4px rgba(23, 105, 255, .14);

  /* Tipografía */
  --em-font: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --em-container: 1280px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--em-font) !important;
  color: var(--em-text) !important;
  background: var(--em-surface) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--em-font) !important;
  color: var(--em-navy);
  letter-spacing: -.025em;
}
body h1.text-white, body h2.text-white,
body h3.text-white, body h4.text-white { color: #fff !important; }

body p, body li, body span, body a, body button, body input, body select, body textarea {
  font-family: var(--em-font);
}

.em-container {
  width: 100%;
  max-width: var(--em-container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.em-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--em-blue);
}

.em-section-head { text-align: center; margin-bottom: 34px; }
.em-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin: 10px 0 10px;
}
.em-section-head p {
  color: var(--em-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: .98rem;
}

/* ---------- Barra de campaña ---------- */
.em-campaign-bar {
  background: linear-gradient(90deg, var(--em-navy) 0%, #14264A 55%, #0E1A31 100%);
  color: #fff;
  font-size: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.em-campaign-bar .em-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 38px;
  flex-wrap: wrap;
  text-align: center;
}
.em-campaign-bar strong { color: #FFD7C7; }
.em-campaign-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.em-campaign-bar a:hover { color: #FFD7C7; border-color: #FFD7C7; }

/* Utilidades de color heredadas (header/menú/modales) */
body .bg-primary { background-color: var(--em-blue) !important; }
body .text-primary { color: var(--em-blue) !important; }
body .border-primary { border-color: var(--em-blue) !important; }
body .bg-secondary { background-color: var(--em-blue-dark) !important; }
body .text-secondary { color: var(--em-blue-dark) !important; }
body .hover\:bg-primary:hover { background-color: var(--em-blue-dark) !important; }
body .group:hover .group-hover\:text-primary { color: var(--em-blue) !important; }
body .group:hover .group-hover\:bg-primary { background-color: var(--em-blue) !important; }

/* ---------- Header ---------- */
.em-utility-bar {
  background: linear-gradient(90deg, #0B1428 0%, var(--em-navy) 48%, #0B1428 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
}
.em-utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 42px;
}
.em-utility-bar__campaign {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.em-utility-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #BFD5FF;
  white-space: nowrap;
}
.em-utility-bar__badge i { color: var(--em-orange); }
.em-utility-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s;
}
.em-utility-bar__link:hover {
  color: #FFD7C7;
  background: rgba(255,107,53,.18);
  border-color: rgba(255,107,53,.38);
}
.em-utility-bar__benefits {
  display: flex;
  align-items: center;
  gap: 22px;
}
.em-utility-bar__benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  font-weight: 500;
  white-space: nowrap;
}
.em-utility-bar__benefits i { color: #8FB7FF; }
.em-utility-bar__contact {
  display: flex;
  align-items: center;
  gap: 16px;
}
.em-utility-bar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.em-utility-bar__contact a:first-child { color: #4ADE80; }
.em-utility-bar__contact a:hover { color: #FFD7C7; }

.em-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--em-border);
  box-shadow: 0 6px 24px rgba(16,28,54,.06) !important;
}

.em-header .em-header__main {
  min-height: 84px;
}

.em-header .em-brand h1,
.em-header .em-brand .em-store-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--em-navy) !important;
  letter-spacing: -.02em;
}
.em-header .em-brand:hover h1,
.em-header .em-brand:hover .em-store-name { color: var(--em-blue) !important; }

/* Buscador protagonista */
.em-search { flex: 1 1 640px; max-width: 820px; margin: 0 24px; }
.em-search form { width: 100%; }
.em-search input[type="text"],
.em-search input[type="search"] {
  width: 100%;
  height: 54px;
  padding: 0 152px 0 52px;
  border: 1.5px solid #E1E7F0;
  border-radius: 14px;
  background: #F7F9FC;
  color: var(--em-text);
  font-size: .92rem;
  font-weight: 500;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.em-search input::placeholder { color: #98A2B3; }
.em-search input:focus {
  border-color: var(--em-blue);
  box-shadow: var(--em-ring);
  background: #fff;
}
.em-search .em-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--em-muted);
  font-size: 1rem;
  pointer-events: none;
}
.em-search .em-search__btn {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--em-blue);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .2s;
}
.em-search .em-search__btn:hover { background: var(--em-blue-dark); transform: translateY(-1px); }
.em-search .em-search__hint {
  margin-top: 7px;
  font-size: .72rem;
  color: var(--em-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.em-search .em-search__hint a {
  color: var(--em-blue);
  text-decoration: none;
  font-weight: 600;
}

/* Acciones del header */
.em-header__actions { display: flex; align-items: center; gap: 8px; }

.em-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--em-border);
  background: #fff;
  color: var(--em-navy);
  cursor: pointer;
  transition: .2s;
  position: relative;
}
.em-icon-btn:hover {
  border-color: var(--em-blue);
  color: var(--em-blue);
  background: var(--em-blue-light);
}
.em-icon-btn i { color: inherit !important; }
.em-action-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--em-navy);
  white-space: nowrap;
}
.em-cart-btn,
.em-account-btn {
  width: auto;
  min-width: 44px;
  padding: 0 14px;
  gap: 9px;
}
.em-cart-btn .cart-badge {
  top: -5px;
  right: -5px;
}
.em-account-btn .em-action-label { margin-left: 2px; }
.cart-badge {
  background: var(--em-orange) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255,107,53,.35) !important;
}

/* Buscador móvil */
.em-search-mobile input {
  height: 46px;
  padding-right: 112px !important;
  border-radius: 12px !important;
  background: var(--em-surface) !important;
  font-size: .84rem !important;
}
.em-search-mobile input:focus {
  background: #fff !important;
  border-color: var(--em-blue) !important;
  box-shadow: var(--em-ring) !important;
}
.em-search-mobile button {
  background: var(--em-blue) !important;
  border-radius: 9px !important;
  font-weight: 800 !important;
}

.em-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #16A34A;
  color: #fff !important;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: .2s;
  white-space: nowrap;
}
.em-wa-btn:hover { background: #128C3E; transform: translateY(-1px); }
.em-wa-btn i { font-size: 1.05rem; }

/* Navegación de categorías */
.em-catnav {
  background: #fff;
  border-bottom: 1px solid var(--em-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.em-catnav::-webkit-scrollbar { display: none; }
.em-catnav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  white-space: nowrap;
}
.em-catnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--em-text-soft);
  text-decoration: none;
  transition: .18s;
}
.em-catnav a:hover { color: var(--em-blue); background: var(--em-blue-light); }
.em-catnav a.em-catnav__all {
  color: var(--em-navy);
  font-weight: 800;
  background: var(--em-surface);
  margin-right: 6px;
}
.em-catnav a.em-catnav__hot {
  margin-left: auto;
  color: var(--em-orange);
  background: #FFF4EF;
  border: 1px solid #FFD3C2;
  font-weight: 800;
}
.em-catnav a.em-catnav__hot:hover {
  background: var(--em-orange);
  color: #fff;
}

/* Cinta de beneficios bajo el header */
.em-trust-strip {
  background: var(--em-navy);
  color: #fff;
}
.em-trust-strip .em-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 40px;
  flex-wrap: wrap;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.em-trust-strip i { color: #8FB7FF; margin-right: 6px; }

/* ---------- HERO DE CAMPAÑA ---------- */
.em-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(23,105,255,.28), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, rgba(255,107,53,.16), transparent 60%),
    linear-gradient(160deg, #0B1428 0%, #101C36 50%, #0C1730 100%);
  color: #fff;
  padding: 56px 0 0;
}
.em-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 75%);
  pointer-events: none;
}
.em-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 44px;
  align-items: center;
  padding-bottom: 44px;
}
.em-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(23,105,255,.16);
  border: 1px solid rgba(143,183,255,.25);
  color: #BFD5FF;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.em-hero__title {
  font-size: clamp(2.15rem, 5vw, 3.9rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 18px 0 14px;
  color: #fff !important;
}
.em-hero__title span {
  background: linear-gradient(100deg, #FFB18E 0%, var(--em-orange) 55%, #FF7A45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.em-hero__subtitle {
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 24px;
}

.em-hero__search { max-width: 680px; margin-bottom: 10px; }
.em-hero__search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: box-shadow .2s, transform .2s;
}
.em-hero__search-box:focus-within {
  box-shadow: 0 20px 50px rgba(0,0,0,.34), 0 0 0 4px rgba(23,105,255,.28);
}
.em-hero__search-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-right: 1px solid #E4E9F2;
  color: #667085;
  flex-shrink: 0;
}
.em-hero__search-scope > i {
  font-size: .82rem;
  color: #98A2B3;
  padding: 0;
}
.em-hero__search-scope select {
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--em-font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--em-navy);
  cursor: pointer;
  max-width: 180px;
  padding-right: 2px;
  -webkit-appearance: none;
  appearance: none;
}
.em-hero__search-scope .fa-chevron-down {
  font-size: .6rem;
  color: #98A2B3;
}
.em-hero__search-inputwrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 14px;
}
.em-hero__search-inputwrap > i {
  color: #98A2B3;
  font-size: .95rem;
  padding: 0;
}
.em-hero__search-box input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  font-family: var(--em-font);
  font-size: .93rem;
  color: var(--em-text);
  background: transparent;
}
.em-hero__search-box input::placeholder { color: #98A2B3; }
.em-hero__search-box button {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--em-blue);
  color: #fff;
  font-weight: 800;
  font-size: .86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: .2s;
}
.em-hero__search-box button:hover {
  background: var(--em-blue-dark);
  transform: translateY(-1px);
}

.em-hero__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 24px;
  font-size: .74rem;
  color: rgba(255,255,255,.55);
}
.em-hero__hints a {
  color: #BFD5FF;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: 4px 9px;
  border-radius: 7px;
  text-decoration: none;
  transition: .2s;
}
.em-hero__hints a:hover { background: rgba(23,105,255,.25); color: #fff; }
.em-hero__hints a.em-hero__advanced {
  margin-left: auto;
  background: transparent;
  border-color: transparent;
  color: #BFD5FF;
  padding: 4px 0;
}
.em-hero__hints a.em-hero__advanced:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.em-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.em-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.em-btn:hover { transform: translateY(-2px); }
.em-btn--primary {
  background: var(--em-orange);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255,107,53,.32);
}
.em-btn--primary:hover { background: var(--em-orange-dark); }
.em-btn--ghost {
  background: rgba(255,255,255,.06);
  color: #fff !important;
  border-color: rgba(255,255,255,.22);
}
.em-btn--ghost:hover { background: rgba(255,255,255,.12); }
.em-btn--blue {
  background: var(--em-blue);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(23,105,255,.3);
}
.em-btn--blue:hover { background: var(--em-blue-dark); }

.em-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 500;
}
.em-hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.em-hero__trust i { color: #8FB7FF; }

/* Vitrina de productos del hero */
.em-hero__showcase { position: relative; }
.em-hero__offer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border-radius: var(--em-radius);
  background: linear-gradient(135deg, var(--em-orange), #FF8A5B);
  color: #fff;
  box-shadow: 0 16px 40px rgba(255,107,53,.28);
  margin-bottom: 14px;
}
.em-hero__offer-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.em-hero__offer strong { font-size: 1.35rem; line-height: 1.1; }
.em-hero__offer span:last-child { font-size: .78rem; opacity: .92; }

.em-hero__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.em-hero__product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  color: #fff;
  transition: .22s;
  backdrop-filter: blur(6px);
}
.em-hero__product:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(143,183,255,.4);
  transform: translateY(-3px);
}
.em-hero__product img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  padding: 6px;
}
.em-hero__product-name {
  font-size: .7rem;
  line-height: 1.3;
  color: rgba(255,255,255,.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
}
.em-hero__product-price { font-size: .82rem; font-weight: 800; color: #FFD7C7; }

/* Campañas dentro del hero */
.em-hero__campaigns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border-top: 1px solid rgba(255,255,255,.08);
}
.em-campaign {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 22px;
  background: rgba(11,20,40,.72);
  text-decoration: none;
  color: #fff;
  transition: background .2s;
}
.em-campaign:hover { background: rgba(23,105,255,.18); }
.em-campaign__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.em-campaign--orange .em-campaign__icon { background: rgba(255,107,53,.2); color: #FFB18E; }
.em-campaign--blue .em-campaign__icon { background: rgba(23,105,255,.22); color: #9CC0FF; }
.em-campaign--dark .em-campaign__icon { background: rgba(255,255,255,.1); color: #fff; }
.em-campaign__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.em-campaign__text strong { font-size: .88rem; }
.em-campaign__text span { font-size: .72rem; color: rgba(255,255,255,.62); }

/* ---------- BENEFICIOS ---------- */
.em-benefits {
  background: var(--em-white);
  padding: 54px 0 46px;
  border-bottom: 1px solid var(--em-border);
}
.em-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.em-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  background: #fff;
  transition: .2s;
}
.em-benefit:hover {
  border-color: #C9D8F5;
  box-shadow: var(--em-shadow);
  transform: translateY(-3px);
}
.em-benefit__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--em-blue-light);
  color: var(--em-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.em-benefit h3 { font-size: .9rem; margin: 1px 0 4px; }
.em-benefit p { font-size: .76rem; line-height: 1.45; color: var(--em-muted); margin: 0; }

.em-shipping-banner {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: var(--em-radius);
  background: linear-gradient(90deg, #FFF4EF, #FFE9DF);
  border: 1px solid #FFD3C2;
  color: #8A3A17;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  flex-wrap: wrap;
}
.em-shipping-banner i { color: var(--em-orange); font-size: 1.05rem; }
.em-shipping-banner strong { color: #C2410C; }

/* ---------- Secciones legacy: marcas / stats ---------- */
body .marcas-section { background: #fff !important; padding: 40px 0 !important; }
body .marcas-section .marcas-titulo {
  text-align: center;
  font-size: .72rem !important;
  letter-spacing: .16em;
  color: var(--em-muted) !important;
  font-weight: 800;
  margin-bottom: 20px;
}
body .marcas-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
}
body .marca-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 84px;
  border-radius: 14px !important;
  background: var(--em-surface) !important;
  border: 1px solid var(--em-border) !important;
  color: var(--em-navy) !important;
  font-weight: 800;
  font-size: .8rem;
  text-decoration: none;
  transition: .2s;
  box-shadow: none !important;
}
body .marca-card:hover {
  background: var(--em-blue-light) !important;
  border-color: #BFD5FF !important;
  transform: translateY(-2px);
}
body .marca-card i { font-size: 1.15rem; color: var(--em-blue); }

body .stats-section {
  background: var(--em-navy) !important;
  padding: 44px 0 !important;
  color: #fff;
}
body .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
}
body .stat-item { text-align: center; }
body .stat-numero {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -.03em;
}
body .stat-label {
  color: rgba(255,255,255,.6) !important;
  font-size: .76rem !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

/* ---------- CATEGORÍAS ---------- */
.em-categories {
  padding: 64px 0;
  background: var(--em-surface);
}
.em-categories__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.em-category {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  border-radius: var(--em-radius);
  background: #fff;
  border: 1px solid var(--em-border);
  text-decoration: none;
  color: var(--em-navy);
  transition: .22s;
  overflow: hidden;
}
.em-category::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--em-blue-light);
  opacity: .55;
  transition: .25s;
}
.em-category:hover {
  border-color: #C9D8F5;
  box-shadow: var(--em-shadow);
  transform: translateY(-4px);
}
.em-category:hover::after { transform: scale(1.35); opacity: .8; }
.em-category__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--em-blue-light);
  color: var(--em-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}
.em-category h3 {
  font-size: .95rem;
  margin: 0;
  position: relative;
  z-index: 1;
}
.em-category p {
  font-size: .74rem;
  color: var(--em-muted);
  margin: 0;
  position: relative;
  z-index: 1;
}
.em-category__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 800;
  color: var(--em-blue);
  position: relative;
  z-index: 1;
}

/* ---------- Tarjetas de producto (todas las variantes) ---------- */
body .producto-card,
body .product-card,
body .product-card-contained {
  border-radius: var(--em-radius) !important;
  border: 1px solid var(--em-border) !important;
  background: #fff !important;
  box-shadow: var(--em-shadow-sm) !important;
  transition: transform .25s, box-shadow .25s, border-color .25s !important;
  overflow: hidden;
}
body .producto-card:hover,
body .product-card:hover,
body .product-card-contained:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--em-shadow-lg) !important;
  border-color: #C9D8F5 !important;
}

body .producto-card > div:first-child,
body .product-card > div:first-child {
  height: 190px !important;
  background: var(--em-surface) !important;
}

body .producto-card .p-3,
body .product-card .p-3 { padding: 14px !important; }

body .producto-card h3,
body .product-card h3,
body .product-name {
  font-size: .85rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: var(--em-text) !important;
}

body .producto-card .bg-amber-100,
body .product-card .bg-amber-100 {
  background: var(--em-blue-light) !important;
}
body .producto-card .text-amber-600,
body .product-card .text-amber-600 {
  color: var(--em-blue) !important;
}
body .producto-card h3 a:hover,
body .product-card h3 a:hover { color: var(--em-blue) !important; }

body .producto-card .text-lg,
body .product-card .text-lg { font-size: 1.12rem !important; color: var(--em-navy) !important; }

body .badge-descuento {
  background: var(--em-red) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(229,57,53,.25) !important;
}
body .badge-envio-gratis {
  background: var(--em-green) !important;
  color: #fff !important;
  border-radius: 7px !important;
  font-size: .64rem !important;
  font-weight: 800 !important;
}
body .badge-faltante-envio {
  background: #FFF3EC !important;
  color: #C2410C !important;
  border: 1px solid #FFD3C2 !important;
  border-radius: 7px !important;
  font-size: .62rem !important;
}

body .btn-agregar,
body .btn-comprar-ahora,
body .btn-compra-rapida {
  background: var(--em-blue) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(23,105,255,.24) !important;
}
body .btn-agregar:hover,
body .btn-comprar-ahora:hover,
body .btn-compra-rapida:hover { background: var(--em-blue-dark) !important; }

body .btn-detalles {
  background: #fff !important;
  color: var(--em-blue) !important;
  border: 1.5px solid var(--em-blue) !important;
  border-radius: 10px !important;
}

/* CTAs de ficha, búsqueda y checkout */
body .btn-primary {
  background: var(--em-blue) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(23,105,255,.24) !important;
}
body .btn-primary:hover {
  background: var(--em-blue-dark) !important;
}
body .btn-secondary {
  background: #fff !important;
  color: var(--em-navy) !important;
  border: 1.5px solid var(--em-border) !important;
  border-radius: 10px !important;
}
body .btn-secondary:hover {
  border-color: var(--em-blue) !important;
  color: var(--em-blue) !important;
}
body .price-current { color: var(--em-navy) !important; }
body .price-original { color: var(--em-muted) !important; }
body .stock-in { color: var(--em-green) !important; }
body .stock-low { color: var(--em-orange) !important; }
body .stock-out { color: var(--em-red) !important; }

body .categoria-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid var(--em-border) !important;
  color: var(--em-text-soft) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: .18s;
}
body .categoria-tag:hover {
  background: var(--em-blue) !important;
  border-color: var(--em-blue) !important;
  color: #fff !important;
}

/* Heroes internos: contraste correcto sobre fondo oscuro */
body .hero-ofertas,
body .hero-categorias,
body .hero-contacto,
body .hero-nosotros {
  background: linear-gradient(150deg, var(--em-navy) 0%, #0D1B33 60%, #12264A 100%) !important;
}
body .hero-ofertas h1,
body .hero-categorias h1,
body .hero-contacto h1,
body .hero-nosotros h1,
body .hero-ofertas h2,
body .hero-categorias h2,
body .hero-contacto h2,
body .hero-nosotros h2 {
  color: #fff !important;
}

/* Sección de descubrimiento: fondo frío alineado a la paleta */
body section.bg-gradient-to-r.from-amber-50,
body section.from-amber-50.to-orange-50 {
  background: linear-gradient(160deg, #F7FAFF 0%, #EEF4FF 100%) !important;
}

/* Encabezados de secciones legacy */
body #todos-productos h1,
body #todos-productos h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  line-height: 1.12;
}
body #todos-productos > .container > div:first-child p { color: var(--em-muted) !important; }

/* ---------- Ajustes de páginas internas ---------- */
body .price-section {
  background: linear-gradient(135deg, #F7FAFF 0%, #EAF2FF 100%) !important;
  border-color: #D6E4FF !important;
}
body .sticky-btn-carrito,
body .sticky-btn {
  background: linear-gradient(135deg, var(--em-blue) 0%, var(--em-blue-dark) 100%) !important;
  box-shadow: 0 4px 14px rgba(23,105,255,.28) !important;
}
body #sticky-cta-bar {
  background: #fff !important;
  border-top: 1px solid var(--em-border) !important;
}
body .text-purple-600,
body .text-purple-700 { color: var(--em-blue) !important; }
body .text-purple-800 { color: var(--em-navy) !important; }
body .bg-purple-50 { background-color: var(--em-blue-light) !important; }
body .border-purple-200 { border-color: #C9D8F5 !important; }
body .hover\:border-purple-200:hover { border-color: #C9D8F5 !important; }
body .hover\:bg-purple-50\/50:hover { background-color: rgba(234,242,255,.6) !important; }
body .hover\:text-purple-600:hover,
body .hover\:text-purple-700:hover { color: var(--em-blue) !important; }
body .from-indigo-50 { --tw-gradient-from: #F7FAFF !important; }
body .to-purple-50 { --tw-gradient-to: #EAF2FF !important; }

/* En ficha y checkout la barra inferior propia tiene prioridad */
body .checkout-page {
  --color-primario: var(--em-blue) !important;
  --color-primario-hover: var(--em-blue-dark) !important;
  --color-primario-light: var(--em-blue-light) !important;
}
body .checkout-page .progress-line-active,
body .checkout-page .checkout-card-header {
  background: linear-gradient(90deg, var(--em-navy), var(--em-blue)) !important;
}
body .checkout-page .checkout-card-header.bg-green {
  background: linear-gradient(90deg, #0E9F6E, #12B76A) !important;
}
body .checkout-page .checkout-card-header.bg-purple {
  background: linear-gradient(90deg, var(--em-navy), var(--em-blue)) !important;
}

body.em-page-producto .em-mobile-nav,
body.em-page-checkout .em-mobile-nav { display: none !important; }
body.em-page-producto,
body.em-page-checkout { padding-bottom: 0 !important; }
body.em-page-checkout .em-campaign-bar,
body.em-page-checkout .em-catnav { display: none !important; }

/* ---------- Footer ---------- */
body .elite-footer {
  --color-primary: var(--em-blue) !important;
  --color-secondary: var(--em-blue-dark) !important;
  --color-accent: #8FB7FF !important;
  background: var(--em-navy) !important;
  color: #D6DEEA !important;
}
body .elite-footer__title,
body .elite-footer h3,
body .elite-footer h4 { color: #fff !important; }
body .elite-footer__link,
body .elite-footer__contact-item a { color: #B9C6D8 !important; }
body .elite-footer__link:hover,
body .elite-footer__contact-item a:hover { color: #fff !important; }
body .elite-footer__newsletter-input {
  border-radius: 10px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
}
body .elite-footer__newsletter-btn {
  background: var(--em-blue) !important;
  border-radius: 10px !important;
}

/* Layout y jerarquía del footer */
body .elite-footer__main { max-width: 1280px; padding: 56px 24px 48px; }
body .elite-footer__grid {
  grid-template-columns: 1.6fr .85fr .85fr 1.15fr 1.35fr;
  gap: 32px;
}
body .elite-footer__bar-inner {
  background: linear-gradient(90deg, var(--em-blue), var(--em-orange), var(--em-blue)) !important;
}
body .elite-footer__social-link { width: 42px; height: 42px; border-radius: 11px; }
body .elite-footer__link i { font-size: 12px; }
body .elite-footer__contact-icon i { color: #4ADE80; font-size: 16px; }
body .elite-footer__newsletter-input-wrap:focus-within {
  border-color: var(--em-blue) !important;
  box-shadow: 0 0 0 4px rgba(23,105,255,.16);
}
body .elite-footer__newsletter-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin: -10px 0 18px;
}
body .elite-footer__payments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body .elite-footer__payments-note {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
body .elite-footer__payment i { color: #C9D8F5; }
body .elite-footer__payment .fa-cc-visa { color: #9CC0FF !important; }
body .elite-footer__payment .fa-cc-mastercard { color: #FF7A7A !important; }
body .elite-footer__payment .fa-cc-amex { color: #6FB6FF !important; }
body .elite-footer__bottom-inner { max-width: 1280px; }
body .elite-footer__bank { padding: 0; overflow: hidden; }
body .elite-footer__bank-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  color: #D6DEEA;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
body .elite-footer__bank-summary::-webkit-details-marker { display: none; }
body .elite-footer__bank-summary::marker { content: ""; }
body .elite-footer__bank-summary-label { display: flex; align-items: center; gap: 10px; }
body .elite-footer__bank-summary-label svg { width: 18px; height: 18px; fill: var(--color-accent); }
body .elite-footer__bank-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  text-transform: none;
  letter-spacing: 0;
}
body .elite-footer__bank-toggle i { transition: transform .2s; }
body .elite-footer__bank-details[open] .elite-footer__bank-toggle i { transform: rotate(180deg); }
body .elite-footer__bank-body { padding: 0 20px 20px; }

/* CTA de soporte */
body .elite-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 30px;
  margin-bottom: 48px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(23,105,255,.22), rgba(255,107,53,.10));
  border: 1px solid rgba(143,183,255,.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
body .elite-footer__cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8FB7FF;
}
body .elite-footer__cta-copy h3 {
  color: #fff !important;
  font-size: 1.35rem;
  margin: 7px 0 6px;
}
body .elite-footer__cta-copy p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
  max-width: 600px;
}
body .elite-footer__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body .elite-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  font-weight: 800;
  font-size: .84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s;
}
body .elite-footer__cta-btn--wa { background: #16A34A; color: #fff !important; }
body .elite-footer__cta-btn--wa:hover { background: #128C3E; transform: translateY(-1px); }
body .elite-footer__cta-btn--ghost {
  background: rgba(255,255,255,.06);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.2);
}
body .elite-footer__cta-btn--ghost:hover { background: rgba(255,255,255,.12); }

@media (max-width: 1199px) {
  body .elite-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body .elite-footer__main { padding: 40px 16px; }
  body .elite-footer__cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    gap: 18px;
  }
  body .elite-footer__cta-actions { width: 100%; }
  body .elite-footer__cta-btn { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  body .elite-footer__grid { grid-template-columns: 1fr 1fr; }
  body .elite-footer__col--brand,
  body .elite-footer__col--contact,
  body .elite-footer__col--newsletter { grid-column: 1 / -1; }
}

/* ---------- Mi cuenta ---------- */
body .mi-account .gradient-bg {
  background: linear-gradient(135deg, var(--em-navy) 0%, var(--em-blue) 100%) !important;
}
body .mi-account .gradient-bg h1,
body .mi-account .gradient-bg h2,
body .mi-account .gradient-bg p,
body .mi-account .gradient-bg .text-primary-100 {
  color: #fff !important;
}
body .mi-account .text-primary-500,
body .mi-account .text-primary-600,
body .mi-account .text-primary-700 { color: var(--em-blue) !important; }
body .mi-account .bg-primary-500 { background-color: var(--em-blue) !important; }
body .mi-account .bg-primary-50 { background-color: var(--em-blue-light) !important; }
body .mi-account .border-primary-500 { border-color: var(--em-blue) !important; }
body .mi-account .ring-primary-200 { --tw-ring-color: rgba(23,105,255,.2) !important; }
body .mi-account .text-accent-600,
body .mi-account .text-accent-700 { color: var(--em-blue) !important; }
body .mi-account .bg-accent-50 { background-color: var(--em-blue-light) !important; }
body .mi-account .to-purple-50 { --tw-gradient-to: #EAF2FF !important; }
body .mi-hero-date {
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}
body .mi-account .glass-effect {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--em-border);
}
body .mi-account .card-hover:hover { box-shadow: var(--em-shadow-lg); }
body .mi-account h1,
body .mi-account h2,
body .mi-account h3 { color: var(--em-navy); }
body .mi-account .text-dark-800 { color: var(--em-text) !important; }
body .mi-account .text-dark-500,
body .mi-account .text-dark-400 { color: var(--em-muted) !important; }
body .timeline-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body .timeline-track { width: 100%; min-width: 0; }
body .timeline-track > div.flex-col { min-width: 0; flex: 0 1 88px; }
body .timeline-track .flex-col > span {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  font-size: 10px;
}
body .timeline-track > div.flex-1 { min-width: 8px; }
@media (max-width: 767px) {
  body .timeline-scroll { overflow: visible; }
  body .timeline-track {
    min-width: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body .timeline-track > div.flex-col {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  body .timeline-track > div.flex-col > span {
    margin-top: 0;
    text-align: left;
    font-size: .72rem;
    white-space: normal;
  }
  body .timeline-track > div.flex-1 { display: none; }
}

@media (min-width: 1024px) {
  body .account-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 2rem;
    align-items: start;
  }
  body .account-main { grid-column: 1; min-width: 0; }
  body .account-side { grid-column: 2; min-width: 0; }
}

/* ============================================================
   MI CUENTA — inspiración One UI 7
   Fondo claro, tarjetas blancas, radios amplios, aire y azul
   ============================================================ */
body.em-page-mi-cuenta { background: #F5F6F8 !important; }

body.em-page-mi-cuenta .mi-account {
  color: #111827;
  font-size: 15px;
  line-height: 1.6;
}
body.em-page-mi-cuenta .mi-account h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #111827;
}
body.em-page-mi-cuenta .mi-account h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #111827;
}
body.em-page-mi-cuenta .mi-account h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}
body.em-page-mi-cuenta .mi-account p,
body.em-page-mi-cuenta .mi-account li {
  font-size: .95rem;
  line-height: 1.65;
}

/* Tarjetas principales */
body.em-page-mi-cuenta .mi-account .glass-effect {
  background: #FFFFFF !important;
  border: 0 !important;
  border-radius: 24px !important;
  padding: 26px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06) !important;
  backdrop-filter: none !important;
}
body.em-page-mi-cuenta .mi-account .card-hover {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1) !important;
}
body.em-page-mi-cuenta .mi-account .card-hover:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.05), 0 16px 36px rgba(0,0,0,.08) !important;
}
body.em-page-mi-cuenta .mi-account .glass-effect > .border-t,
body.em-page-mi-cuenta .mi-account .glass-effect .border-b {
  border-color: #F1F3F5 !important;
}
body.em-page-mi-cuenta .mi-account .glass-effect > .border-t {
  border-top-color: transparent !important;
}
body.em-page-mi-cuenta .mi-account form .border-t {
  border-top-color: transparent !important;
}
body.em-page-mi-cuenta .mi-account .border.border-dark-100 {
  border: 0 !important;
  background: #F7F8FA !important;
  border-radius: 16px !important;
}

/* Hero */
body.em-page-mi-cuenta .mi-account .gradient-bg {
  background: linear-gradient(135deg, #0A84FF 0%, #5EA8FF 100%) !important;
}
body.em-page-mi-cuenta .mi-account .account-hero {
  border-radius: 26px !important;
  padding: 28px !important;
  box-shadow: 0 8px 24px rgba(10,132,255,.18), 0 18px 44px rgba(10,132,255,.16) !important;
}
body.em-page-mi-cuenta .mi-account .account-hero h1 {
  color: #fff !important;
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
}
body.em-page-mi-cuenta .mi-account .account-hero p {
  color: rgba(255,255,255,.86) !important;
  font-size: .98rem;
}
body.em-page-mi-cuenta .mi-account .mi-hero-date {
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  color: #fff;
}
body.em-page-mi-cuenta .mi-account .mi-hero-date p:first-child {
  color: rgba(255,255,255,.72) !important;
  font-size: .78rem;
}
body.em-page-mi-cuenta .mi-account .mi-hero-date p:last-child {
  color: #fff !important;
  font-size: .95rem;
}
body.em-page-mi-cuenta .mi-account .h-24.w-24.gradient-bg {
  border-radius: 50% !important;
}

/* Azul principal y textos */
body.em-page-mi-cuenta .mi-account .text-primary-500,
body.em-page-mi-cuenta .mi-account .text-primary-600,
body.em-page-mi-cuenta .mi-account .text-primary-700,
body.em-page-mi-cuenta .mi-account .text-primary-800,
body.em-page-mi-cuenta .mi-account .text-accent-600,
body.em-page-mi-cuenta .mi-account .text-accent-700,
body.em-page-mi-cuenta .mi-account .text-blue-500,
body.em-page-mi-cuenta .mi-account .text-blue-600 { color: #0A84FF !important; }
body.em-page-mi-cuenta .mi-account .bg-primary-500,
body.em-page-mi-cuenta .mi-account .bg-blue-500 { background-color: #0A84FF !important; }
body.em-page-mi-cuenta .mi-account .bg-primary-50,
body.em-page-mi-cuenta .mi-account .bg-accent-50 { background-color: #EAF2FF !important; }
body.em-page-mi-cuenta .mi-account .border-primary-500 { border-color: #0A84FF !important; }
body.em-page-mi-cuenta .mi-account .ring-primary-200 { --tw-ring-color: rgba(10,132,255,.2) !important; }
body.em-page-mi-cuenta .mi-account .to-purple-50 { --tw-gradient-to: #EAF2FF !important; }
body.em-page-mi-cuenta .mi-account .text-dark-800 { color: #111827 !important; }
body.em-page-mi-cuenta .mi-account .text-dark-500,
body.em-page-mi-cuenta .mi-account .text-dark-400 { color: #6B7280 !important; }

/* Superficies suaves */
body.em-page-mi-cuenta .mi-account .bg-gradient-to-r.from-blue-50,
body.em-page-mi-cuenta .mi-account .bg-gradient-to-r.from-green-50,
body.em-page-mi-cuenta .mi-account .bg-gradient-to-br.from-primary-50,
body.em-page-mi-cuenta .mi-account .bg-gradient-to-br.from-accent-50 {
  border: 0 !important;
  border-radius: 18px !important;
  background: #F5F9FF !important;
}
body.em-page-mi-cuenta .mi-account .bg-gradient-to-r.from-green-50 {
  background: #F3FBF6 !important;
}
body.em-page-mi-cuenta .mi-account .border.border-amber-200 {
  border: 0 !important;
  border-radius: 18px !important;
  background: #FFF9EC !important;
}
body.em-page-mi-cuenta .mi-account .timeline-scroll {
  border: 0 !important;
  border-radius: 18px !important;
  background: #F7F8FA !important;
  padding: 18px !important;
}

/* Botones */
body.em-page-mi-cuenta .mi-account button.gradient-bg,
body.em-page-mi-cuenta .mi-account a.gradient-bg,
body.em-page-mi-cuenta .mi-account button[type="submit"] {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #0A84FF !important;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: .95rem;
  padding: 0 22px !important;
  box-shadow: 0 8px 20px rgba(10,132,255,.24) !important;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1), background .25s !important;
}
body.em-page-mi-cuenta .mi-account button.gradient-bg:hover,
body.em-page-mi-cuenta .mi-account a.gradient-bg:hover,
body.em-page-mi-cuenta .mi-account button[type="submit"]:hover {
  background: #0077E6 !important;
  transform: translateY(-1px);
}
body.em-page-mi-cuenta .mi-account button.gradient-bg:active,
body.em-page-mi-cuenta .mi-account a.gradient-bg:active,
body.em-page-mi-cuenta .mi-account button[type="submit"]:active {
  transform: scale(.97) !important;
}
body.em-page-mi-cuenta .mi-account button.border-dark-300,
body.em-page-mi-cuenta .mi-account a.border-primary-500 {
  min-height: 52px !important;
  border-radius: 18px !important;
  border: 1px solid #E5E7EB !important;
  background: #FFFFFF !important;
  color: #0A84FF !important;
  font-weight: 600;
  padding: 0 22px !important;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s !important;
}
body.em-page-mi-cuenta .mi-account button.border-dark-300 { color: #374151 !important; }
body.em-page-mi-cuenta .mi-account button.border-dark-300:active,
body.em-page-mi-cuenta .mi-account a.border-primary-500:active {
  transform: scale(.97) !important;
}

/* Formularios */
body.em-page-mi-cuenta .mi-account input[type="text"],
body.em-page-mi-cuenta .mi-account input[type="email"],
body.em-page-mi-cuenta .mi-account input[type="tel"],
body.em-page-mi-cuenta .mi-account input[type="password"],
body.em-page-mi-cuenta .mi-account input[type="number"],
body.em-page-mi-cuenta .mi-account select {
  height: 54px !important;
  min-height: 54px;
  background: #F2F4F7 !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
  color: #111827 !important;
  font-size: .95rem;
  box-shadow: none !important;
  transition: background .25s, border-color .25s, box-shadow .25s !important;
}
body.em-page-mi-cuenta .mi-account textarea {
  min-height: 104px !important;
  background: #F2F4F7 !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  color: #111827 !important;
  font-size: .95rem;
  transition: background .25s, border-color .25s, box-shadow .25s !important;
}
body.em-page-mi-cuenta .mi-account input:focus,
body.em-page-mi-cuenta .mi-account select:focus,
body.em-page-mi-cuenta .mi-account textarea:focus {
  background: #FFFFFF !important;
  border-color: #0A84FF !important;
  box-shadow: 0 0 0 4px rgba(10,132,255,.12) !important;
  outline: none !important;
}
body.em-page-mi-cuenta .mi-account label {
  font-weight: 500;
  color: #6B7280;
  font-size: .85rem;
}

/* Aire */
body.em-page-mi-cuenta .mi-account .space-y-8 > * + * { margin-top: 24px !important; }
body.em-page-mi-cuenta .mi-account .gap-8 { gap: 24px !important; }
@media (min-width: 1024px) {
  body.em-page-mi-cuenta .account-grid { gap: 24px !important; }
}

@media (max-width: 767px) {
  body.em-page-mi-cuenta .mi-account form .flex.gap-3.pt-4 {
    flex-direction: column;
  }
  body.em-page-mi-cuenta .mi-account form .flex.gap-3.pt-4 > * {
    width: 100%;
  }
}

/* ---------- Navegación móvil inferior ---------- */
.em-mobile-nav { display: none; }

@media (max-width: 1279px) {
  .em-utility-bar__benefits span:nth-child(3) { display: none; }
  .em-utility-bar__contact span { display: none; }
  .em-catnav a.em-catnav__hot { display: none; }
}

@media (max-width: 1023px) {
  .em-header .em-search { max-width: 520px; margin: 0 12px; }
  .em-utility-bar__benefits { display: none; }
  .em-action-label { display: none; }
  .em-cart-btn,
  .em-account-btn { width: 44px; min-width: 44px; padding: 0; }
  .em-header .em-brand .em-store-name { font-size: 1rem; }
  .em-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .em-hero__showcase { max-width: 560px; }
  .em-categories__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .em-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  body .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 26px !important; }
  body .marcas-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .em-hero__campaigns { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .em-container { padding-left: 16px; padding-right: 16px; }
  .em-utility-bar__inner { min-height: 38px; gap: 10px; }
  .em-utility-bar__badge { font-size: .64rem; letter-spacing: .05em; }
  .em-utility-bar__link { display: none; }
  .em-utility-bar__contact a:last-child { display: none; }
  .em-catnav { display: none !important; }
  .sticky-promo-bar { display: none !important; }
  .em-header .em-header__main { min-height: 68px; }
  .em-hero { padding-top: 38px; }
  .em-hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .em-hero__subtitle { font-size: .92rem; }
  .em-hero__actions { flex-direction: column; }
  .em-btn { width: 100%; }
  .em-hero__trust { gap: 10px 16px; font-size: .72rem; }
  .em-hero__products { grid-template-columns: 1fr 1fr; }
  .em-hero__product img { height: 78px; }
  .em-hero__search-scope { display: none !important; }
  .em-hero__search-box button { padding: 0 15px; }
  .em-hero__search-box button span { display: none; }
  .em-categories { padding: 44px 0; }
  .em-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .em-category { padding: 16px 14px; }
  .em-category__icon { width: 40px; height: 40px; font-size: 1rem; }
  .em-category h3 { font-size: .85rem; }
  .em-benefits { padding: 36px 0; }
  .em-benefits__grid { grid-template-columns: 1fr; gap: 10px; }
  .em-benefit { padding: 14px; }
  body .marcas-grid { grid-template-columns: repeat(2, 1fr) !important; }
  body .stats-section { padding: 34px 0 !important; }
  body .producto-card > div:first-child,
  body .product-card > div:first-child { height: 180px !important; }

  /* Barra inferior móvil */
  .em-mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9995;
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--em-border);
    box-shadow: 0 -8px 24px rgba(16,28,54,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .em-mobile-nav a,
  .em-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--em-muted);
    font-size: .62rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
  }
  .em-mobile-nav i { font-size: 1.05rem; }
  .em-mobile-nav a:hover,
  .em-mobile-nav button:hover { color: var(--em-blue); }
  .em-mobile-nav .em-mobile-nav__search { color: var(--em-blue); }
  .em-mobile-nav .em-mobile-nav__search i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--em-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -16px;
    box-shadow: 0 8px 18px rgba(23,105,255,.32);
  }
  body { padding-bottom: 62px; }
}

@media (max-width: 639px) {
  .em-header .em-wa-btn { display: none !important; }
}

@media (max-width: 400px) {
  .em-hero__products { grid-template-columns: 1fr; }
  .em-categories__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Accesibilidad ---------- */
.em-btn:focus-visible,
.em-category:focus-visible,
.em-search input:focus-visible,
.em-hero__search-box input:focus-visible,
.em-mobile-nav a:focus-visible,
.em-mobile-nav button:focus-visible {
  outline: 3px solid rgba(23,105,255,.45);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .em-btn, .em-category, .em-benefit, body .producto-card, body .product-card, .em-hero__product {
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Performance: el footer no se renderiza hasta que el usuario se acerca. */
.elite-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}
