/* ============================================================
   LIDER REPUESTOS â€” Custom Styles
   Tema Morelia / TiendaNube
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* â”€â”€ Tokens de marca â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --lr-primary:        #CC0000;
  --lr-primary-dark:   #A30000;
  --lr-primary-light:  #FF1A1A;
  --lr-navy:           #1A1A1A;  /* carbÃ³n â€” sin azul */
  --lr-navy-mid:       #2C2C2C;
  --lr-navy-light:     #3D3D3D;
  --lr-bg:             #F2F4F7;
  --lr-surface:        #FFFFFF;
  --lr-border:         #E2E6EA;
  --lr-text:           #1A202C;
  --lr-text-secondary: #4A5568;
  --lr-text-muted:     #718096;
  --lr-white:          #FFFFFF;
  --lr-font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Alturas */
  --lr-topbar-h:  38px;
  --lr-header-h:  72px;
}

/* â”€â”€ TipografÃ­a global â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body,
.head-main,
.nav-item,
.btn,
input,
select {
  font-family: var(--lr-font) !important;
}

/* ============================================================
   TOP BAR (header-advertising)
   Clases reales del tema Morelia: .js-adbar / .section-adbar
   ============================================================ */
.js-adbar,
.section-adbar {
  /* reset doble â€” rompe cachÃ© CDN (ver sesion-2026-05-27.md) */
  background-color: transparent !important;
  background-image: none !important;
  /* dark premium sin textura â€” igual al buscador */
  background: #111111 !important;
  border-bottom: 2px solid #CC0000 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
}

.lr-topbar__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lr-topbar__left,
.lr-topbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lr-topbar__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.lr-topbar__item:hover {
  color: var(--lr-white);
}

.lr-topbar__item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: var(--lr-primary);
}

.lr-topbar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
}

.lr-topbar__badge {
  background: var(--lr-primary);
  color: var(--lr-white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Mobile: ocultar items secundarios */
@media (max-width: 767px) {
  .lr-topbar__left { display: none; }
  .lr-topbar__inner { justify-content: center; }
}

/* ============================================================
   HEADER PRINCIPAL â€” blanco (estilos nativos del tema)
   No se toca el fondo del header: usa el blanco de Morelia.
   ============================================================ */

/* ============================================================
   NAVEGACIÃ“N â€” gestionada por style-async.scss
   (barra roja #CC0000 + links blancos ya definidos ahÃ­)
   ============================================================ */

/* Mega menÃº / dropdown */
.nav-dropdown-content,
.desktop-dropdown {
  background: var(--lr-surface) !important;
  border-top: 3px solid var(--lr-primary) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  border-radius: 0 0 8px 8px !important;
}

.nav-dropdown-content a {
  color: var(--lr-text) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

.nav-dropdown-content a:hover {
  color: var(--lr-primary) !important;
  background: var(--lr-bg) !important;
}

/* ============================================================
   BUSCADOR
   ============================================================ */
.search-container,
.search-input-group,
[class*="search-form"] input {
  border-radius: 8px !important;
  font-family: var(--lr-font) !important;
}

[class*="search-form"] input:focus {
  border-color: var(--lr-primary) !important;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.15) !important;
}

[class*="search-form"] button[type="submit"],
.search-btn-submit {
  background: var(--lr-primary) !important;
  border-color: var(--lr-primary) !important;
  color: var(--lr-white) !important;
  border-radius: 0 8px 8px 0 !important;
}

[class*="search-form"] button[type="submit"]:hover {
  background: var(--lr-primary-dark) !important;
}

/* ============================================================
   MENÃš HAMBURGUESA (mobile)
   ============================================================ */
.nav-hamburger .modal-overlay,
.modal-drawer {
  background: var(--lr-navy) !important;
}

.nav-hamburger .nav-item a {
  color: var(--lr-white) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn-primary,
[class*="btn-add"],
.js-add-to-cart {
  background: var(--lr-primary) !important;
  border-color: var(--lr-primary) !important;
  color: var(--lr-white) !important;
  font-family: var(--lr-font) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}

.btn-primary:hover,
[class*="btn-add"]:hover {
  background: var(--lr-primary-dark) !important;
  border-color: var(--lr-primary-dark) !important;
  transform: translateY(-1px) !important;
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-button,
[class*="whatsapp"] a {
  background: #25D366 !important;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4) !important;
  border-radius: 50% !important;
}

/* ============================================================
   FONDO GENERAL
   ============================================================ */
body {
  background-color: var(--lr-bg) !important;
}

/* ============================================================
   KITS CAROUSEL â€” Lider Repuestos
   ============================================================ */

.lr-kits-section {
  background: #FFFFFF !important;
  border-bottom: 1px solid #EAEDF0 !important;
  overflow: hidden !important;
  display: block !important;
}

.lr-kits-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 28px 24px 32px !important;
  display: block !important;
}

/* â”€â”€ Header en fila â”€â”€ */
.lr-kits-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}

.lr-kits-header-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.lr-kits-tag {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #CC0000 !important;
  display: block !important;
}

.lr-kits-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
}

.lr-kits-ver-todos {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #CC0000 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: color 0.2s ease !important;
}

.lr-kits-ver-todos:hover { color: #A30000 !important; }

/* â”€â”€ Track: scroll horizontal forzado â”€â”€ */
.lr-kits-track-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.lr-kits-track-wrap::-webkit-scrollbar { display: none !important; }

.lr-kits-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  padding-bottom: 8px !important;
  align-items: flex-start !important;
  width: max-content !important;
}

/* â”€â”€ Card tipo Ã­cono â”€â”€ */
.lr-kit-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 120px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  transition: transform 0.2s ease !important;
  cursor: pointer !important;
}

