/*
Theme Name: SomBarberà Child
Template: blocksy
*/

/* ============================================
   GOOGLE FONTS (local, servit per Blocksy Pro)
   ============================================ */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap'); */

/* ============================================
   GLOBALS — Paleta de colors accessible + sistema
   ============================================ */
:root {
  --theme-palette-color-1: #0f4c81;
  --theme-palette-color-2: #0d3d6b;
  --theme-palette-color-3: #3a4f66;
  --theme-palette-color-4: #1a1a2e;
  --theme-palette-color-5: #e8f0fe;
  --theme-palette-color-6: #f2f5f7;
  --theme-palette-color-7: #f8f9fa;
  --theme-palette-color-8: #ffffff;
  --sb-accent: #b45309;
  --sb-accent-hover: #92400e;
  --sb-success: #2d6a4f;
  --theme-border-color: #e5e7eb;

  /* Espaiat modular (8px base) */
  --sb-space-1: 8px;
  --sb-space-2: 16px;
  --sb-space-3: 24px;
  --sb-space-4: 32px;
  --sb-space-5: 48px;
  --sb-space-6: 64px;
  --sb-space-7: 80px;
  --sb-space-8: 120px;

  /* Botons */
  --sb-btn-radius: 8px;
  --sb-btn-font: 600 1em/1.4 Inter, sans-serif;
  --sb-btn-py: 12px;
  --sb-btn-px: 28px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--theme-palette-color-3);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--theme-palette-color-4);
}

a {
  transition: color 0.2s ease;
}

a:focus-visible {
  outline: 2px solid var(--theme-palette-color-1);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   SISTEMA DE BOTONS — accessible
   ============================================ */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sb-btn-py) var(--sb-btn-px);
  border-radius: var(--sb-btn-radius);
  font: var(--sb-btn-font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
}

.sb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sb-btn:focus-visible {
  outline: 2px solid var(--theme-palette-color-1);
  outline-offset: 2px;
}

.sb-btn:active {
  transform: scale(0.97);
}

/* Primary */
.sb-btn-primary {
  background: var(--theme-palette-color-1);
  color: #fff !important;
  border-color: var(--theme-palette-color-1);
}

.sb-btn-primary:hover {
  background: var(--theme-palette-color-2);
  border-color: var(--theme-palette-color-2);
  color: #fff !important;
}

/* Outline */
.sb-btn-outline {
  background: transparent;
  color: var(--theme-palette-color-1) !important;
  border-color: var(--theme-palette-color-1);
}

.sb-btn-outline:hover {
  background: var(--theme-palette-color-5);
  color: var(--theme-palette-color-1) !important;
}

/* Accent */
.sb-btn-accent {
  background: var(--sb-accent);
  color: #fff !important;
  border-color: var(--sb-accent);
}

.sb-btn-accent:hover {
  background: var(--sb-accent-hover);
  border-color: var(--sb-accent-hover);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

/* Ghost */
.sb-btn-ghost {
  background: transparent;
  color: var(--theme-palette-color-1) !important;
  border-color: transparent;
}

.sb-btn-ghost:hover {
  background: var(--theme-palette-color-5);
  color: var(--theme-palette-color-1) !important;
}

/* White outline (sobre fons fosc) */
.sb-btn-white-outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.6);
}

.sb-btn-white-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

/* ============================================
   HEADER — estil personalitzat
   ============================================ */
[data-header*="type-1"] .ct-header {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-branding .site-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================
   FOOTER — estil personalitzat
   ============================================ */
.ct-footer {
  background: var(--theme-palette-color-4);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}

.ct-footer .widget-title {
  color: #fff;
  font-size: 1.05em;
  margin-bottom: 16px;
}

.ct-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.ct-footer a:hover {
  color: #fff;
}

.ct-footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85em;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.entries-header,
.page-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
}

.entries-header h1,
.page-header h1 {
  margin-bottom: 8px;
}

