/* ============================================================
   ÁRBOL OEM SEINTO · DESGUACES LORENZO
   PrestaShop 1.7.7.8
   ============================================================ */

.aos-home,
.aos-detail {
  --aos-primary: #02336B;
  --aos-primary-dark: #001F44;
  --aos-accent: #FE001A;
  --aos-accent-dark: #C90019;
  --aos-bg: #F5F7FA;
  --aos-bg-blue: #EEF4FA;
  --aos-bg-red: #FFF1F3;
  --aos-surface: #FFFFFF;
  --aos-text: #2C2C2C;
  --aos-muted: #68717D;
  --aos-border: #DCE3EA;
  --aos-shadow: 0 8px 24px rgba(2, 51, 107, .10);
  --aos-shadow-hover: 0 16px 38px rgba(2, 51, 107, .16);
  --aos-radius: 18px;

  width: 100%;
  padding: 26px 0 56px;
  color: var(--aos-text);
  font-family: inherit;
}

.aos-home *,
.aos-detail * {
  box-sizing: border-box;
}

.aos-container {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

/* ============================================================
   CABECERA
   ============================================================ */

.aos-head {
  position: relative;
  max-width: 980px;
  margin: 24px 0 30px;
  padding: 30px 30px 28px;
  border: 1px solid var(--aos-border);
  border-radius: 24px;
  background: var(--aos-surface);
  box-shadow: var(--aos-shadow);
  overflow: hidden;
}

.aos-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--aos-primary) 0%,
    var(--aos-primary) 72%,
    var(--aos-accent) 72%,
    var(--aos-accent) 100%
  );
}

.aos-head::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  top: -110px;
  border-radius: 50%;
  background: rgba(254, 0, 26, .045);
  pointer-events: none;
}

.aos-head--center {
  max-width: 1120px;
  margin: 24px auto 30px;
  text-align: center;
}

.aos-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--aos-bg-blue);
  color: var(--aos-primary);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.aos-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--aos-accent);
}

.aos-head h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--aos-primary);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
}

.aos-head p {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  color: var(--aos-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.aos-head--center p {
  margin-inline: auto;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.aos-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  color: var(--aos-muted);
  font-size: .92rem;
}

.aos-breadcrumb a {
  color: var(--aos-primary);
  font-weight: 700;
  text-decoration: none;
}

.aos-breadcrumb a:hover {
  color: var(--aos-accent);
}

/* ============================================================
   PORTADA OEM / TARJETAS DE REFERENCIAS
   ============================================================ */

.aos-oem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}

.aos-oem-card {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  gap: 9px;
  padding: 22px 48px 20px 20px;
  border: 1px solid var(--aos-border);
  border-radius: var(--aos-radius);
  background: var(--aos-surface);
  box-shadow: var(--aos-shadow);
  color: var(--aos-text) !important;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.aos-oem-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--aos-primary);
  transition: background .2s ease;
}

.aos-oem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(2, 51, 107, .35);
  box-shadow: var(--aos-shadow-hover);
}

.aos-oem-card:hover::before {
  background: var(--aos-accent);
}

.aos-oem-label {
  display: block;
  max-width: 100%;
  color: var(--aos-accent);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  word-break: break-word;
}

.aos-oem-card strong {
  color: var(--aos-primary-dark);
  font-size: 1.08rem;
  line-height: 1.35;
  word-break: break-word;
}

.aos-oem-card small {
  margin-top: auto;
  color: var(--aos-muted);
  font-size: .87rem;
  line-height: 1.45;
}

.aos-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--aos-bg-blue);
  color: var(--aos-primary);
  font-size: 1.05rem;
  font-weight: 900;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.aos-oem-card:hover .aos-arrow {
  background: var(--aos-accent);
  color: #fff;
  transform: translateX(2px);
}

/* ============================================================
   RESUMEN Y VEHÍCULOS
   ============================================================ */

.aos-summary {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid var(--aos-border);
  border-radius: 14px;
  background: var(--aos-bg-blue);
}

.aos-summary strong {
  color: var(--aos-primary);
  font-size: 1.08rem;
}

.aos-summary span {
  color: var(--aos-muted);
}

.aos-vehicles {
  position: relative;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--aos-border);
  border-radius: 20px;
  background: var(--aos-bg);
  overflow: hidden;
}