.lr-kit-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: none !important;
}

/* â”€â”€ Imagen Ã­cono â”€â”€ */
.lr-kit-img-wrap {
  width: 100px !important;
  height: 100px !important;
  background: #F4F5F7 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #E8EAED !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  flex-shrink: 0 !important;
}

.lr-kit-card:hover .lr-kit-img-wrap {
  border-color: #CC0000 !important;
  box-shadow: 0 4px 16px rgba(204,0,0,0.12) !important;
}

.lr-kit-img-wrap img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  display: block !important;
  /* Elimina el fondo blanco de los PNGs */
  mix-blend-mode: multiply !important;
}

/* â”€â”€ Info debajo del Ã­cono â”€â”€ */
.lr-kit-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 1px !important;
  padding: 8px 4px 0 !important;
  width: 100% !important;
}

.lr-kit-badge {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #CC0000 !important;
  line-height: 1 !important;
  display: block !important;
}

.lr-kit-name {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #1A1A1A !important;
  line-height: 1.25 !important;
  display: block !important;
  transition: color 0.2s ease !important;
}

.lr-kit-card:hover .lr-kit-name { color: #CC0000 !important; }

/* â”€â”€ Mobile â”€â”€ */
@media (max-width: 600px) {
  .lr-kits-inner { padding: 20px 16px 24px !important; }
  .lr-kit-card { width: 100px !important; }
  .lr-kit-img-wrap { width: 84px !important; height: 84px !important; }
  .lr-kit-img-wrap img { width: 68px !important; height: 68px !important; }
  .lr-kits-title { font-size: 1rem !important; }
}

/* ============================================================
   BUSCADOR POR VEHÃCULO â€” Dark Premium (override del SCSS)
   Sin texturas. Profundidad por sombras y bordes.
   ============================================================ */

/* â”€â”€ SecciÃ³n contenedora â”€â”€ */
.lider-buscador {
  background-color: #111111 !important;
  background-image: none !important;
  border-top: 3px solid #CC0000 !important;
  border-bottom: none !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.04) inset !important;
  position: relative !important;
}

/* â”€â”€ Inner wrapper â”€â”€ */
.lider-buscador-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 28px 24px 32px !important;
}

/* â”€â”€ TÃ­tulo â”€â”€ */
.lider-buscador-titulo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.45) !important;
  margin-bottom: 20px !important;
}