.ct-description,
.page-description {
  font-size: 1.1em;
  color: var(--theme-palette-color-3, #3a4f66);
  line-height: 1.6;
}

/* ============================================
   FILTER BAR
   ============================================ */
.ct-filter-bar {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875em;
  color: #3a4f66;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--theme-palette-color-1);
  color: var(--theme-palette-color-1);
  background: #e8f0fe;
}

.filter-pill.active {
  background: #0f4c81;
  color: #fff;
  border-color: var(--theme-palette-color-1);
}

.filter-count {
  font-size: 0.8em;
  opacity: 0.65;
}

.filter-pill.active .filter-count {
  opacity: 0.85;
}

/* ============================================
   ENTITIES GRID (archive listing)
   ============================================ */
.entities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 992px) {
  .entities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .entities-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — Hero, Features, CTA
   ============================================ */
.sombarbera-hp {
  --sb-primary: #0f4c81;
  --sb-accent: #f59e0b;
  --sb-neutral: #f8f9fa;
  --sb-dark: #1a1a2e;
  --sb-radius: 12px;
}

/* --- Hero --- */
.sombarbera-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f4c81 30%, #1565a0 60%, #1e7eb3 100%);
  padding: 96px 0 72px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.sombarbera-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(21, 101, 160, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.015) 40px,
      rgba(255, 255, 255, 0.015) 41px
    );
  pointer-events: none;
}

.sombarbera-hero-inner {
  position: relative;
  z-index: 1;
}

.sombarbera-hero-title {
  font-size: 3.2em;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  color: #fff !important;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25), 0 1px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.sombarbera-hero-subtitle {
  font-size: 1.2em;
  max-width: 640px;
  margin: 0 auto 32px;
  color: #fff !important;
  opacity: 0.95;
  line-height: 1.7;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
}

.sombarbera-hero-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sombarbera-hero-subtitle {
  font-size: 1.15em;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.7;
}

.sombarbera-hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.sombarbera-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sombarbera-btn-primary {
  background: #fff;
  color: var(--theme-palette-color-1);
}

.sombarbera-btn-primary:hover {
  background: #e8f0fe;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sombarbera-btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}

.sombarbera-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.sombarbera-btn-accent {
  background: #f59e0b;
  color: var(--theme-palette-color-4);
}

.sombarbera-btn-accent:hover {
  background: #e08f0a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* --- Section titles --- */
.sombarbera-section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8em;
  font-weight: 700;
}

/* --- Feature cards --- */
.sombarbera-features {
  padding: 60px 0;
  background: #f8f9fa;
}

.sombarbera-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sb-space-3);
}

.sombarbera-feature-card {
  background: #fff;
  padding: 32px 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sombarbera-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-palette-color-1);
}

.sombarbera-feature-icon {
  font-size: 2.4em;
  display: block;
  margin-bottom: 12px;
}

.sombarbera-feature-title {
  font-size: 1.1em;
  margin-bottom: 6px;
  color: var(--theme-palette-color-4);
}

.sombarbera-feature-desc {
  font-size: 0.88em;
  color: #6b7280;
  line-height: 1.5;
}

/* --- Featured entities grid --- */
.sombarbera-featured {
  padding: 60px 0;
}

.sombarbera-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sb-space-3);
}

/* --- Entity card (reusable) --- */
.sombarbera-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sombarbera-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sombarbera-card-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.sombarbera-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sombarbera-card:hover .sombarbera-card-image img {
  transform: scale(1.05);
}

.sombarbera-card-body {
  padding: var(--sb-space-2) var(--sb-space-3) var(--sb-space-3);
}

.sombarbera-card-title {
  font-size: 1.05em;
  margin-bottom: 6px;
}

.sombarbera-card-title a {
  text-decoration: none;
  color: var(--theme-palette-color-4);
}

.sombarbera-card-title a:hover {
  color: var(--theme-palette-color-1);
}

.sombarbera-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sb-space-2);
}

.sombarbera-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.78em;
  background: #e8f0fe;
  color: var(--theme-palette-color-1);
  border-radius: 10px;
}

.sombarbera-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85em;
  color: #6b7280;
}

