/* ==========================================================================
   HOME2 PRO - CSS (Pixel Perfect Strict Version - Spacing & Width Fixes)
   ========================================================================== */

/* --- Layout Base --- */
.home2-page {
  background-color: #f7f9fa; /* Light gray background everywhere */
  font-family: 'Inter', sans-serif;
  color: #111;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.home2-page * {
  box-sizing: inherit;
}

/* --- LAYOUT & UTILS --- */
.home2-container {
  width: 95%;
  max-width: 1440px;
  margin: 0 auto;
}

.home2-container--wide {
  max-width: 1600px; /* Wider for Community & CTA */
}

.home2-section {
  padding: 4rem 0;
}

/* --- Buttons --- */
.home2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.home2-btn--primary {
  background: var(--primary, #e60000);
  color: #fff;
}
.home2-btn--primary:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.home2-btn--white {
  background: #fff;
  color: #111;
  border: 1px solid #e1e1e1; /* Subtle gray border */
}
.home2-btn--white:hover {
  background: #f1f1f1;
  border-color: #ccc;
}

.home2-btn--black-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.home2-btn--black-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.home2-slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.home2-slider-arrow:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transform: translateY(-50%) scale(1.05);
}

/* --- HERO SECTION --- */
.home2-hero {
  position: relative;
  background: #fff; /* Hero is pure white */
  padding: 6rem 0 8rem 0; /* Reduced bottom padding */
  overflow: hidden;
}

/* Big swoosh background in hero */
.home2-hero__bg-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, #f0f0f0 0%, #fff 70%);
  border-radius: 50%;
  z-index: 0;
}

.home2-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home2-hero__text-col {
  width: 55%;
}