.lider-buscador-titulo svg {
  /* currentColor en el SVG resuelve desde 'color', no desde 'stroke' */
  color: #CC0000 !important;
  stroke: #CC0000 !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

/* â”€â”€ Fila de filtros â”€â”€ */
.lider-buscador-filtros {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
}

/* â”€â”€ Columna de cada filtro â”€â”€ */
.lider-filtro-col {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.lider-filtro-col--btn {
  flex: 0 0 auto !important;
  min-width: 120px !important;
}

/* â”€â”€ Label â”€â”€ */
.lider-filtro-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
  display: block !important;
}

/* â”€â”€ BotÃ³n del select (trigger) â”€â”€ */
.lider-select-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 14px !important;
  height: 44px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.lider-select-btn:hover:not([disabled]) {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.22) !important;
}

.lider-select-btn[disabled] {
  opacity: 0.32 !important;
  cursor: not-allowed !important;
}

/* Estado elegido â€” highlight sutil */
.lider-select--chosen .lider-select-btn {
  border-color: rgba(204,0,0,0.55) !important;
  background: rgba(204,0,0,0.08) !important;
  color: #FFFFFF !important;
}

.lider-select-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
  text-align: left !important;
}

.lider-select-arrow {
  flex-shrink: 0 !important;
  stroke: rgba(255,255,255,0.4) !important;
  transition: transform 0.2s ease !important;
}

.lider-select-btn[aria-expanded="true"] .lider-select-arrow {
  transform: rotate(180deg) !important;
}

/* â”€â”€ Panel desplegable â”€â”€ */
/* CRÃTICO: [hidden] debe anular display:flex â€” si no, los paneles arrancan abiertos */
.lider-select-panel[hidden] {
  display: none !important;
}

.lider-select-panel {
  position: absolute !important;
  z-index: 9999 !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  min-width: 100% !important;
  max-height: 240px !important;
  background: #1C1C1C !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.lider-select {
  position: relative !important;
}

.lider-select-search {
  width: 100% !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.05) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.82rem !important;
  padding: 10px 14px !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.lider-select-search::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

.lider-select-opts {
  overflow-y: auto !important;
  flex: 1 !important;
  max-height: 200px !important;
}