.aos-vehicles::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--aos-primary) 0 72%, var(--aos-accent) 72% 100%);
}

.aos-vehicles h2,
.aos-seo-text h2 {
  margin: 0 0 15px;
  color: var(--aos-primary);
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 800;
}

.aos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.aos-chips span {
  padding: 8px 12px;
  border: 1px solid var(--aos-border);
  border-radius: 999px;
  background: var(--aos-surface);
  color: var(--aos-text);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 51, 107, .04);
}

.aos-chips small {
  color: var(--aos-accent);
  font-weight: 800;
}

/* ============================================================
   PRODUCTOS
   ============================================================ */

.aos-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.aos-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--aos-border);
  border-radius: 20px;
  background: var(--aos-surface);
  box-shadow: var(--aos-shadow);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.aos-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(2, 51, 107, .28);
  box-shadow: var(--aos-shadow-hover);
}

.aos-product-img {
  display: flex;
  height: 225px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--aos-border);
  background: #fff;
}

.aos-product-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aos-product-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}

.aos-product-body h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
}

.aos-product-body h2 a {
  color: var(--aos-primary-dark);
  text-decoration: none;
}

.aos-product-body h2 a:hover {
  color: var(--aos-accent);
}

.aos-vehicle {
  margin: 0;
  color: var(--aos-primary);
  font-weight: 800;
}

.aos-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.aos-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--aos-bg-blue);
  color: var(--aos-muted);
  font-size: .8rem;
  line-height: 1.25;
}

.aos-meta span:first-child {
  background: var(--aos-bg-red);
  color: var(--aos-accent-dark);
  font-weight: 800;
}

.aos-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--aos-border);
}

.aos-product-footer strong {
  color: var(--aos-primary);
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 900;
}

.aos-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--aos-primary);
  border-radius: 11px;
  background: var(--aos-primary);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.aos-button:hover {
  border-color: var(--aos-accent);
  background: var(--aos-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(254, 0, 26, .18);
}

.aos-button:focus-visible,
.aos-oem-card:focus-visible,
.aos-pagination a:focus-visible {
  outline: 3px solid rgba(254, 0, 26, .25);
  outline-offset: 3px;
}

/* ============================================================
   PAGINACIÓN
   ============================================================ */

.aos-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.aos-pagination a {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--aos-border);
  border-radius: 11px;
  background: var(--aos-surface);
  color: var(--aos-primary);
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.aos-pagination a:hover {
  border-color: var(--aos-primary);
  background: var(--aos-bg-blue);
  color: var(--aos-primary-dark);
}

.aos-pagination a.is-current {
  border-color: var(--aos-primary);
  background: var(--aos-primary);
  color: #fff;
}

/* ============================================================
   TEXTO SEO / ESTADOS VACÍOS
   ============================================================ */

.aos-seo-text {
  position: relative;
  margin-top: 36px;
  padding: 26px 28px;
  border: 1px solid var(--aos-border);
  border-radius: 20px;
  background: var(--aos-bg);
  overflow: hidden;
}

.aos-seo-text::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--aos-accent);
}

.aos-seo-text p {
  margin: 0;
  color: var(--aos-muted);
  line-height: 1.72;
}

.aos-empty {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px solid var(--aos-border);
  border-radius: 14px;
  background: var(--aos-bg);
  color: var(--aos-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
  .aos-home,
  .aos-detail {
    padding: 18px 0 40px;
  }

  .aos-container {
    width: min(100% - 24px, 1500px);
  }

  .aos-head,
  .aos-head--center {
    margin-top: 14px;
    padding: 26px 18px 22px;
    border-radius: 18px;
  }

  .aos-head h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .aos-oem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .aos-oem-card {
    min-height: 145px;
    padding: 18px 38px 17px 16px;
    border-radius: 15px;
  }

  .aos-arrow {
    top: 15px;
    right: 12px;
    width: 27px;
    height: 27px;
  }

  .aos-summary {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .aos-vehicles,
  .aos-seo-text {
    padding: 20px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 575px) {
  .aos-oem-grid,
  .aos-products-grid {
    grid-template-columns: 1fr;
  }

  .aos-product-img {
    height: 240px;
  }

  .aos-product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .aos-product-footer strong {
    text-align: center;
  }

  .aos-button {
    width: 100%;
  }
}