.sombarbera-meta-icon {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- CTA center --- */
.sombarbera-cta-center {
  text-align: center;
  margin-top: var(--sb-space-4);
}

/* --- CTA section --- */
.sombarbera-cta {
  padding: 64px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f4c81 100%);
}

.sombarbera-cta-inner {
  text-align: center;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.sombarbera-cta-title {
  font-size: 1.8em;
  margin-bottom: 12px;
  color: #fff !important;
}

.sombarbera-cta-text {
  font-size: 1.05em;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
  color: #fff !important;
}

/* ============================================
   CARDS (empresa / entry)
   ============================================ */
.empresa-card,
.entry-card {
  background: #fff;
  border: 1px solid var(--theme-border-color, #e0e0e0);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.empresa-card:hover,
.entry-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.empresa-card .ct-image-container,
.entry-card .ct-image-container {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.empresa-card .entry-title,
.entry-card .entry-title {
  margin-bottom: 8px;
  font-size: 1.15em;
}

.empresa-card .entry-title a,
.entry-card .entry-title a {
  text-decoration: none;
  color: var(--theme-headings-color, #222);
  transition: color 0.2s ease;
}

.empresa-card .entry-title a:hover,
.entry-card .entry-title a:hover {
  color: var(--theme-palette-color-1, #2872fa);
}

.entry-excerpt {
  font-size: 0.9em;
  color: var(--theme-palette-color-3, #3a4f66);
  line-height: 1.6;
}

/* ============================================
   EMPRESA META (cards)
   ============================================ */
.empresa-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85em;
}

.meta-item {
  display: inline-block;
  padding: 3px 10px;
  background: var(--theme-palette-color-6, #f2f5f7);
  border-radius: 6px;
  color: var(--theme-palette-color-3, #3a4f66);
}

.meta-item a {
  color: var(--theme-palette-color-1, #2872fa);
  text-decoration: none;
}

.meta-item a:hover {
  text-decoration: underline;
}

.meta-item.meta-adreca {
  background: var(--theme-palette-color-6, #f2f5f7);
}

/* ============================================
   SINGLE ENTITY (empresa / comercio)
   ============================================ */

/* Hero */
.entity-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.entity-hero-logo {
  flex-shrink: 0;
  max-width: 200px;
}

.entity-hero-logo img {
  border-radius: 12px;
}

.entity-hero-info h1 {
  margin-bottom: 8px;
}

.entity-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sombarbera-tag-secondary {
  background: #fef3c7;
  color: #92400e;
}

/* 2-column layout */
.entity-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.entity-content {
  line-height: 1.8;
}

/* Contact card */
.entity-contact-card {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.entity-contact-card h3 {
  margin-bottom: 16px;
  font-size: 1.1em;
}

.contact-list {
  margin: 0;
}

.contact-item {
  margin-bottom: 14px;
}

.contact-item dt {
  font-size: 0.75em;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.contact-item dd {
  margin: 0;
  font-size: 0.95em;
}

.contact-item a {
  color: var(--theme-palette-color-1);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Social section */
.entity-social {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.entity-social h4 {
  margin-bottom: var(--sb-space-2);
  font-size: 0.9em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85em;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.social-fb { background: #1877f2; }
.social-ig { background: #e4405f; }
.social-li { background: #0a66c2; }
.social-tw { background: #1da1f2; }
.social-tt { background: #000; }

/* Responsive */
@media (max-width: 768px) {
  .entity-hero {
    flex-direction: column;
  }

  .entity-layout {
    grid-template-columns: 1fr;
  }

  .entity-hero-logo {
    max-width: 150px;
  }
}

/* ============================================
   SINGLE POST (blog)
   ============================================ */
.entry-meta {
  margin-bottom: 16px;
  font-size: 0.9em;
  color: var(--theme-palette-color-3, #3a4f66);
}

.entry-meta time {
  color: var(--theme-palette-color-2, #666);
}

.entry-image {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.entry-content {
  line-height: 1.8;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404-container {
  text-align: center;
  padding: 80px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.error-404-icon {
  font-size: 4em;
  margin-bottom: 16px;
  display: block;
}

.error-404-container h1 {
  font-size: 1.8em;
  margin-bottom: 12px;
}

.error-404-container p {
  color: var(--theme-palette-color-3, #3a4f66);
  margin-bottom: 24px;
  font-size: 1.05em;
}

.error-404-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.error-404-links a {
  padding: 10px 24px;
  background: var(--theme-palette-color-1, #2872fa);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.error-404-links a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.error-404-search {
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.ct-pagination {
  margin-top: var(--sb-space-4);
  text-align: center;
}

.ct-pagination a {
  padding: 8px 16px;
  border: 1px solid var(--theme-border-color, #e0e0e0);
  border-radius: 8px;
  text-decoration: none;
  color: var(--theme-palette-color-3, #3a4f66);
  margin: 0 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ct-pagination a:hover {
  border-color: var(--theme-palette-color-1, #2872fa);
  color: var(--theme-palette-color-1, #2872fa);
}

/* ============================================
   SVG ICONS
   ============================================ */
.sb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.sb-icon svg {
  display: block;
}

.sombarbera-feature-icon svg,
.sombarbera-feature-icon img {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
  opacity: 0.85;
}

.sombarbera-feature-icon img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(950%) hue-rotate(186deg);
}

.sombarbera-meta-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: #4b5563;
  line-height: 1.4;
}

.sombarbera-meta-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #6b7280;
}

.sombarbera-meta-icon a {
  color: var(--theme-palette-color-1);
  text-decoration: none;
}

.sombarbera-meta-icon a:hover {
  text-decoration: underline;
}

/* ============================================
   STATS BAR
   ============================================ */
.sombarbera-stats {
  background: #1a1a2e;
  padding: 32px 0;
}

.sombarbera-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.sombarbera-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sombarbera-stat-num {
  font-size: 1.6em;
  font-weight: 700;
  color: #fff;
}

.sombarbera-stat-label {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sombarbera-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sb-accent);
  flex-shrink: 0;
}

/* ============================================
   CARD PLACEHOLDER (quan no hi ha imatge)
   ============================================ */
.sombarbera-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.sombarbera-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sombarbera-card:hover .sombarbera-card-image img {
  transform: scale(1.05);
}

.sombarbera-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #e8f0fe;
  color: var(--theme-palette-color-1);
}

.sombarbera-card-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

/* ============================================
   FOCUS STATES — Accessibilitat teclat
   ============================================ */
.sombarbera-card:focus-visible,
.sombarbera-feature-card:focus-visible,
.filter-pill:focus-visible {
  outline: 2px solid var(--theme-palette-color-1);
  outline-offset: 2px;
}

/* ============================================
   TRANSITIONS UNIFORMES
   ============================================ */
.sombarbera-card,
.sombarbera-feature-card,
.sombarbera-card-image,
.entry-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-pill {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ============================================
   STICKY SIDEBAR (contact card)
   ============================================ */
.entity-contact-card {
  position: sticky;
  top: 100px;
}

.entity-single-wrapper {
  padding-top: var(--sb-space-4);
}

/* Secondary filter bar (sector) */
.ct-filter-bar-secondary {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .entity-contact-card {
    position: static;
  }
}
@media (max-width: 992px) {
  .sombarbera-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sombarbera-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .entity-hero {
    flex-direction: column;
  }

  .entity-layout {
    grid-template-columns: 1fr;
  }

  .entity-hero-logo {
    max-width: 150px;
  }

  .error-404-container {
    padding: 40px 20px;
  }

  .sombarbera-hero {
    padding: 56px 0 44px;
  }

  .sombarbera-hero-title {
    font-size: 2em;
  }

  .sombarbera-hero-subtitle {
    font-size: 1em;
  }

  .sombarbera-features-grid {
    grid-template-columns: 1fr;
  }

  .sombarbera-featured-grid {
    grid-template-columns: 1fr;
  }

  .sombarbera-stats-bar {
    gap: 16px;
  }

  .sombarbera-stat-num {
    font-size: 1.2em;
  }
}
