:root {
  --pepg-bg-card: #201a3c;
  --pepg-disk-outer: #ea1b5c;
  --pepg-disk-inner: #c0a74f;
  --pepg-text-main: #ffffff;
  --pepg-text-muted: #ccccd5;
  --pepg-radius-card: 48px;
  --pepg-font-title: 'Filson Pro', 'Outfit', system-ui, sans-serif;
  --pepg-font-body: 'Filson Pro', 'Inter', system-ui, sans-serif;
}

.pepg-wrapper {
  font-family: var(--pepg-font-body);
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.pepg-section-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .pepg-section-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.pepg-section-title {
  font-family: var(--pepg-font-title);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #1a1835;
  line-height: 1.1;
  max-width: 45%;
  margin: 0;
}

.pepg-section-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 450px;
}

.pepg-section-desc {
  font-size: 1.125rem;
  color: #4a4a5a;
  margin: 0;
  line-height: 1.5;
}

.pepg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #1a1835;
  border-radius: 8px;
  color: #1a1835;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  background: transparent;
  font-family: var(--pepg-font-title);
}

.pepg-cta-btn:hover {
  background: #1a1835;
  color: #ffffff;
}

.pepg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .pepg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pepg-card {
  background: var(--pepg-bg-card);
  border-radius: var(--pepg-radius-card);
  padding: 28px;
  display: flex;
  flex-direction: row;
  align-items: center; /* Alineación central previene deformación en altos */
  gap: 28px;
  color: var(--pepg-text-main);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .pepg-card {
      flex-direction: column;
      border-radius: 32px;
      text-align: center;
      padding: 24px;
      gap: 20px;
  }
  .pepg-meta, .pepg-stats {
      align-items: center;
      justify-content: center;
  }
  .pepg-actions {
      flex-direction: column;
      gap: 16px;
      width: 100%;
  }
  .pepg-subscribe-btn {
      width: 100%;
  }
}

.pepg-disk-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pepg-disk {
  width: clamp(130px, 15vw, 150px);
  height: clamp(130px, 15vw, 150px);
  flex-shrink: 0; /* Importantísimo para que no se deforme/achate el disco circular */
  border-radius: 50%;
  background: var(--pepg-disk-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 4px solid var(--pepg-disk-outer);
  box-sizing: border-box;
}

.pepg-disk-text-top, .pepg-disk-text-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 16px;
  box-sizing: border-box;
}

.pepg-disk-text-top { top: 16px; }
.pepg-disk-text-bottom { bottom: 16px; }

.pepg-waves-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.85);
  z-index: 1; /* Below the play button */
  pointer-events: none; /* Let clicks pass to the button below */
}

.pepg-waves-center rect {
  transform-origin: center;
  transition: transform 0.05s ease-out; /* Fast reaction for audio sync */
}

.pepg-disk-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pepg-disk-inner);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pepg-disk-inner:hover {
  transform: scale(1.05);
}

.pepg-play-icon, .pepg-pause-icon {
  width: 24px;
  height: 24px;
  fill: var(--pepg-disk-outer);
}

.pepg-play-icon { margin-left: 4px; }

.pepg-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.pepg-title {
  font-family: var(--pepg-font-title);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  color: var(--pepg-text-main);
  line-height: 1.3;
}
.pepg-title a { color: inherit; text-decoration: none; }

.pepg-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--pepg-text-muted);
}

.pepg-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pepg-meta-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pepg-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
  width: 100%;
}

.pepg-stats {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

.pepg-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
}

.pepg-stat:hover { color: var(--pepg-text-main); }

.pepg-subscribe-btn {
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 99px;
  background: transparent;
  color: var(--pepg-text-main);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pepg-subscribe-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.pepg-audio-element {
  display: none;
}
