.sup-page {
  max-width: 860px;
  margin: 90px auto 60px;
  padding: 0 20px;
  font-family: 'Messina Sans', sans-serif;
  color: #1F242F;
}

/* Breadcrumb */
.sup-breadcrumb {
  font-size: .8rem;
  color: #aaa;
  margin-bottom: 28px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.sup-breadcrumb a {
  color: #649733;
  text-decoration: none;
}
.sup-breadcrumb a:hover { text-decoration: underline; }

/* Cabecera */
.sup-header {
  display: flex;
  gap: 32px;
  align-items: stretch;
  flex-wrap: wrap;
}

.sup-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: space-between;
}

/* Indicado para — banda entre header y acordeón */
.sup-cats {
  margin: 8px 0 8px;
}
.sup-cats-label {
  display: inline;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  font-family: 'DM Mono', monospace;
  margin: 0;
}
.sup-cats > .sup-cats-label,
.sup-cats > h1.sup-cats-label,
.sup-cats > p.sup-cats-label {
  display: inline;
}
.sup-cats-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.sup-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 90px;
}
/* Variante enlazable: hereda el mismo aspecto visual, añade comportamiento de link */
a.sup-cat-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity .15s, transform .15s;
}
a.sup-cat-item--link:hover {
  opacity: .8;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  a.sup-cat-item--link:hover { transform: none; }
}
.sup-cat-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}
/* picture wrapper hereda el centrado del item */
.sup-cat-item picture {
  display: flex;
  justify-content: center;
}
.sup-cat-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F242F;
  margin-top: -20px;
  line-height: 1.3;
}
.sup-cat-sub {
  font-size: 14px;
  color: #999;
  line-height: 1.2;
}
.sup-hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.sup-h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1F242F;
  line-height: 1.15;
  margin: 0;
}
.sup-grupo {
  font-size: .9rem;
  color: #666;
}
.sup-score-back {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.sup-score-wrap {
  display: flex;
  align-items: center;
}
.sup-score-ring {
  display: block;
  overflow: visible;
}
.sup-score-arc {
  animation: score-fill 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
@keyframes score-fill {
  to { stroke-dashoffset: var(--score-offset); }
}
.sup-ring-num {
  font-size: 20px;
  font-weight: 900;
  font-family: 'Messina Sans', sans-serif;
}
.sup-ring-label {
  font-size: 9px;
  fill: #aaa;
  font-family: 'DM Mono', monospace;
}

/* ── Acordeón ──────────────────────────────────────────────── */
.acc-list { margin: 0; }

.acc-item {
  position: relative;
  border-bottom: 1px solid #e8e4de;
}
.acc-item:first-child { border-top: 1px solid #e8e4de; }

/* Barra lateral que crece desde arriba al abrirse */
.acc-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #b5e05a, #649733);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.acc-item--open::before { transform: scaleY(1); }

/* Botón disparador */
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 8px 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: background 0.2s;
  transform: none;  /* anula translateY(-1px) global de main.css */
  opacity: 1;
}
.acc-trigger:hover  { background: rgba(100, 151, 51, 0.04); transform: none; opacity: 1; }
.acc-trigger:active { transform: none; opacity: 1; }
.acc-trigger:focus-visible {
  outline: 2px solid #649733;
  outline-offset: -2px;
}

/* Icono de sección */
.acc-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f3f0eb;
  color: #b0a99f;
  transition: background 0.3s, color 0.3s;
}
.acc-num svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.acc-item--open .acc-num {
  background: #eaf3d8;
  color: #649733;
}

/* Título */
.acc-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1F242F;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.acc-item--open .acc-label { color: #649733; }

/* Chevron */
.acc-chevron {
  flex-shrink: 0;
  color: #c5c0b8;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
  will-change: transform;
}
.acc-item--open .acc-chevron {
  transform: rotate(180deg);
  color: #649733;
}

/* Panel: animación de altura via max-height */
.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-item--open .acc-panel { max-height: 2000px; }

.acc-body {
  padding: 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: #444;
}
.acc-item--open .acc-body { padding-bottom: 26px; }

/* Contenido: fade + slide con retardo para que espere a que el panel abra */
.acc-body > * {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease 0.18s, transform 0.3s ease 0.18s;
}
.acc-item--open .acc-body > * {
  opacity: 1;
  transform: translateY(0);
}
.acc-body p  { margin-bottom: 10px; }
.acc-body ul { padding-left: 20px; }
.acc-body li { margin-bottom: 6px; }

.acc-body a {
  color: #649733;
  text-decoration: underline;
  text-decoration-color: rgba(100,151,51,.35);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color .18s, text-decoration-color .18s;
}
.acc-body a:hover {
  color: #4f7828;
  text-decoration-color: #4f7828;
}

/* Relacionados */
.sup-relacionados {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}
.sup-relacionados h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #649733;
  margin-bottom: 18px;
}
.sup-rel-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.sup-rel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1F242F;
  width: 110px;
  text-align: center;
  transition: color .18s;
}
.sup-rel-card:hover { color: #649733; }
.sup-rel-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
}
.sup-rel-card span {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
}
.sup-rel-card em {
  font-size: .75rem;
  color: #649733;
  font-style: normal;
}

/* Back btn */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #ddd;
  color: #888;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s, color .18s;
  font-family: 'DM Mono', monospace;
  align-self: flex-start;
  white-space: nowrap;
  margin-left: auto;
}
.back-btn:hover { border-color: #649733; color: #649733; }

/* ── Responsive header (≤ 540px): imagen arriba, info abajo ── */
@media (max-width: 540px) {
  .sup-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .sup-hero-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
    align-self: center;
  }

  .sup-header-info {
    width: 100%;
  }

  /* back-btn: mantiene margin-left: auto para pegarse a la derecha */
}

/* ── Botón favorito en detalle de suplemento ──────────────────── */
.sup-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(245, 242, 238, .92);
  border: 1px solid rgba(0, 0, 0, .1);
  color: #bbb;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .18s, background .18s, border-color .18s, transform .15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sup-fav-btn:hover {
  color: #e05a5a;
  border-color: rgba(224, 90, 90, .3);
  background: rgba(255, 240, 240, .92);
}
.sup-fav-btn.active {
  color: #e05a5a;
  background: rgba(255, 235, 235, .95);
  border-color: rgba(224, 90, 90, .35);
}
.sup-fav-btn.active svg { fill: #e05a5a; }
.sup-fav-btn:active { transform: scale(.88); }
@media (prefers-reduced-motion: reduce) {
  .sup-fav-btn { transition: none; }
  .sup-fav-btn:active { transform: none; }
}
/* Landscape móvil estrecho: botón ya tiene min 44px, no hace falta ajuste adicional */

/* ── CTA Comunidad (Opción A) ── */
.sup-cta-comunidad {
  margin: 28px 0 8px;
  padding: 14px 18px;
  border-left: 3px solid #d4a853;
  background: rgba(212,168,83,.07);
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: #8a7e6e;
  line-height: 1.55;
}
.sup-cta-comunidad a {
  color: #d4a853;
  text-decoration: none;
  font-weight: 600;
}
.sup-cta-comunidad a:hover { text-decoration: underline; }
}