.lider-opt {
  padding: 10px 14px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.84rem !important;
  color: rgba(255,255,255,0.8) !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.lider-opt:hover {
  background: rgba(204,0,0,0.15) !important;
  color: #ffffff !important;
}

/* â”€â”€ BotÃ³n BUSCAR â”€â”€ */
.lider-buscar-btn {
  width: 100% !important;
  height: 44px !important;
  background: #CC0000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 0 0 0 rgba(204,0,0,0) !important;
}

.lider-buscar-btn:hover:not([disabled]) {
  background: #A30000 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 18px rgba(204,0,0,0.45) !important;
}

.lider-buscar-btn[disabled] {
  background: rgba(204,0,0,0.3) !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* â”€â”€ Responsive â€” tablet â”€â”€ */
@media (max-width: 900px) {
  .lider-buscador-filtros {
    flex-wrap: wrap !important;
  }
  .lider-filtro-col {
    flex: 1 1 calc(50% - 10px) !important;
  }
  .lider-filtro-col--btn {
    flex: 1 1 100% !important;
  }
}


/* ============================================================
   SUPRIMIR FLASHES de TN (popups, placeholders, transiciones)
   Todo lo que TN muestra brevemente al agregar al carrito
   y que causa "pestañeos" visuales en el listado.
   ============================================================ */

/* Popup "Agregaste al carrito" */
.notification-cart {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.js-alert-added-to-cart {
  display: none !important;
}
.notification-cart-container {
  display: none !important;
  visibility: hidden !important;
}

/* Placeholder "Agregando..." con spinner que TN muestra al hacer click */
.lr-cart-wrap .js-addtocart-placeholder,
.lr-card .js-addtocart-placeholder,
.lr-card-actions .js-addtocart-placeholder {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Formulario oculto: asegurar que NADA dentro sea visible */
.lr-cart-form,
.lr-cart-wrap form.js-product-form {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Transiciones de botón de TN (btn-transition containers) dentro de cards */
.lr-card .btn-transition,
.lr-card .transition-container,
.lr-card .js-addtocart-adding,
.lr-card .js-addtocart-success,
.lr-card .js-addtocart-text {
  display: none !important;
}

/* Ocultar variantes hidden que pueden flashear */
.lr-card .js-item-variants {
  display: none !important;
  visibility: hidden !important;
}

/* ============================================================
   HOME PAGE — UI Premium (Secciones TN)
   Scoped a .template-home para no afectar otras páginas
   ============================================================ */

/* ── 1. Fondo del body por template ──────────────────────── */
body.template-home {
  background-color: #FFFFFF !important;
}
body.template-category,
body.template-search {
  background-color: #F1F3F4 !important;
}

/* ── 2. Contenedor de secciones TN ───────────────────────── */
.template-home .js-home-sections-container {
  max-width: 100%;
  overflow: hidden;
}

/* ── 3. Banners Promocionales ────────────────────────────── */
.template-home .section-banners-home[data-store="home-banner-promotional"] {
  padding: 0 0 8px 0 !important;
  background: #FFFFFF !important;
}
.template-home .section-banners-home[data-store="home-banner-promotional"] .container {
  max-width: 1280px !important;
  padding: 0 24px !important;
}

/* Imágenes dentro de banners promo */
.template-home [data-store="home-banner-promotional"] .textbanner,
.template-home [data-store="home-banner-promotional"] .textbanner-image {
  border-radius: 14px !important;
  overflow: hidden !important;
}
.template-home [data-store="home-banner-promotional"] .textbanner {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.template-home [data-store="home-banner-promotional"] .textbanner:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.template-home [data-store="home-banner-promotional"] img {
  border-radius: 14px !important;
  transition: transform 0.4s ease !important;
}
.template-home [data-store="home-banner-promotional"] .textbanner:hover img {
  transform: scale(1.03) !important;
}

/* ── 4. Marcas — Franja de confianza ─────────────────────── */
.template-home .section-brands-home {
  background: #FAFAFA !important;
  border-top: 1px solid #EAEDF0 !important;
  border-bottom: 1px solid #EAEDF0 !important;
  padding: 36px 0 32px !important;
  margin: 16px 0 0 0 !important;
}
.template-home .section-brands-home .container {
  max-width: 1280px !important;
}

/* Título de marcas */
.template-home .section-brands-home h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1A1A1A !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 24px !important;
}

/* Logos: siempre en color, tamaño grande */
.template-home .section-brands-home .brand-image,
.template-home .brand-image {
  max-height: 90px !important;
  min-height: 50px !important;
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  filter: none !important;
  transition: transform 0.3s ease !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
.template-home .brand-image:hover {
  opacity: 0.8 !important;
  transform: scale(1.08) !important;
}

/* Swiper nav arrows — estilo consistente */
.template-home .section-brands-home .swiper-button-prev,
.template-home .section-brands-home .swiper-button-next {
  color: #1A1A1A !important;
  opacity: 0.5 !important;
  transition: opacity 0.2s ease !important;
}
.template-home .section-brands-home .swiper-button-prev:hover,
.template-home .section-brands-home .swiper-button-next:hover {
  opacity: 1 !important;
}

/* ── 5. Informative Banners (Trust Badges) ───────────────── */
.template-home .section-informative-banners {
  background: #FFFFFF !important;
  border-top: 1px solid #EAEDF0 !important;
  padding: 32px 0 !important;
}
.template-home .section-informative-banners .container {
  max-width: 1280px !important;
}

/* Icono SVG — acento rojo */
.template-home .section-informative-banners .svg-icon-text {
  color: #CC0000 !important;
  fill: #CC0000 !important;
}

/* Imagen de servicio */
.template-home .section-informative-banners .service-item-image {
  max-height: 48px !important;
}

/* Título de cada badge */
.template-home .section-informative-banners h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #1A1A1A !important;
  margin-bottom: 4px !important;
}

/* Descripción */
.template-home .section-informative-banners p {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.78rem !important;
  color: #4A5568 !important;
  line-height: 1.4 !important;
}

/* ── 6. Newsletter — Sección Premium ─────────────────────── */
.template-home .section-newsletter-home {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%) !important;
  color: #FFFFFF !important;
  padding: 0 !important;
}
.template-home .js-newsletter-home-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
}
.template-home .js-newsletter-home-container .js-newsletter-home {
  background: transparent !important;
  border: none !important;
}
.template-home .js-newsletter-home-container .newsletter {
  padding: 48px 24px !important;
}

/* Título newsletter */
.template-home .js-home-newsletter-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}

/* Texto newsletter */
.template-home .js-home-newsletter-text {
  color: rgba(255,255,255,0.75) !important;
  font-family: 'Inter', sans-serif !important;
}

/* Input email */
.template-home .section-newsletter-home .form-control {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
}
.template-home .section-newsletter-home .form-control::placeholder {
  color: rgba(255,255,255,0.5) !important;
}
.template-home .section-newsletter-home .form-control:focus {
  border-color: #CC0000 !important;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.2) !important;
}

/* Botón enviar */
.template-home .section-newsletter-home .newsletter-btn {
  color: #CC0000 !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  transition: color 0.2s ease !important;
}
.template-home .section-newsletter-home .newsletter-btn:hover {
  color: #FF1A1A !important;
}

/* ── 7. Transición al footer ─────────────────────────────── */
.template-home footer.js-footer {
  margin-top: 0 !important;
  border-top: none !important;
}

/* ── 8. Responsive (mobile) ──────────────────────────────── */
@media (max-width: 768px) {
  .template-home .section-brands-home {
    padding: 24px 0 20px !important;
  }
  .template-home .section-brands-home .brand-image,
  .template-home .brand-image {
    max-height: 65px !important;
    max-width: 120px !important;
  }
  .template-home .section-informative-banners {
    padding: 24px 0 !important;
  }
  .template-home .js-newsletter-home-container .newsletter {
    padding: 32px 16px !important;
  }
  .template-home .js-home-newsletter-title {
    font-size: 1.1rem !important;
  }
  .template-home [data-store="home-banner-promotional"] .container {
    padding: 0 16px !important;
  }
}

/* ============================================================
   RESTYLING FINAL — Alta Performance
   ============================================================ */

/* ── 9. Footer profesional — compacto, grafito ───────────── */

/* Base: dark grafito, igual al buscador */
footer.js-footer {
  padding: 10px 0 8px !important;
  font-size: 12px !important;
  background: #111111 !important;
  background-image: none !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: none !important;
}
footer.js-footer .container {
  max-width: 1100px !important;
}

/* Ocultar newsletter DUPLICADO del footer (ya hay uno en la home) */
footer.js-footer .newsletter,
footer.js-footer form[data-store="newsletter-form"] {
  display: none !important;
}

/* Redes sociales: compactas, en línea */
footer.js-footer .social-icon {
  margin: 0 6px !important;
  font-size: 14px !important;
}
footer.js-footer .social-icon svg {
  width: 18px !important;
  height: 18px !important;
}

/* Menú de navegación: horizontal, compacto */
footer.js-footer .footer-menu-item {
  display: inline-block !important;
  margin: 0 12px 6px !important;
}
footer.js-footer .footer-menu-link {
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
}
footer.js-footer .footer-menu-link:hover {
  opacity: 1 !important;
}

/* Contacto: horizontal en una línea */
footer.js-footer .list.font-small {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 4px 16px !important;
}
footer.js-footer .list.font-small li {
  display: inline !important;
  margin: 0 !important;
  font-size: 12px !important;
  opacity: 0.7 !important;
}
footer.js-footer .list.font-small li a {
  font-size: 12px !important;
}

/* Reducir todos los márgenes verticales */
footer.js-footer .mb-4 {
  margin-bottom: 12px !important;
}
footer.js-footer .mb-3 {
  margin-bottom: 8px !important;
}
footer.js-footer .my-2 {
  margin-top: 6px !important;
  margin-bottom: 2px !important;
}
footer.js-footer .pb-2 {
  padding-bottom: 4px !important;
}

/* Copyright y legal: una sola línea, pequeño */
footer.js-footer .font-smallest {
  font-size: 10px !important;
  opacity: 0.5 !important;
}
footer.js-footer .claim-link {
  font-size: 10px !important;
  opacity: 0.5 !important;
}
footer.js-footer .claim-link a {
  font-size: 10px !important;
}

/* Pagos/envíos logos: compactos */
footer.js-footer .footer-payments-shipping-logos {
  margin-bottom: 8px !important;
}
footer.js-footer .footer-payments-shipping-logos img {
  max-height: 16px !important;
  margin: 2px !important;
  opacity: 0.7 !important;
}

/* Separador visual arriba del copyright */
footer.js-footer .d-inline-block.mr-md-2.font-smallest {
  padding-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

/* ── 10. Ocultar "Creado con Tiendanube" ─────────────────── */
footer.js-footer .powered-by-text,
footer.js-footer .powered-by-logo,
footer.js-footer .powered-by-logo a,
footer.js-footer .powered-by-logo svg,
footer.js-footer .powered-by-logo svg path,
footer.js-footer [data-component="powered-by"],
footer.js-footer [data-component="powered-by"] a,
footer.js-footer [data-component="powered-by"] svg,
footer.js-footer [data-component="powered-by"] svg path {
  color: #111111 !important;
  fill: #111111 !important;
  opacity: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── 11. Profundidad y sombras — romper lo plano ─────────── */

/* Hero buscador — sombra sutil */
.template-home [data-store="home-buscador"] {
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
}

/* Kits carousel — elevación de cards */
.template-home .lr-kit-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}
.template-home .lr-kit-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10) !important;
  transform: translateY(-2px) !important;
}

/* Banners promocionales — profundidad extra */
.template-home [data-store="home-banner-promotional"] .textbanner {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* Trust badges — fondo sutil para diferenciar */
.template-home .section-informative-banners {
  background: #FAFBFC !important;
}
.template-home .section-informative-banners .text-center {
  padding: 8px 12px !important;
}

/* Separadores de sección sutiles */
.template-home [data-store="home-buscador"] {
  border-bottom: 1px solid #F0F0F0 !important;
}
.template-home [data-store="home-kits-carousel"] {
  border-bottom: 1px solid #F0F0F0 !important;
  padding-bottom: 24px !important;
}

/* ── 12. Newsletter — estilos embebidos en home-newsletter.tpl ── */
/* (CSS movido al template para máxima prioridad sobre TN) */

/* ── 13. Sección de marcas — profundidad ─────────────────── */
.template-home .section-brands-home {
  background: #F7F8FA !important;
  box-shadow: inset 0 1px 0 #E8EAED, inset 0 -1px 0 #E8EAED !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* ── 14. Footer desde newsletter — flujo continuo ────────── */
.template-home .section-newsletter-home + footer.js-footer,
.template-home footer.js-footer {
  margin-top: 0 !important;
  border-top: none !important;
}

/* ── 15. Responsive refinamientos ────────────────────────── */
@media (max-width: 768px) {
  footer.js-footer {
    padding: 16px 0 10px !important;
  }
  footer.js-footer .list.font-small {
    flex-direction: column !important;
    gap: 2px !important;
  }
  footer.js-footer .list.font-small li {
    font-size: 11px !important;
  }
  footer.js-footer .footer-menu-item {
    margin: 0 8px 4px !important;
  }
  footer.js-footer .footer-menu-link {
    font-size: 11px !important;
  }
  .section-newsletter-home .newsletter,
  .template-home .section-newsletter-home .newsletter {
    padding: 24px 16px !important;
    max-width: 100% !important;
  }
  .section-newsletter-home h2,
  .section-newsletter-home .js-home-newsletter-title {
    font-size: 1rem !important;
  }
}

