:root {
  --coral: #E8604C;
  --coral-strong: #d44f3c;
  --bg: #faf7f5;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5b646e;
  --line: #efdfdb;
  --shadow: 0 12px 30px rgba(232, 96, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 96, 76, 0.11), rgba(232, 96, 76, 0) 45%),
    radial-gradient(circle at 0% 25%, rgba(232, 96, 76, 0.08), rgba(232, 96, 76, 0) 50%),
    var(--bg);
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
}

.hero {
  text-align: center;
  padding: 1.15rem 1rem 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(232, 96, 76, 0.3);
}

.name {
  margin: 0.9rem 0 0.2rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bio {
  margin: 0 auto;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.socials {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background-color: #fff;
  border-radius: 0.75rem;
  width: 3rem;
  height: 3rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 8px 18px rgba(232, 96, 76, 0.2);
  outline: none;
}

.social-text {
  display: none;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  flex-shrink: 0;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.series {
  margin-top: 1.2rem;
}

.section-title-wrap {
  margin: 0 0 0.8rem;
}

.section-title-wrap h2 {
  margin: 0;
  font-size: 1.23rem;
  letter-spacing: -0.01em;
}

.section-title-wrap p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.series-list {
  display: grid;
  gap: 0.8rem;
}

.series-card {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.05);
}

.series-toggle {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.series-top {
  display: grid;
  grid-template-columns: 102px 1fr auto;
  gap: 0.8rem;
  padding: 0.75rem;
  align-items: center;
}

.series-cover {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: #f0f0f0;
}

.series-meta {
  min-width: 0;
}

.series-meta h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.series-meta p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.series-chevron {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--coral);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: transform 180ms ease;
}

.series-card[data-open="true"] .series-chevron {
  transform: rotate(180deg);
}

.videos {
  margin: 0;
  padding: 0 0.75rem 0.75rem;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.videos[hidden] {
  display: none;
}

.video-item {
  border: 1px solid #f0ebe9;
  background: #fff9f7;
  border-radius: 0.8rem;
  overflow: hidden;
}

.video-item:hover,
.video-item:focus-within {
  border-color: rgba(232, 96, 76, 0.55);
}

.video-toggle,
.video-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  background: #fff9f7;
  color: var(--text);
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color 170ms ease;
}

.video-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.video-episode {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-strong);
}

.video-toggle:hover,
.video-toggle:focus-visible,
.video-link:hover,
.video-link:focus-visible {
  background-color: #fff2ed;
  outline: none;
}

.video-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.video-open-link,
.video-page-link {
  display: inline-block;
  text-decoration: none;
  color: var(--coral-strong);
  font-weight: 700;
  font-size: 0.83rem;
}

.video-page-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background: #fff7f4;
  border: none;
  border-top: 1px solid #f0ebe9;
  padding: 0.62rem 0.8rem;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background-color 170ms ease, color 170ms ease;
}

.video-page-btn:hover,
.video-page-btn:focus-visible {
  background-color: #ffe9e2;
  outline: none;
}

.video-page-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.video-page-btn-badge {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.4rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.video-page-btn-main {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
}

.video-page-btn-title {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--coral-strong);
}

.video-page-btn-subtitle {
  font-size: 0.74rem;
  color: var(--muted);
}

.video-page-btn-arrow {
  color: var(--coral-strong);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Modal de prompts */
.prompts-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 35, 40, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(3px);
}

.prompts-modal[hidden] {
  display: none;
}

.prompts-modal-box {
  background: var(--bg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  border-radius: 1.25rem 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(31, 35, 40, 0.18);
}

.prompts-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.prompts-modal-htitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.prompts-modal-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 170ms ease, color 170ms ease;
}

.prompts-modal-close:hover,
.prompts-modal-close:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
  outline: none;
}

.prompts-modal-body {
  overflow-y: auto;
  padding: 0.85rem 1rem 1.5rem;
  display: grid;
  gap: 1rem;
  max-height: calc(88vh - 70px);
  scrollbar-gutter: stable;
}

.prompt-block {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--card);
  overflow: hidden;
}

