*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #111C2D;
  --white:  #FFFFFF;
  --navy:   #1E2A3A;
  --gold:   #C8A96E;
  --gold-l: #E0C48A;
  --text:   #1E2A3A;
  --gray:   #7A7A7A;
  --card:   #FFFFFF;
  --border: rgba(200,169,110,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(160deg, #0D1826 0%, #1A2B42 40%, #0F2030 70%, #1C1408 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 64px;
}

/* ── Avatar ── */
.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}
.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d4aa6a, var(--gold-l));
  z-index: 0;
}
.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--navy);
  overflow: hidden;
  border: 3px solid transparent;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── Header text ── */
.name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 6px;
}
.name span { color: var(--gold); }

.tagline {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 36px;
}

/* ── Divider ── */
.divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 36px;
}

/* ── Site nav (Inicio / Podcast / Audiolibros / Libros) ── */
.site-nav {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 28px;
}
.site-nav-link {
  flex: 1 1 auto;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  font-size: clamp(0.6rem, 2.6vw, 0.72rem);
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  padding: 10px 5px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.site-nav-link:hover { color: #FFFFFF; }
.site-nav-link.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: var(--navy);
}

/* ── Category tabs ── */
.tabs {
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.tab-btn {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  background: transparent;
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab-btn:hover { border-color: rgba(200,169,110,0.6); color: #FFFFFF; }
.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.tab-panel { width: 100%; max-width: 420px; }

/* ── Video embed ── */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  margin-bottom: 16px;
  background: var(--navy);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Portada en alta resolución: sustituye la miniatura de baja calidad del reproductor de YouTube. */
.video-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: pointer;
}
.video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,0,0,0.72);
  transition: background 0.2s, transform 0.2s;
}
.video-poster-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-poster:hover .video-poster-play,
.video-poster:focus-visible .video-poster-play {
  background: #FF0000;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-poster[hidden],
.video-embed iframe[hidden] { display: none; }

/* ── Video list ── */
.video-list {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.video-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.video-item:hover {
  box-shadow: 0 6px 20px rgba(30,42,58,0.13);
  border-color: rgba(168,132,58,0.45);
  transform: translateY(-2px);
}
.video-item.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,169,110,0.25);
}
.video-item-thumb {
  width: 96px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy);
}
.video-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

/* ── Links container ── */
.links {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Link card ── */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(30,42,58,0.07);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.link-card:hover {
  box-shadow: 0 6px 20px rgba(30,42,58,0.13);
  border-color: rgba(168,132,58,0.45);
  transform: translateY(-2px);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F7F4EF;
  border: 1px solid rgba(200,169,110,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.link-text { flex: 1; }
.link-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.link-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray);
}

.link-arrow {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Section label ── */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  opacity: 1;
  margin-top: 8px;
  margin-bottom: 4px;
  padding-left: 8px;
  border-left: 2px solid var(--gold);
}

/* ── Featured card (top CTA) ── */
.link-card.featured {
  background: var(--navy);
  border-color: rgba(168,132,58,0.4);
  box-shadow: 0 4px 16px rgba(30,42,58,0.15);
}
.link-card.featured .link-title { color: var(--gold-l); }
.link-card.featured .link-sub { color: rgba(245,245,245,0.6); }
.link-card.featured .link-icon { background: rgba(200,169,110,0.12); border-color: rgba(200,169,110,0.25); }
.link-card.featured:hover { background: #253447; }

/* ── Book list (Libros) ── */
.book-list {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.book-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(30,42,58,0.07);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.book-card:hover {
  box-shadow: 0 6px 20px rgba(30,42,58,0.13);
  border-color: rgba(168,132,58,0.45);
  transform: translateY(-2px);
}
.book-cover {
  width: 96px;
  height: 138px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  background: #0D1826;
  border: 1px solid rgba(200,169,110,0.3);
  box-shadow: 0 3px 10px rgba(30,42,58,0.22);
}
.book-info {
  flex: 1;
  min-width: 0;
}
.book-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8A6A2F;
  background: rgba(200,169,110,0.16);
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 6px;
}
.book-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 4px;
}
.book-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.4;
  margin-bottom: 12px;
}
.book-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(200,169,110,0.35);
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}
.book-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(200,169,110,0.45);
}
.book-btn:active { transform: translateY(1px); }

