/* Portada de la tienda: reglas COPIADAS de assets/css/styles.css de la web (pagina
   Tienda), limitadas a .acbur-home. Si cambian en la web, se vuelven a copiar. */
.acbur-home {
  --bs-box-shadow-sm: 0 .125rem .375rem rgba(15, 23, 42, .12);
  --bs-box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .18);
  --bs-box-shadow-lg: 0 1rem 2.5rem rgba(15, 23, 42, .22);
  --brand: #187f2c;
  --brand-dark: #146624;
  --brand-soft: rgba(24, 127, 44, 0.08);
  --brand-soft-strong: rgba(24, 127, 44, 0.14);
  --hero-green-gradient:
    radial-gradient(circle at top left, rgba(24, 127, 44, 0.80), transparent 80%),
    radial-gradient(circle at bottom right, rgba(24, 127, 44, 0.12), transparent 28%);
  --hero-background:
    var(--hero-green-gradient),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);

  --ink: #172033;
  --muted: #667085;
  --line: rgba(233, 237, 245, 0.1);
  --surface: #f8fafc;
  --success-soft: #e9fff2;
  --bs-dark: #1e2a3a;
  --bs-dark-rgb: 30, 42, 58;

  --radius-xl: 0.5rem;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.acbur-home .text-muted-custom {
  color: var(--muted);
}
.acbur-home .text-sm {
  font-size: 0.5625rem !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}
.acbur-home h1, .acbur-home .h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}
.acbur-home .hero {
  position: relative;
  padding: 5rem 0 0;
  background: var(--hero-background);
  overflow: hidden;
}
.acbur-home .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.05rem 0.6rem;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-strong);
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.6rem;
}
.acbur-home .section-badge i, .acbur-home .hero-badge i {
  font-size: 0.6rem;
}

.acbur-home .display-tight {
  font-size: 1.8rem;
  letter-spacing: -0.055em;
  line-height: 0.96;
}
@media (min-width: 768px) {
  .acbur-home .display-tight { font-size: 2.5rem; }
}

.acbur-home .display-tight small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.58em;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  opacity: 0.88;
  font-weight: 700;
}
.acbur-home .service-card,
.acbur-home .vehicle-card,
.acbur-home .metric-card,
.acbur-home .cta-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.acbur-home .service-card,
.acbur-home .vehicle-card,
.acbur-home .metric-card {
  height: 100%;
}
.acbur-home .service-icon {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.35rem;
}
@media (max-width: 991.98px) {
  .acbur-home .hero {
    padding-top: 4.5rem;
  }

  .acbur-home .hero-visual {
    min-height: 340px;
  }
}


/* ---- Puente con la tienda: en la web la barra es fija y el padding-top del hero
   (80 px escritorio / 72 movil) incluye su alto (47 / 45). Aqui la cabecera no es
   fija, asi que se quita ese alto para que el titulo quede a la misma distancia
   bajo la barra (33 / 27 px). ---- */
.acbur-home .hero { padding-top: 33px; }
@media (max-width: 991.98px) {
  .acbur-home .hero { padding-top: 27px; }
}

