/* ================================================================
   Ficha de evento — diseño B del rediseño (cartel + datos)
================================================================ */

.ficha { max-width: 1240px; margin: 0 auto; padding: 20px 24px 64px; }

.ficha-notice {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600;
}
.ficha-notice.is-warning { background: rgba(245,158,11,.14); color: #B45309; }
:root[data-theme="dark"] .ficha-notice.is-warning { color: #FBBF24; }

.ficha-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.ficha-crumbs a { color: var(--mid); }
.ficha-crumbs a:hover { color: var(--text); }

.ficha-main { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }

/* Cartel entero, sin recortar */
.ficha-poster {
  flex: 1 1 420px; min-width: 0; max-width: 520px;
  background: var(--poster-bg); border-radius: 28px; padding: 32px;
  display: flex; justify-content: center;
}
.ficha-poster img {
  display: block; max-width: 100%; max-height: 600px; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 18px 40px rgba(15,23,42,.18);
}
.ficha-cover {
  width: 100%; aspect-ratio: 4 / 5; max-height: 560px; border-radius: 18px;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 28px;
}
.ficha-cover-cat { font-size: 22px; font-weight: 700; }

.ficha-info { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }

.ficha-when { display: flex; gap: 18px; align-items: center; }
.ficha-when-text { display: flex; flex-direction: column; gap: 4px; }
.ficha-cats { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.ficha-cats a { color: inherit; }
.ficha-rel { font-size: 15px; color: var(--mid); }

.ficha-title { margin: 0; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }

.ficha-facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; border-top: 1px solid var(--border); }
.ficha-facts dt { font-size: 14px; font-weight: 600; color: var(--muted); padding: 16px 0; border-bottom: 1px solid var(--border); }
.ficha-facts dd { margin: 0; font-size: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.ficha-facts .is-soft { color: var(--muted); }
.ficha-facts a { color: var(--accent-text); font-weight: 600; }
.ficha-org { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; }
.ficha-org-logo {
  width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex: none;
  display: grid; place-items: center; background: var(--bg-3); color: var(--accent-text); font-weight: 700;
}
.ficha-org-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Acciones */
.ficha-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ficha-btn {
  font: inherit; font-size: 16px; font-weight: 600; min-height: 56px; padding: 0 24px;
  border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; border: 0;
}
.ficha-btn-going { background: var(--going); color: #fff; }
.ficha-btn-going[aria-pressed="true"] { background: #1E40AF; }
.ficha-btn-like { background: transparent; color: var(--accent-text); border: 2px solid var(--accent-text); }
.ficha-btn-like[aria-pressed="true"] { background: var(--accent-soft); }
.ficha-btn-like[aria-pressed="true"] svg { fill: currentColor; }
.ficha-like-count:empty { display: none; }
.ficha-icon-btn {
  width: 56px; height: 56px; border-radius: 18px; flex: none;
  border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}

.ficha-people { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin: 0; }
.ficha-avatars { display: flex; }
.ficha-avatars a { margin-left: -8px; }
.ficha-avatars a:first-child { margin-left: 0; }
.ficha-avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
}

.ficha-desc h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.ficha-desc p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--mid); }

/* Relacionados */
.ficha-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.ficha-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ficha-related-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.ficha-related-head a { font-weight: 600; font-size: 15px; color: var(--accent-text); }
.ficha-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ficha-related-card {
  display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
}
.ficha-related-card:hover { border-color: var(--border-light); }
.ficha-related-thumb {
  width: 88px; height: 88px; flex: none; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.ficha-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ficha-related-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ficha-related-text small { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.ficha-related-text strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.ficha-related-text span { font-size: 14px; color: var(--muted); }

/* Móvil: la barra de acciones sustituye a la barra de navegación */
@media (max-width: 768px) {
  .ficha { padding: 12px 16px 120px; }
  .ficha-main { gap: 24px; }
  .ficha-poster { padding: 20px; border-radius: 22px; }
  .ficha-poster img { max-height: 300px; }
  .ficha-cover { aspect-ratio: auto; height: 260px; }
  .cal-tile { width: 60px; border-radius: 14px; }
  .cal-tile-mon { font-size: 12px; padding: 3px 0; }
  .cal-tile-day { font-size: 26px; padding: 6px 0 8px; }
  .cal-tile-dow { display: none; }

  body.has-action-bar .bottom-nav { display: none; }
  body.has-action-bar { padding-bottom: 0; }
  .ficha-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; flex-wrap: nowrap; gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-card); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15,23,42,.06);
  }
  .ficha-actions .ficha-btn { min-height: 52px; border-radius: 16px; padding: 0 16px; }
  .ficha-actions .ficha-btn-going { order: 4; flex: 1; }
  .ficha-actions .ficha-btn-like { order: 3; width: 52px; padding: 0; }
  .ficha-actions .ficha-btn-like .ficha-btn-label,
  .ficha-actions .ficha-like-count { display: none; }
  .ficha-actions .ficha-icon-btn { width: 52px; height: 52px; border-radius: 16px; }
}
