
:root {
  --bs-primary: #111111;
  --color-text: #1b1b1b;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-soft: #f7f7f7;
  --color-white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --container-max: 1320px;
  --section-space: 72px;
}


body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container-custom {
  max-width: var(--container-max);
}

.section-space {
  padding: var(--section-space) 0;
}

.section-title {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 720px;
  margin-bottom: 0;
}

.btn-clean {
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
}

.btn-dark-clean {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.btn-dark-clean:hover {
  background: #000;
  color: #fff;
}

.btn-light-clean {
  background: #fff;
  color: #111;
  border: 1px solid var(--color-border);
}

.btn-light-clean:hover {
  background: #f8f8f8;
}

.topbar {
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.65rem 0;
}

.topbar p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
  padding: 0;
  min-height: 60px;
  line-height: 1;
}

.navbar-brand img {
  max-width: 180px;
  width: 100%;
  min-height: 60px;
  display: block;
  object-fit: contain;
}


.navbar-nav .nav-link {
  color: #222;
  font-weight: 500;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

.header-actions { gap: 0.75rem; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--color-soft);
  transform: translateY(-1px);
}

.icon-btn i,
.service-card-icon i,
.review-stars i {
  font-size: 1rem;
  line-height: 1;
}

.main-menu .nav-item { position: relative; }

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  padding: 1.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.25s ease, visibility 0.25s ease;
  transition-delay: 0.2s;
  pointer-events: none;
}

/* Zona de padding superior del mega-menu que actua de bridge */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-megamenu:hover .mega-menu,
.has-megamenu:focus-within .mega-menu,
.has-megamenu.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mega-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mega-links a {
  display: block;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.mega-links a:hover { color: #111; }

.mega-highlight {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 240px;
  height: 100%;
}

.mega-highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-highlight-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
}

.mega-highlight-content span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.2rem;
}

.mega-highlight-content strong { font-size: 1rem; }

.search-box {
  background: #f8f8f8;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  width: 100%;
}