/* Puente (2): diferencias del Bootstrap del tema con el de la web, medidas en la pagina. */
.acbur-home { color: #212529; }               /* web: ajuste color_texto del panel */
.acbur-home .breadcrumb { padding: 0; }       /* el tema mete 12 px arriba y abajo */
.acbur-home .h4 { font-size: calc(1.275rem + .3vw); line-height: 1.2; }  /* Bootstrap 5.3 de la web */
@media (min-width: 1200px) { .acbur-home .h4 { font-size: 1.5rem; } }
.acbur-home .h6 { font-size: 1rem; line-height: 1.2; }

/* Categorias: aire entre las migas y el contenido, como el pt-3 de la seccion de la web. */
/* Menu lateral de categorias: texto en el oscuro de la web, verde al pasar */
.category-tree__item-link,
.left-block__title-link { color: #1e2a3a; }
.left-block__title-link:hover { color: #187f2c; }
/* Fila entera con estado hover (fondo verde claro y texto verde), no solo el texto */
.category-tree__item-header {
  padding: .25rem .5rem;
  border-radius: .25rem;
  transition: background-color .15s;
}
.category-tree__item-header:hover,
.category-tree__item-header.acbur-activa { background-color: #e9f5ec; }
.category-tree__item-header.acbur-activa .category-tree__item-link { color: #187f2c; font-weight: 600; }
.category-tree__item-header:hover .category-tree__item-link,
.category-tree__item-header:hover .category-tree__item-link i { color: #187f2c !important; }
/* Subcategorias: 14 px, filas juntas y el texto alineado con el de la categoria (tras el icono) */
.category-tree .accordion-body { padding: 0; }
.category-tree__list[data-depth="1"] { margin: 0; padding: 0; gap: 0; }
.category-tree__list[data-depth="1"] > .category-tree__item { margin: 0; }
.category-tree__list[data-depth="1"] .category-tree__item-header { padding: .125rem .5rem .125rem 2rem; }
.category-tree__list[data-depth="1"] .category-tree__item-link { font-size: .875rem; line-height: 1.25rem; }

body:not(#index) .columns-container,
body:not(#index) #wrapper > .acbur-home ~ .container { padding-top: 1rem; }

/* Tarjetas de producto con el estilo de las tarjetas de vehiculo de la web (.vehicle-card en
   styles.css, medido en la ficha: radio 6 px, borde casi invisible, sombra amplia y suave;
   al pasar, halo verde y la foto crece un 5 %). La foto lleva aire alrededor para no quedar
   pegada al borde del cuadrado. */
.product-miniature {
  position: relative;
  background: #fff;
  border: 1px solid rgba(233, 237, 245, .1);
  border-radius: 6px;
  overflow: visible;   /* acbur-shop.css la recortaba y con ella el halo; recorta el __inner */
}
/* La sombra va en una capa por detras de TODAS las tarjetas: con 8 px de hueco, la sombra
   de una tarjeta se pintaba encima del borde de la anterior (se veia como una franja gris
   bajo la foto). .products aisla las capas para que el z-index -1 no se vaya mas atras. */
.products { isolation: isolate; }
.product-miniature::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
  transition: box-shadow .3s ease;
  pointer-events: none;
}
.product-miniature:hover::before,
.product-miniature:focus-within::before {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .5), 0 0 26px rgba(34, 197, 94, .35);
}
.product-miniature__inner { overflow: hidden; border-radius: inherit; }
.product-miniature__image-container { overflow: hidden; }
.product-miniature__image-link img {
  padding: 1.25rem;
  background: #fff;
  transition: transform .3s ease;
}
.product-miniature:hover .product-miniature__image-link img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .product-miniature__image-link img { transition: none; }
  .product-miniature:hover .product-miniature__image-link img { transform: none; }
}
/* Rejilla de productos: 8 px entre tarjetas, como la rejilla de venta-nuevos.php de la web
   (el tema traia 24 px y con la sombra amplia se veian muy separadas) */
.products { gap: .5rem; }
/* Al pasar, solo el halo de la web: fuera la sombra gris, el borde verde tenue y el
   desplazamiento de acbur-shop.css (el translateY crea una capa propia y dejaba el halo
   debajo del contenido) y la sombra interior del tema. */
.product-miniature:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(233, 237, 245, .1);
}
.product-miniature__inner:hover { box-shadow: none; }
/* La tarjeta con el raton encima sube sobre las vecinas para que el halo se vea entero */
.product-miniature:hover,
.product-miniature:focus-within { z-index: 1; }
/* Botones y selector de cantidad: clases de Bootstrap en la plantilla (mismos valores que la web) */
/* El euro del precio, mas pequeno que el importe */
.product-miniature__price small { font-size: .7em; }
