/* Foguera Patrocinadors — fp-style.css */

.fp-banner {
  display: inline-block;
  position: relative;
  max-width: 100%;
  text-align: center;
}

/* Formatos */
.fp-banner--square    { width: 300px; }
.fp-banner--horizontal{ width: 728px; max-width: 100%; }
.fp-banner--mobile    { width: 320px; max-width: 100%; }

.fp-banner__link {
  display: block;
  text-decoration: none;
  transition: opacity .2s;
}
.fp-banner__link:hover { opacity: .88; }

.fp-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.fp-banner__label {
  display: block;
  font-size: 10px;
  color: #9CA3AF;
  text-align: right;
  margin-top: 3px;
  letter-spacing: .04em;
  font-family: sans-serif;
}

/* Wrapper inline (entre contenido del blog) */
.fp-inline-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
  margin: 24px 0;
  clear: both;
}

/* Banner footer */
.fp-footer-banner {
  display: flex;
  justify-content: center;
  padding: 20px 16px;
}

/* Responsive: ocultar desktop en móvil y viceversa */
@media (min-width: 601px) {
  .fp-banner--mobile { display: none; }
}
@media (max-width: 600px) {
  .fp-banner--horizontal { display: none; }
  .fp-banner--square     { width: 100%; max-width: 300px; }
}

/* Editor preview */
.fp-editor-preview {
  border: 1px dashed #CBD5E0;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: #F8F9FA;
  font-family: sans-serif;
  color: #4A5568;
  font-size: 13px;
}

/* ── Directori de patrocinadors ──────────────────────────────────────────── */
.fp-directori {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fp-dir-year {
  scroll-margin-top: 80px;
}

.fp-dir-year__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F3F4F6;
}

.fp-dir-year__badge {
  display: inline-block;
  padding: 3px 10px;
  background: #ED1C24;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
}

/* Grid */
.fp-dir-grid {
  display: grid;
  gap: 16px;
}
.fp-dir-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fp-dir-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.fp-dir-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.fp-dir-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow .2s, transform .2s;
}
.fp-dir-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.fp-dir-card--inactiu {
  opacity: .55;
  filter: grayscale(40%);
}
.fp-dir-card--inactiu:hover {
  opacity: .75;
}

/* Logo */
.fp-dir-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  overflow: hidden;
}
.fp-dir-card__logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.fp-dir-card__logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Info */
.fp-dir-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.fp-dir-card__name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.fp-dir-card__name a {
  color: inherit;
  text-decoration: none;
}
.fp-dir-card__name a:hover { color: #ED1C24; }

.fp-dir-card__inactive-badge {
  display: inline-block;
  padding: 1px 6px;
  background: #F3F4F6;
  color: #9CA3AF;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fp-dir-card__anys {
  margin: 0;
  font-size: 11px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.fp-dir-card__anys svg { flex-shrink: 0; }

.fp-dir-empty {
  text-align: center;
  padding: 40px;
  color: #9CA3AF;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .fp-dir-grid--cols-3,
  .fp-dir-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .fp-dir-grid--cols-2,
  .fp-dir-grid--cols-3,
  .fp-dir-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .fp-dir-year__title { font-size: 1.3rem; }
}