.home2-hero__badge {
  color: var(--primary, #e60000);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.home2-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.home2-hero__title-black { color: #111; }
.home2-hero__title-red { color: var(--primary, #e60000); }

.home2-hero__desc {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 2rem 0;
  max-width: 90%;
}

.home2-hero__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.home2-hero__features {
  display: flex;
  gap: 1.5rem;
}

.home2-feature-item {
  display: flex;
  align-items: flex-start; /* Align to top for multiline text */
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.3;
}

.home2-feature-item i {
  color: #111;
  font-size: 1rem;
  margin-top: 0.1rem; /* optical alignment */
}

.home2-feature-item span {
  display: flex;
  flex-direction: column;
}

.home2-hero__visual-col {
  width: 45%;
  position: relative;
  display: flex;
  justify-content: center;
}

.home2-hero__main-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  z-index: 2;
}

.home2-hero__stats-card {
  position: absolute;
  bottom: 10%;
  right: 0;
  background: #fff;
  border-radius: var(--radius-2xl, 16px);
  padding: 1.25rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  width: 140px;
  text-align: center;
}

.home2-hero__stats-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.home2-hero__stats-text {
  font-size: 0.65rem;
  color: #777;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.home2-hero__stats-avatars {
  display: flex;
  justify-content: center;
}

.home2-hero__stats-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
}
.home2-hero__stats-avatars img:first-child {
  margin-left: 0;
}

/* --- CATEGORIES STRIP --- */
.home2-categories {
  margin-top: -4rem; /* Adjusted overlap */
  position: relative;
  z-index: 10;
  margin-bottom: 2rem; /* Reduced margin */
}

.home2-categories__inner {
  background: #fff;
  border-radius: var(--radius-3xl, 24px);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.home2-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #111;
  position: relative;
  padding-bottom: 0.25rem;
}

.home2-cat-item__img-box {
  width: 90px;
  height: 90px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.home2-cat-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.home2-cat-item:hover .home2-cat-item__img-box {
  transform: translateY(-4px);
}

.home2-cat-item span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Active underline */
.home2-cat-item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary, #e60000);
  border-radius: 2px;
}

/* --- RECOMMENDED SECTION --- */
.home2-section {
  padding: 2rem 0; /* Reduced padding */
}

.home2-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.home2-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #111;
}

.home2-section__subtitle {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.home2-section__link {
  color: var(--primary, #e60000);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home2-slider-wrap {
  position: relative;
  /* full width, arrows will be absolute */
}

.home2-slider-wrap .home2-slider-arrow:first-child {
  left: -22px;
}
.home2-slider-wrap .home2-slider-arrow:last-child {
  right: -22px;
}

.home2-products-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

/* Product Card */
.home2-product-card {
  background: #fff;
  border-radius: var(--radius-2xl, 16px);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home2-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.home2-product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.home2-product-card__brand {
  font-size: 0.55rem;
  color: #a0a0a0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.home2-product-card__brand-sep {
  color: #e0e0e0;
  margin: 0 0.4rem;
  font-weight: 300;
}

.home2-product-card__tag {
  color: var(--primary, #e60000);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home2-product-card__middle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex: 1;
}

.home2-product-card__img-container {
  width: 45%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* logo a la izquierda, igual que el nombre del producto — no centrado */
  /* Sin margen interno alrededor de la imagen (pedido 2026-08-31) — el
     espacio que este padding le daba al logo pasa a ser margen propio de
     .home2-product-card__brand-overlay, para no correr también el borde de
     la foto. */
  padding: 0;
  background-color: var(--surface-container-lowest, #f8fafc);
  border-radius: 0.75rem;
  /* Ahora es <a> (clickable, ver template-parts/home2/home2-sections.php) —
     anular el underline/color de link por defecto del navegador (solo importa
     para el fallback en texto de la marca, .home2-product-card__brand-overlay). */
  text-decoration: none;
  color: inherit;
}

.home2-product-card__brand-overlay {
  /* Ya no es overlay superpuesto (position:absolute) — .img-container ya traía
     flex-direction:column + padding-top "Espacio para el logo arriba", así que
     el logo pasa a ocupar ese espacio en flujo normal, con margin-bottom
     separándolo de la foto (pedido 2026-08-18: el margen no se veía mientras
     estuvo superpuesto). Margin-top/left compensan el padding que
     .img-container perdió (pedido 2026-08-31, sin margen alrededor de la
     imagen) — así el logo no queda pegado a la esquina. */
  flex-shrink: 0;
  margin: 0.5rem 0 0.35rem 0.5rem;
  /* Tamaño para cuando renderiza como <img> (logo real de la marca, mt_get_product_own_brand_logo()).
     Las props de abajo (color/font/text-transform) solo aplican al fallback en texto
     (sin imagen de marca) — conviven en la misma clase, cada una es inerte para el otro caso.
     Contenido por ANCHO (pedido 2026-08-31, antes 3.5rem/1rem fijos y chicos): max-width
     25% del ancho de la tarjeta (resuelve contra .home2-product-card__img-container, su
     contenedor flex), alto libre para que el logo escale proporcional a su ancho real. */
  max-width: 25%;
  height: auto;
  width: auto;
  object-fit: contain;
  color: var(--dark-navy, #1e293b);
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.home2-product-card__stock-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary, #e60000);
  color: #ffffff;
  padding: 0.2rem 0.5rem 0.2rem 0.85rem;
  border-radius: 0 999px 999px 0;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: -0.75rem; /* Toca el borde en mobile */
  white-space: nowrap;
  flex-shrink: 0;
}
.home2-product-card__stock-badge--out-of-stock {
  background-color: var(--outline, #79747e);
}
.home2-product-card__stock-badge--backorder {
  background-color: #f59e0b;
}

.home2-product-card__img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0;
  mix-blend-mode: multiply;
}

.home2-product-card__material-badge {
  background: var(--primary, #e60000);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem;
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
}

.home2-product-card__details {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home2-product-card__name {
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
  color: #111;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.home2-product-card__name a {
  text-decoration: none !important;
  color: inherit !important;
}

.home2-product-card__swatches {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  text-decoration: none;
}

.home2-product-card__swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  display: inline-block;
  margin: 0;
}

/* Hay más colores reales de los que se muestran — mismo tamaño que
   .home2-product-card__swatch (pedido 2026-08-31). */
.home2-product-card__swatch-more {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: var(--surface-variant, #e1e3e4);
  color: var(--on-surface-variant, #4a4d50);
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.4rem;
  font-weight: 700;
  line-height: 1;
}

.home2-product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  flex-direction: row-reverse; /* Precio derecha, stock izquierda */
}

.home2-product-card__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.home2-product-card__price-label {
  display: none !important;
}

.home2-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.home2-product-card__price-old,
.home2-product-card__price del,
.home2-product-card__price del .amount {
  display: none !important;
}

.home2-product-card__price-current,
.home2-product-card__price ins,
.home2-product-card__price ins .amount {
  font-size: 1.25rem;
  color: var(--primary, #e60000);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.home2-product-card__add {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--primary, #e60000);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.8rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.home2-product-card__add:hover {
  background: var(--dark-navy, #0f172a);
  color: #fff;
  transform: scale(1.05);
}

/* Machine Card Modifier */
.home2-product-card--machine .home2-product-card__price-current {
  color: #111; /* Black price for machines */
}
.home2-product-card--machine .home2-product-card__img-container {
  width: 35%; /* Images are a bit narrower than filaments */
}
.home2-product-card--machine .home2-product-card__details {
  width: 65%;
  justify-content: center;
}
.home2-product-card--machine .home2-product-card__name {
  margin-bottom: 0;
}

/* --- ARSENAL DIGITAL SECTION --- */
.home2-arsenal-wrap {
  padding: 2.5rem 0; /* Reduced padding */
}

.home2-arsenal {
  background: #0a0e17; /* Very dark blue/black */
  border-radius: var(--radius-3xl, 24px);
  padding: 4rem;
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Left Col */
.home2-arsenal__col-left h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.home2-arsenal__col-left p {
  color: #8b92a5;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

/* Center Col - Floating White Card */
.home2-arsenal__col-center {
  background: #fff;
  border-radius: var(--radius-2xl, 16px);
  padding: 2.5rem;
  color: #111;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  /* Red glow border effect on left */
  border-left: 4px solid var(--primary, #e60000);
}

.home2-arsenal__col-center h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home2-arsenal__col-center h3 i {
  color: var(--primary, #e60000);
  background: #ffe5e5;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 1rem;
}

.home2-arsenal__col-center > p {
  color: #666;
  font-size: 0.875rem;
  margin: 0 0 2rem 0;
}

.home2-arsenal__softwares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home2-software-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home2-software-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.home2-software-item span {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.home2-software-item small {
  color: #888;
  font-size: 0.65rem;
  margin-bottom: 1rem;
}

.home2-software-item button {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.home2-software-item button:hover {
  background: var(--primary, #e60000);
}

/* Config Avanzada - outside the white card */
.home2-arsenal__config {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary, #e60000);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Right Col */
.home2-arsenal__col-right {
  display: flex;
  flex-direction: column;
}

.home2-arsenal__col-right h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home2-arsenal__col-right h3 i {
  color: #4a5568;
}

.home2-arsenal__col-right > p {
  color: #8b92a5;
  font-size: 0.875rem;
  margin: 0 0 2rem 0;
}

.home2-alink-box {
  background: #131a26;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color 0.2s;
}
.home2-alink-box:hover {
  border-color: rgba(255,255,255,0.2);
}

.home2-alink-box i {
  color: var(--primary, #e60000);
}

.home2-arsenal__verified {
  margin-top: auto;
  align-self: flex-end;
  color: #4a5568;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- EXPLORA MÁQUINAS --- */
/* The layout is Text on left, 3 White Cards on right, on grey background */
.home2-machines-row {
  display: grid;
  grid-template-columns: 2.2fr 7.8fr; /* Wider track for cards */
  gap: 3rem;
  align-items: flex-start; /* Align to top instead of center */
  margin-bottom: 2rem; /* Reduced margin */
}

.home2-machines-row__text {
  padding-top: 1rem; /* Optical alignment with the cards */
}

.home2-machines-row__text h3 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #111;
}

.home2-machines-row__text p {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.home2-machines-row__slider {
  position: relative; /* Absolute arrow relative to this */
}

.home2-machines-row__slider .home2-slider-arrow {
  right: -22px;
}

.home2-machines-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}


/* --- COMMUNITY GALLERY --- */
.home2-community-layout {
  display: grid;
  grid-template-columns: 2.2fr 7.8fr; /* Match machine grid */
  gap: 3rem;
  align-items: center;
  padding-bottom: 2rem; /* Reduced padding */
}

.home2-community-info .home2-hero__badge {
  margin-bottom: 0.5rem;
}

.home2-community-info h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  color: #fff;
}

.home2-community-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.home2-community-gallery-wrap {
  position: relative;
}

.home2-community-gallery-wrap .home2-slider-arrow {
  right: -22px;
}

.home2-community-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.home2-community-item {
  background: #fff;
  border-radius: var(--radius-2xl, 16px);
  padding: 1rem;
  aspect-ratio: 1; /* Square boxes */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.home2-community-item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  mix-blend-mode: multiply; /* Fix grey backgrounds */
}

/* --- FOOTER CTA --- */
.home2-footer-section {
  background: #111; /* Black background from here down */
}

/* Ensure padding top pushes down from community section */
.home2-community-layout {
  display: grid;
  grid-template-columns: 2.2fr 7.8fr; /* Match machine grid */
  gap: 3rem;
  align-items: center;
  padding-bottom: 2rem; /* Reduced padding */
}

/* Dark box wrapper */
.home2-cta-dark-box {
  background: #0a0e17;
  border-radius: var(--radius-3xl, 24px) var(--radius-3xl, 24px) 0 0;
  overflow: hidden;
}

.home2-cta-benefits {
  background: #0a0e17;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3rem 2rem;
  gap: 2rem;
  color: #fff;
}

.home2-benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.home2-benefit i {
  font-size: 1.5rem;
  color: #fff;
  opacity: 0.8;
}

.home2-benefit span {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.home2-benefit small {
  display: block;
  color: #8b92a5;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Red full-width wrapper */
.home2-cta-red-full {
  background: var(--primary, #e60000);
  width: 100%;
}

.home2-cta-red {
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.home2-cta-red-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.home2-cta-red-left i {
  font-size: 2.5rem;
}

.home2-cta-red-left h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.home2-cta-red-left p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.home2-cta-red .home2-btn--white {
  color: var(--primary, #e60000);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}
.home2-cta-red .home2-btn--white:hover {
  background: #f8f8f8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .home2-container { max-width: 100%; padding: 0 1rem; }
  .home2-hero__content { flex-direction: column; }
  .home2-hero__text-col, .home2-hero__visual-col { width: 100%; }
  .home2-hero__title { font-size: clamp(3rem, 8vw, 4rem); }
  
  .home2-products-track { grid-template-columns: repeat(2, 1fr); }
  
  .home2-machines-row { grid-template-columns: 1fr; gap: 2rem; }
  .home2-community-layout { grid-template-columns: 1fr; gap: 2rem; }
  
  .home2-cta-benefits { grid-template-columns: repeat(2, 1fr); }
  .home2-cta-red { flex-direction: column; text-align: center; gap: 2rem; }
  .home2-cta-red-left { flex-direction: column; }
}

.home2-desktop-only { display: none !important; }

@media (min-width: 768px) {
  .home2-desktop-only { display: block !important; }
}

@media (max-width: 767px) {
  /* Hide Desktop Arsenal on mobile */
  .home2-arsenal-wrap {
    display: none !important;
  }
  
  .home2-container { padding: 0 0.5rem; }

  /* Sliders (Products, Machines, Community) */
  .home2-products-track,
  .home2-community-track,
  .home2-machines-track {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.75rem !important;
    padding-bottom: 1rem !important;
  }

  .home2-products-track::-webkit-scrollbar,
  .home2-community-track::-webkit-scrollbar,
  .home2-machines-track::-webkit-scrollbar {
    display: none !important;
  }

  .home2-community-item {
    flex: 0 0 calc(90vw - 1rem) !important;
    scroll-snap-align: start !important;
  }
  
  /* Reset grid/flex properties that might conflict */
  .home2-product-card {
    width: auto;
  }

  /* Hide arrows on touch devices */
  .home2-slider-arrow {
    display: none !important;
  }

  /* Categories Mobile */
  .home2-categories__inner { 
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem 0.5rem;
  }
  .home2-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .home2-cat-item__img-box {
    background: transparent;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .home2-cat-item__img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .home2-cat-item.is-active::after {
    display: none;
  }
  .home2-cat-item span {
    font-size: 0.85rem;
    color: #111;
  }
  
  /* Product Cards Mobile - Adaptado desde home.css (Sincronizado al 100%) */
  .home2-product-card {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    transition: all 0.3s ease !important;
    flex: 0 0 calc(46% - 0.35rem) !important;
    max-width: calc(46% - 0.35rem) !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    width: auto !important;
  }

  .home2-product-card__top {
    display: none !important;
  }

  .home2-product-card__middle {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas: 
      "title title"
      "img colors" !important;
    gap: 0.5rem !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
  }

  .home2-product-card__details {
    display: contents !important;
  }

  .home2-product-card__name {
    grid-area: title;
    font-family: var(--font-headline) !important;
    font-weight: 900 !important;
    font-style: italic !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    margin: 0 0 0.25rem 0 !important;
    color: var(--on-surface) !important;
    text-transform: uppercase !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 1.7rem !important;
    width: 100% !important;
  }

  .home2-product-card__name a {
    text-decoration: none !important;
    color: inherit !important;
  }

  .home2-product-card__img-container {
    grid-area: img;
    width: 100% !important;
    max-width: 8rem !important;
    /* Alto fijo en vez de aspect-ratio:1/1 — el cuadrado forzaba el ancho a
       igualar el alto y, con el logo apilado arriba, encogía la imagen.
       Con alto fijo el ancho queda libre (pedido 2026-08-18; subido de
       5.5rem a 6.25rem, pedido 2026-08-18). */
    height: 6.25rem !important;
    border-radius: 0.75rem !important;
    background-color: transparent !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: flex-start !important; /* logo a la izquierda, igual que el nombre — no centrado */
    justify-content: flex-start !important; /* logo apilado arriba, ya no superpuesto */
    padding: 0 !important; /* sin margen interno alrededor de la imagen — pedido 2026-08-31 */
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto 0 0 !important;
  }

  .home2-product-card__brand-overlay {
    /* margin-top/left compensan el padding que .img-container perdió arriba. */
    margin: 0.2rem 0 0.2rem 0.2rem !important;
    max-width: 25% !important;
    height: auto !important;
    font-size: 0.6rem !important;
  }

  .home2-product-card__img {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    object-fit: contain !important; /* ya no "cover": no debe recortar la imagen */
    mix-blend-mode: normal !important;
  }

  .home2-product-card__swatches {
    grid-area: colors;
    display: grid !important;
    grid-template-columns: repeat(2, 0.65rem) !important;
    gap: 0.35rem !important;
    justify-content: center !important;
    align-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    width: auto !important;
    padding: 0 0.15rem !important;
    border: none !important;
  }

  .home2-product-card__swatch {
    width: 0.65rem !important;
    height: 0.65rem !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin: 0 !important;
  }

  .home2-product-card__footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
    border-top: none !important;
    padding-top: 0.25rem !important;
    /* row-reverse, igual que desktop: el badge de stock lleva un margin-left
       negativo (-0.75rem, "Toca el borde en mobile") pensado para sangrar
       fuera del borde izquierdo cuando es el ítem más a la izquierda. Con
       "row" (antes) el badge quedaba a la derecha y ese margen negativo lo
       tiraba hacia el precio, encima de él (mismo bug que matriz-arsenal.css,
       corregido igual — pedido 2026-08-18). */
    flex-direction: row-reverse !important;
  }

  .home2-product-card__price-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem !important;
    align-items: flex-end !important;
  }

  .home2-product-card__price-label {
    display: none !important;
  }

  .home2-product-card__price {
    font-family: var(--font-headline) !important;
    font-weight: 900 !important;
    font-size: 0.9rem !important; /* precio "solo" (sin oferta) — igual al de ins de abajo */
    color: var(--on-surface) !important;
    line-height: 1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.15rem !important;
  }

  /* En mobile se muestra SOLO el precio actual junto al badge de stock — no el
     precio tachado + el precio con descuento juntos (pedido 2026-08-18: "nada
     más el precio y en stock"). Mismo criterio que matriz-arsenal.css. */
  .home2-product-card__price del,
  .home2-product-card__price del .amount {
    display: none !important;
  }

  .home2-product-card__price ins,
  .home2-product-card__price ins .amount {
    font-size: 0.9rem !important;
    text-decoration: none !important;
    color: var(--primary) !important;
  }

  .home2-product-card__add {
    background-color: var(--primary, #e60000) !important;
    color: #fff !important;
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
  }
  
  .home2-product-card__add:hover {
    background-color: var(--dark-navy, #0f172a) !important;
    color: #fff !important;
    transform: scale(1.05) !important;
  }
  
  .home2-product-card__stock-badge {
    margin-left: -1.25rem; /* Ajuste para desktop padding 1.25rem */
  }
  
  .home2-product-card__add i {
    font-size: 0.9rem !important;
  }
  
  /* Machine Cards Mobile specific */
  .home2-product-card--machine .home2-product-card__name {
    font-style: normal;
  }
  .home2-product-card--machine .home2-product-card__price-label {
    color: #6c757d;
  }
  .home2-product-card--machine .home2-product-card__price-current {
    font-size: 1.5rem;
    color: #111;
  }

  /* CTA scaling */
  .home2-cta-benefits { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .home2-cta-red { padding: 2rem 1.5rem; }
  
  .home2-hero__title { font-size: clamp(2.5rem, 8vw, 3rem); }

  /* Set visual column as background behind text */
  .home2-hero__visual-col {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%; /* Increase size to fill background */
    height: 100%;
    z-index: 0;
    opacity: 0.15; /* Reduce opacity so text is readable */
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .home2-hero__main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .home2-hero__text-col {
    position: relative;
    z-index: 2;
    padding: 2rem 0; /* Add some padding so it has space over the bg */
  }

  /* Adjust hero padding on mobile since image is absolute now */
  .home2-hero {
    padding: 3rem 0;
  }
}

/* --- ARSENAL DIGITAL MOBILE --- */
@media (min-width: 768px) {
  .home2-arsenal-section {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .home2-arsenal-section {
    background: #111;
    color: #fff;
    padding-bottom: 3rem;
  }

  /* --- ARSENAL MOBILE (Stitch Pure BEM) --- */
  .home-arsenal__mobile { display: flex; flex-direction: column; gap: 1.5rem; }
  .arsenal-m__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 0.5rem; }
  .arsenal-m__card { background-color: #ffffff; border-radius: 0.5rem; border: 1px solid #f3f4f6; box-shadow: 0 4px 10px rgba(0,0,0,0.02); display: flex; flex-direction: column; overflow: hidden; }
  .arsenal-m__card-body { padding: 1.25rem 1rem; flex-grow: 1; }
  .arsenal-m__title { font-size: clamp(0.85rem, 3.5vw, 1.15rem); font-weight: 800; color: #0f172a; line-height: 1.25; margin-bottom: 1.25rem; padding: 0; word-break: break-word; hyphens: auto; }
  .arsenal-m__list { display: flex; flex-direction: column; gap: 0.75rem; }
  .arsenal-m__item { background-color: #fafafa; border: 1px solid #f3f4f6; border-radius: 0.5rem; padding: 0.6rem 0.4rem; display: flex; justify-content: space-between; align-items: center; text-decoration: none; transition: all 0.2s; gap: 0.25rem; }
  .arsenal-m__item:hover { background-color: #f3f4f6; border-color: #e5e7eb; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
  .arsenal-m__item-name { font-size: 0.52rem !important; font-weight: 700; color: #0f172a; margin: 0; word-break: break-word; }
  .arsenal-m__icon { color: #dc2626; font-size: 0.75rem !important; font-weight: 500; flex-shrink: 0; }
  .arsenal-m__roi { background-color: #18181B; border-radius: 0.5rem; border: 1px solid #1f2937; padding: 0.75rem; position: relative; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); margin-top: 1rem; }
  .arsenal-m__roi-title { font-size: 1.25rem; font-weight: 700; color: #ffffff; line-height: 1.25; margin-bottom: 1rem; }
  .arsenal-m__roi-btn { width: 100%; background-color: #E63946; color: #ffffff; font-weight: 700; border-radius: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 0.625rem; border: none; cursor: pointer; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); transition: background-color 0.2s; }
  .arsenal-m__roi-btn:hover { background-color: #d0313f; }
}

/* =======================================================
   ADAPTACIÓN MÓVIL DESDE HOME.CSS (MÓDULO DE LAYOUT Y HERO)
   ======================================================= */

/* Fondos oscuros para secciones del footer aplanadas */
.home2-arsenal-section,
.home2-community-section,
.home2-footer-cta {
  background: #111;
}

@media (max-width: 768px) {
  /* Fix grid blowout for horizontal scrolling tracks */
  .home2-machines-row__text,
  .home2-machines-row__slider,
  .home2-community-info,
  .home2-community-gallery-wrap,
  .home2-slider-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* --- 1. Layout Adjustments (Reordenamiento eliminado para mantener flujo DOM) --- */
  .home2-layout {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .home2-section {
    padding: 1rem !important; /* Top, Right, Bottom, Left = 1rem */
    margin-bottom: 0 !important;
  }
  
  .home2-machines-row {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .home2-machines-row__text {
    padding-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .home2-section__header {
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .home2-section__title {
    white-space: nowrap !important;
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
  }
  
  .home2-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* --- 2. Hero Compensado --- */
  .home2-hero {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }
  
  .home2-hero__content {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  .home2-hero__title {
    font-size: 2rem !important;
    line-height: 0.95 !important;
    margin-bottom: 1.25rem !important;
  }
  
  .home2-hero__desc {
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
    max-width: 100% !important;
  }
  
  .home2-hero__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
    flex-direction: unset !important;
  }
  
  .home2-hero__actions .home2-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.875rem 1rem !important;
    font-size: clamp(0.85rem, 3vw, 1.1rem) !important;
  }

  /* --- 3. Categorías Confinadas --- */
  .home2-categories {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .home2-categories__inner {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    overflow: hidden !important;
    display: grid !important;
  }
  
  .home2-cat-item {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.2rem !important;
    gap: 0.4rem !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .home2-cat-item__img-box {
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home2-cat-item span {
    font-size: 0.6rem !important;
    letter-spacing: 0.1em !important;
    word-break: break-word !important;
    text-align: center !important;
  }

  /* --- 4. Community and CTA Adjustments --- */
  .home2-community-item {
    flex: 0 0 calc(45vw - 0.5rem) !important;
  }
  .home2-community-info .home2-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }
  .home2-community-info h2 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .home2-community-info p {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }
  .home2-cta-benefits {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .home2-benefit i {
    font-size: 1.25rem !important;
  }
  .home2-benefit span {
    font-size: 0.8rem !important;
  }
  .home2-benefit small {
    font-size: 0.65rem !important;
  }
}