/* ── Footer ── */
.footer {
  margin-top: 48px;
  text-align: center;
}
.footer-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}
.footer-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
}

/* ── WhatsApp floating button ── */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 0 4px rgba(37,211,102,0.15);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 0 6px rgba(37,211,102,0.2);
}
.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}
@media (max-width: 480px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-fab svg {
    width: 27px;
    height: 27px;
  }
}

/* ── Audiobook hero ── */
.audiobook-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  border: 1px solid rgba(168,132,58,0.4);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}
.audiobook-cover {
  width: 88px;
  height: 139px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background: #0D1826;
  border: 1px solid rgba(200,169,110,0.3);
}
.audiobook-meta { flex: 1; }
.audiobook-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.audiobook-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 6px;
}
.audiobook-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
}

/* ── Channel card (podcast) ── */
.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(30,42,58,0.07);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.channel-card:hover {
  box-shadow: 0 6px 20px rgba(30,42,58,0.13);
  border-color: rgba(168,132,58,0.45);
  transform: translateY(-2px);
}
.channel-logo {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F7F4EF;
  border: 1px solid rgba(200,169,110,0.25);
}
.channel-text { flex: 1; min-width: 0; }
.channel-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.channel-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.channel-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 8px;
}
.channel-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

/* ── Audio player ── */
.audio-player {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(30,42,58,0.07);
  margin-bottom: 16px;
}
.audio-player-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}
.audio-player-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.audio-player audio {
  width: 100%;
  display: block;
}

/* ── Chapter list ── */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.chapter-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.chapter-item:hover {
  box-shadow: 0 6px 20px rgba(30,42,58,0.13);
  border-color: rgba(168,132,58,0.45);
  transform: translateY(-2px);
}
.chapter-item.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,169,110,0.25);
}
.chapter-number {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #F7F4EF;
  border: 1px solid rgba(200,169,110,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.chapter-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chapter-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.chapter-meta {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gray);
}
.chapter-play {
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.chapter-empty {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 12px 0;
}

/* ── Spotify embed ── */
.spotify-embed {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}
.spotify-embed iframe { display: block; border: 0; }

@media (max-width: 420px) {
  .site-nav { gap: 3px; padding: 5px; }
  .site-nav-link { padding: 9px 3px; }
  .book-card { gap: 12px; padding: 14px; }
  .book-cover { width: 84px; height: 122px; }
  .book-title { font-size: 0.88rem; }
  .audiobook-cover { width: 76px; height: 120px; }
  .channel-logo { width: 64px; height: 64px; }
}

/* ══════════════════════════════════════════════════════════
   NEWSLETTER
   ══════════════════════════════════════════════════════════ */

.newsletter-card {
  width: 100%;
  max-width: 420px;
  background: var(--navy);
  border: 1px solid rgba(168,132,58,0.45);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.3);
  text-align: center;
}
.newsletter-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.newsletter-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 10px;
}
.newsletter-desc {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin: 0 auto 16px;
}
.newsletter-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.newsletter-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-l);
  border: 1px solid rgba(200,169,110,0.4);
  background: rgba(200,169,110,0.1);
  border-radius: 999px;
  padding: 5px 12px;
}
.newsletter-btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(200,169,110,0.35);
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
}
.newsletter-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 5px 18px rgba(200,169,110,0.45);
  transform: translateY(-1px);
}
.newsletter-note {
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
}
.newsletter-issues {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.newsletter-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.newsletter-point-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #F7F4EF;
  border: 1px solid rgba(200,169,110,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.newsletter-point-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.newsletter-point-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.5;
}