.prompt-titulo {
  margin: 0;
  padding: 0.75rem 1rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.prompt-code-wrap {
  position: relative;
}

.prompt-copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 170ms ease;
  z-index: 1;
}

.prompt-copy-btn:hover,
.prompt-copy-btn:focus-visible {
  background: var(--coral-strong);
  outline: none;
}

.prompt-copy-btn--ok {
  background: #2d9e6b;
}

.prompt-markdown {
  margin: 0;
  padding: 0.85rem 1rem;
  padding-right: 5rem;
  padding-bottom: 0.7rem;
  background: #fdf6f4;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.prompt-markdown--collapsed {
  max-height: 10.5rem;
  overflow: hidden;
  position: relative;
}

.prompt-markdown--collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(253, 246, 244, 0), #fdf6f4 75%);
}

.prompt-expand-btn {
  width: 100%;
  border: none;
  border-top: 1px solid var(--line);
  background: #fff8f5;
  color: var(--coral-strong);
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 170ms ease;
}

.prompt-expand-btn:hover,
.prompt-expand-btn:focus-visible {
  background: #ffece6;
  outline: none;
}

.prompt-markdown p {
  margin: 0.35rem 0;
}

.prompt-markdown p:first-child {
  margin-top: 0;
}

.prompt-markdown p:last-child {
  margin-bottom: 0;
}

.prompt-markdown ul {
  margin: 0.45rem 0;
  padding-left: 1.2rem;
}

.prompt-markdown li {
  margin: 0.2rem 0;
}

.prompt-markdown strong {
  color: var(--coral-strong);
}

.prompt-markdown code {
  background: #f2ebe8;
  border-radius: 0.35rem;
  padding: 0.08rem 0.35rem;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.82em;
}

.prompt-markdown a {
  color: var(--coral-strong);
  font-weight: 700;
}

@media (min-width: 720px) {
  .prompts-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .prompts-modal-box {
    border-radius: 1.25rem;
    max-height: 82vh;
  }

  .prompts-modal-body {
    max-height: calc(82vh - 70px);
  }
}
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
}

.video-chevron {
  color: var(--coral);
  font-size: 0.9rem;
  transition: transform 180ms ease;
}

.video-item[data-open="true"] .video-chevron {
  transform: rotate(180deg);
}

.video-panel {
  border-top: 1px solid #f0ebe9;
  padding: 0.6rem;
  display: grid;
  gap: 0.45rem;
  background: #fff;
}

.video-panel[hidden] {
  display: none;
}

.video-embed-wrap {
  width: 100%;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
}

.video-embed {
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  border: 0;
  display: block;
}

@media (min-width: 480px) {
  .video-embed {
    width: min(100%, 340px);
  }
}

@media (min-width: 768px) {
  .video-embed {
    width: min(100%, 390px);
  }
}

@media (min-width: 1200px) {
  .video-embed {
    width: min(100%, 440px);
  }
}

.video-item--soon {
  opacity: 0.6;
}

.video-link--disabled {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: #fff9f7;
  color: var(--muted);
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  cursor: default;
}

.video-platform--soon {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: #eee;
  border-radius: 999px;
  padding: 0.22rem 0.48rem;
  white-space: nowrap;
}

.no-script {
  margin: 0.8rem 0 0;
  color: #7a4f47;
  font-weight: 600;
}

.footer {
  margin-top: 1.3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.copyright {
  margin: 0;
}

.share-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.1rem 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 96, 76, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.share-btn:hover,
.share-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 96, 76, 0.55);
  outline: none;
}

.share-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .page {
    padding: 2rem 1.2rem 1.8rem;
  }

  .hero {
    padding: 1.45rem 1.25rem 1.5rem;
  }

  .social-link {
    border-radius: 999px;
    width: auto;
    height: auto;
    min-height: 2.5rem;
    padding: 0.4rem 1rem;
    gap: 0.55rem;
    font-weight: 600;
    justify-content: flex-start;
  }

  .socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .social-text {
    display: inline;
  }

  .series-top {
    grid-template-columns: 132px 1fr auto;
    padding: 0.9rem;
  }

  .series-cover {
    height: 95px;
  }

  .videos {
    padding: 0 0.9rem 0.9rem;
  }
}