/* Home */
.banner-slider { padding: 0; margin-top: 0; }
.banner-slide {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 560px;
  background: #f3f4f6;
}
.banner-slide.banner-full { border-radius: 0; min-height: 650px; }
.banner-slide img {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    object-fit: cover;
    max-height: 80vh !important;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.22) 45%, rgba(0,0,0,0.08) 100%);
  display: flex;
  align-items: center;
}
.banner-content { max-width: 640px; padding: 3rem; color: #fff; }
.banner-kicker {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem;
}
.banner-title {
  font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 0.95; letter-spacing: -0.06em; font-weight: 800; margin-bottom: 1.1rem;
}
.banner-text {
  font-size: 1.05rem; color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 1.75rem;
}
.carousel-control-clean {
  width: 52px; height: 52px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.92); border-radius: 999px; opacity: 1; bottom: auto;
}
.carousel-control-prev.carousel-control-clean { left: 24px; }
.carousel-control-next.carousel-control-clean { right: 24px; }
.carousel-control-clean span { filter: invert(1); width: 20px; height: 20px; }
.carousel-indicators { margin-bottom: 1.5rem; }
.carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; }
.info-card,
.review-card,
.product-card,
.card-clean {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.info-card { padding: 1.4rem; height: 100%; }
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.info-card p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; background: #f3f4f6; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover,
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.category-card img, .product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.category-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.58), rgba(0,0,0,0.10)); display: flex; align-items: flex-end; padding: 1.5rem; color: #fff;
}
.category-overlay h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }
.category-overlay p { margin: 0; opacity: 0.9; font-size: 0.95rem; }
.product-card { overflow: hidden; transition: all 0.25s ease; height: 100%; display: flex; flex-direction: column; }
.product-image-wrap { position: relative; background: #f8f8f8; aspect-ratio: 1 / 1.08; overflow: hidden; }
.product-badge {
  position: absolute; top: 14px; left: 14px; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 0.78rem; font-weight: 700;
}
.product-actions {
  position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 0.5rem; opacity: 0; transform: translateY(-8px); transition: all 0.25s ease;
}
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-card-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-card-body .btn { margin-top: auto; }
.product-category,
.mini-category {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 0.45rem;
}
.product-title,
.mini-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.product-price,
.mini-price { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.9rem; }
.product-price small,
.mini-price small { font-size: 0.9rem; color: var(--color-muted); text-decoration: line-through; font-weight: 500; margin-left: 0.5rem; }
.promo-block {
  background: #111; color: #fff; border-radius: 32px; padding: 3rem; overflow: hidden; position: relative;
}
.promo-block::after {
  content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: rgba(255,255,255,0.08);
}
.promo-block p { color: rgba(255,255,255,0.75); max-width: 640px; margin-bottom: 0; }
.review-card { padding: 1.5rem; height: 100%; }
.review-stars { margin-bottom: 0.8rem; font-size: 0.95rem; color: #f59e0b; }
.review-card p { color: #374151; margin-bottom: 1rem; }
.review-author { font-weight: 700; margin: 0; }
.review-role { color: var(--color-muted); font-size: 0.92rem; margin: 0; }
.newsletter-box { background: var(--color-soft); border-radius: 32px; padding: 3rem; }
.newsletter-input { border-radius: 999px; min-height: 52px; border: 1px solid var(--color-border); padding-left: 1rem; }

/* Listing */
.page-hero {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--color-muted); font-size: 0.92rem; margin-bottom: 1rem;
}
.breadcrumbs span:last-child { color: var(--color-text); font-weight: 600; }
.page-title {
  font-size: clamp(2rem, 4vw, 3.4rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 800; margin-bottom: 0.8rem;
}
.page-text,
.product-tax,
.product-meta,
.product-short-text { color: var(--color-muted); }
.catalog-section,
.related-section,
.tabs-section { padding: var(--section-space) 0; }
.catalog-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start;
}
.filters-sidebar {
  position: sticky; top: 110px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff;
}
.filters-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem;
}
.filters-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.filter-block + .filter-block { border-top: 1px solid var(--color-border); padding-top: 1.25rem; margin-top: 1.25rem; }
.filter-block h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.9rem; }
.filter-list { display: grid; gap: 0.7rem; }
.filter-check { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #374151; font-size: 0.95rem; }
.filter-check .form-check-label { cursor: pointer; }
.filter-count { color: var(--color-muted); font-size: 0.88rem; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.price-range input,
.filter-select {
  border: 1px solid var(--color-border); border-radius: 12px; min-height: 46px; padding: 0.75rem 0.9rem; width: 100%; background: #fff;
}
.catalog-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem;
}
.catalog-info { color: var(--color-muted); font-size: 0.95rem; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.chips-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; font-size: 0.9rem; font-weight: 500;
}
.products-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pagination-clean { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.pagination-clean a,
.pagination-clean span {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: #fff;
}
.pagination-clean .is-active { background: #111; color: #fff; border-color: #111; }
.mobile-filter-toggle { display: none; }

/* Product detail */
.product-page { padding: 2rem 0 var(--section-space); }
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 3rem; align-items: start;
}
.gallery-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.gallery-layout:has(.thumbs-col) { grid-template-columns: 96px minmax(0, 1fr); }
.thumbs-col { display: grid; gap: 0.75rem; position: sticky; top: 110px; }
.thumb-btn {
  border: 1px solid var(--color-border); border-radius: 18px; overflow: hidden; padding: 0; background: #fff; transition: all 0.2s ease; aspect-ratio: 1 / 1;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.is-active,
.thumb-btn:hover { border-color: #111; transform: translateY(-1px); }
.main-image-card {
  position: relative; border: 1px solid var(--color-border); border-radius: 28px; overflow: hidden; background: #f8f8f8;
}
.main-image-card img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; }
.gallery-floating-actions { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 0.5rem; z-index: 2; }
.product-sticky { position: sticky; top: 108px; }
.product-title-lg {
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 800; margin-bottom: 0.8rem;
}
.product-rating {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--color-muted); font-size: 0.95rem;
}
.product-rating strong { color: #111; }
.product-price-lg { font-size: 2rem; font-weight: 800; margin-bottom: 0.25rem; }
.product-price-lg small { font-size: 1rem; color: var(--color-muted); text-decoration: line-through; font-weight: 500; margin-left: 0.6rem; }
.product-short-text { margin: 1.25rem 0 1.5rem; line-height: 1.7; }
.product-card-box,
.tabs-box {
  border: 1px solid var(--color-border); border-radius: 24px; padding: 1.5rem; background: #fff;
}
.tabs-box { overflow: hidden; padding: 0; }
.selector-block + .selector-block { margin-top: 1.25rem; }
.selector-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; font-size: 0.95rem;
}
.selector-top strong { color: #111; }
.option-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.option-chip {
  min-width: 48px; min-height: 48px; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; padding: 0.7rem 1rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; cursor: pointer;
}
.option-chip:hover,
.option-chip.is-active { border-color: #111; background: #111; color: #fff; }
.color-chip { width: 44px; height: 44px; padding: 0; border-radius: 999px; position: relative; }
.color-chip::after { content: ''; position: absolute; inset: 6px; border-radius: 999px; background: currentColor; }
.qty-actions { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 0.9rem; margin-top: 1.5rem; }
.qty-control {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; min-height: 54px; background: #fff;
}
.qty-control button { border: 0; background: transparent; font-size: 1rem; height: 100%; }
.qty-control input { border: 0; text-align: center; font-weight: 700; outline: none; width: 100%; }
.wish-btn {
  width: 54px; height: 54px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--color-border); background: #fff;
}
.product-meta-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; color: var(--color-muted); font-size: 0.95rem; }
.product-meta-list strong { color: #111; min-width: 90px; display: inline-block; }
.service-cards { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.service-card {
  border: 1px solid var(--color-border); border-radius: 18px; padding: 1rem 1.1rem; display: flex; gap: 0.9rem; align-items: flex-start; background: #fff;
}
.service-card-icon {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; background: #fff; flex: 0 0 auto;
}
.service-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.25rem; }
.service-card p { color: var(--color-muted); font-size: 0.93rem; margin: 0; }
.tabs-nav {
  display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--color-border); background: #fafafa;
}
.tabs-nav button { border: 0; background: transparent; padding: 1rem 1.25rem; font-weight: 600; color: var(--color-muted); }
.tabs-nav button.active { color: #111; background: #fff; }
.tab-panel { padding: 2rem; }
.tab-panel h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.tab-panel p,
.tab-panel li { color: #374151; line-height: 1.8; }
.spec-table { display: grid; gap: 0.75rem; }
.spec-row { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.products-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.footer-title { color: #111; font-weight: 700; margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--color-muted); margin-bottom: 0.65rem; }
.footer-links a:hover { color: #111; }

@media (max-width: 1199.98px) {
  .products-grid-3,
  .products-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; }
  .product-sticky { position: static; }
}

@media (max-width: 991.98px) {
  :root { --section-space: 56px; }
  .promo-block,
  .newsletter-box,
  .banner-content { padding: 2rem; }
  .banner-slide,
  .banner-slide.banner-full { min-height: 500px; border-radius: 0; }
  .site-header .navbar-collapse {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: #fff; z-index: 1200; padding: 6rem 1.5rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease; display: block !important;
  }
  .site-header .navbar-collapse.show { transform: translateX(0); }
  .main-menu { width: 100%; }
  .main-menu .nav-item { border-bottom: 1px solid var(--color-border); }
  .main-menu .nav-link {
    display: flex; justify-content: space-between; align-items: center; padding-left: 0 !important; padding-right: 0 !important; font-size: 1.1rem;
  }
  .header-actions { margin-top: 1.5rem; justify-content: flex-start; }
  .mega-menu {
    position: static; display: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; box-shadow: none; border-top: 0; border-bottom: 0; padding: 0.5rem 0 1rem; background: transparent;
  }
  .has-megamenu.is-open .mega-menu { display: block; }
  .mega-highlight { min-height: 180px; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .mobile-filter-toggle { display: inline-flex; }
  .gallery-layout { grid-template-columns: 1fr; }
  .thumbs-col { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); order: 2; }
  .main-image-col { order: 1; }
  .qty-actions { grid-template-columns: 1fr; }
  .tabs-nav { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .banner-slider { padding-top: 0; }
  .promo-block,
  .newsletter-box,
  .banner-content,
  .product-card-box,
  .tab-panel { padding: 1.5rem; }
  .banner-slide,
  .banner-slide.banner-full { min-height: 430px; }
  .section-title { margin-bottom: 0.5rem; }
  .carousel-control-clean { width: 42px; height: 42px; }
  .carousel-control-prev.carousel-control-clean { left: 12px; }
  .carousel-control-next.carousel-control-clean { right: 12px; }
  .categories-grid,
  .products-grid-3,
  .products-grid-4 { grid-template-columns: 1fr; }
  .catalog-actions { width: 100%; }
  .catalog-actions > * { flex: 1 1 100%; }
  .page-hero { padding: 2rem 0 1.5rem; }
  .product-page { padding-top: 1.25rem; }
  .spec-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .fills-grid { grid-template-columns: 1fr; }
  .fill-card { grid-template-columns: 1fr; }
}


/* =========================================
   Pàgina genèrica
   ========================================= */

/* Cos de text (prose) */
.generic-body {
  max-width: 860px;
  line-height: 1.8;
  color: var(--color-text);
}

.generic-body h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 0.75rem; letter-spacing: -0.03em; }
.generic-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.generic-body p  { margin-bottom: 1.25rem; }
.generic-body ul,
.generic-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.generic-body li { margin-bottom: 0.4rem; }
.generic-body img { border-radius: var(--radius-md); margin: 1.5rem 0; }

/* Galeria */
.generic-gallery {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.generic-swiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Descàrregues */
.generic-downloads {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft);
}

.generic-downloads-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.downloads-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.downloads-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  background: var(--color-white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.downloads-list a:hover {
  border-color: #111;
  transform: translateY(-1px);
}

.downloads-list a i {
  font-size: 1rem;
  color: var(--color-muted);
}

/* Pàgines filles */
.fills-section {
  border-top: 1px solid var(--color-border);
  background: var(--color-soft);
}

.fills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.fill-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fill-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.fill-card-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-soft);
  flex: 0 0 auto;
}

.fill-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fill-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fill-card-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.fill-card-text {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

.fill-card-cta {
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
  .fills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .fills-grid { grid-template-columns: 1fr; }
  .fill-card { grid-template-columns: 100px minmax(0, 1fr); }
}
