/* Territorio Bitcoin — hoja única. Fuentes del sistema, paleta naranja del logo. */
:root {
  --orange: #f7931a;
  --orange-2: #e8590c;
  --yellow: #ffc21a;
  --blue: #1f4e9e;
  --bg: #fffaf3;
  --bg-alt: #fff1de;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #6b5f55;
  --line: #f1dcc2;
  --yt: #e62117;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(80, 40, 0, .06), 0 8px 24px rgba(80, 40, 0, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-2); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font: 900 clamp(1.8rem, 4vw, 2.6rem)/1.05 var(--font-display); }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.eyebrow { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.2rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--sm { padding: .45rem 1rem; font-size: .9rem; }
.btn--brand { background: linear-gradient(180deg, var(--yellow), var(--orange) 45%, var(--orange-2)); color: #fff; text-shadow: 0 1px 1px rgba(120,40,0,.35); box-shadow: 0 4px 14px rgba(232,89,12,.35); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--yt { background: var(--yt); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--ink); }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.brand b { color: var(--orange-2); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--orange-2); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } .brand span { display: none; } }

/* Portada */
.hero { background:
  radial-gradient(1200px 500px at 85% -10%, rgba(255,194,26,.35), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(232,89,12,.18), transparent 60%), var(--bg); }
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 6vw, 72px); }
.hero__logo img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(232,89,12,.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero__logo img { animation: none; } html { scroll-behavior: auto; } }
.hero h1 { font: 900 clamp(2.1rem, 5.2vw, 3.8rem)/1.02 var(--font-display); margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--orange-2); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 1.2rem; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.stats b { display: block; font: 900 1.8rem/1 var(--font-display); color: var(--orange-2); }
.stats span { font-size: .85rem; color: var(--muted); }
.subscribe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; text-align: left; }
  .hero__logo img { max-width: 230px; }
}

/* Último episodio */
.latest { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 128px; }
.latest__skeleton { grid-column: 1 / -1; color: var(--muted); }
.latest img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.latest__tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.latest h3 { font-size: 1.1rem; margin: 0 0 6px; }
.latest__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
@media (max-width: 480px) { .latest { grid-template-columns: 64px 1fr; } .latest img { width: 64px; height: 64px; } }

/* Secciones */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.filters { display: flex; gap: 10px; flex: 1 1 380px; max-width: 560px; }
.filters input, .filters select { padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); min-width: 0; }
.filters input { flex: 1; }
.filters input:focus, .filters select:focus { border-color: var(--orange); outline: none; }
.results { color: var(--muted); font-size: .9rem; margin: 0 0 12px; min-height: 1.4em; }

/* Lista de episodios */
.episodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ep { display: grid; grid-template-columns: auto 72px 1fr; gap: 16px; align-items: start; padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.ep:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.ep.is-playing { border-color: var(--orange-2); box-shadow: 0 0 0 2px var(--orange) inset; }
.ep img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--bg-alt); }
.ep h3 { font-size: 1.05rem; margin: 0 0 4px; }
.ep__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.ep__desc { margin: 0; color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep.is-open .ep__desc { -webkit-line-clamp: unset; display: block; white-space: pre-line; }
.ep__actions { display: flex; gap: 14px; margin-top: 8px; font-size: .85rem; }
.ep__actions button, .ep__actions a { background: none; border: 0; padding: 0; cursor: pointer; color: var(--orange-2); font-weight: 700; text-decoration: none; }
.ep__actions button:hover, .ep__actions a:hover { text-decoration: underline; }
.ep mark { background: rgba(255,194,26,.5); color: inherit; border-radius: 3px; }
@media (max-width: 560px) { .ep { grid-template-columns: auto 1fr; } .ep img { display: none; } }

.play { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; flex: none; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--yellow), var(--orange) 50%, var(--orange-2)); box-shadow: 0 4px 12px rgba(232,89,12,.35); transition: transform .15s; }
.play:hover { transform: scale(1.06); }
.play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.is-playing .play::before, .play.is-on::before { margin: 0; width: 14px; height: 16px; border: 0; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.latest .play { width: 60px; height: 60px; }
.more { text-align: center; margin-top: 24px; }

/* Vídeos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.video { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.video:first-child { grid-column: span 2; }
@media (max-width: 620px) { .video:first-child { grid-column: auto; } }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 0; padding: 0; cursor: pointer; width: 100%; display: block; }
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.video__frame:hover img { opacity: .85; }
.video__frame::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px;
  background: var(--yt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__frame.is-loaded::after { display: none; }
.video__body { padding: 14px 16px 16px; }
.video h3 { font-size: 1rem; margin: 0 0 6px; }
.video:first-child h3 { font-size: 1.25rem; }
.video__meta { font-size: .82rem; color: var(--muted); }

/* Sobre */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; }
.about p { font-size: 1.08rem; max-width: 62ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact { border-top: 6px solid var(--orange); }
.contact .btn { white-space: normal; word-break: break-all; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Pie */
.footer { background: #1f1a17; color: #eadccd; padding: 32px 0 120px; font-size: .9rem; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--yellow); margin-left: 16px; }
.footer__note { flex-basis: 100%; color: #a8998a; font-size: .8rem; }

/* Reproductor */
.player { position: fixed; inset: auto 0 0 0; z-index: 30; background: #1f1a17; color: #fff; border-top: 4px solid var(--orange); box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.player__in { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 10px; }
.player__cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.player__title { margin: 0; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bar { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: #d7c6b4; font-variant-numeric: tabular-nums; }
.player__bar input { flex: 1; accent-color: var(--orange); min-width: 0; }
.player__ctrl { display: flex; align-items: center; gap: 6px; }
.player__ctrl button { background: rgba(255,255,255,.08); border: 0; color: #fff; border-radius: 999px; height: 38px; min-width: 42px; padding: 0 10px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.player__ctrl button:hover { background: rgba(255,255,255,.18); }
.player__ctrl .player__play { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; background: var(--orange); }
.player__play::before { content: ""; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.player__play.is-on::before { margin: 0; width: 13px; height: 15px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
@media (max-width: 640px) {
  .player__in { grid-template-columns: minmax(0, 1fr) auto; }
  .player__cover, #p-back, #p-rate { display: none; }
}

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; z-index: 40; font-weight: 600; box-shadow: var(--shadow); }

/* Sección de vídeos en naranja pleno */
.section--alt { background: linear-gradient(160deg, var(--yellow) -20%, var(--orange) 35%, var(--orange-2) 100%); color: #fff; }
.section--alt .eyebrow { color: #fff4e0; }
.section--alt h2 { color: #fff; text-shadow: 0 2px 0 rgba(120, 40, 0, .25); }
.section--alt .video { color: var(--ink); border-color: transparent; box-shadow: 0 10px 30px rgba(120, 40, 0, .25); }
.section--alt .btn--yt { box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }

/* Quiénes somos */
.section--dark { background: #1f1a17; color: #f6ece1; padding-block: clamp(40px, 6vw, 64px); }
.section--dark a:not(.btn) { color: var(--yellow); }
.footer p a { margin-left: 0; }
.footer .footer__links { display: flex; gap: 16px; }
.footer { border-top: 4px solid var(--orange); }

/* Enlaces de título a la página del episodio */
.ep h3 a, .latest h3 a { color: inherit; text-decoration: none; }
.ep h3 a:hover, .latest h3 a:hover { color: var(--orange-2); text-decoration: underline; }

/* Página de episodio */
.epi__hero { background:
  radial-gradient(900px 400px at 90% -20%, rgba(255,194,26,.4), transparent 60%),
  radial-gradient(700px 400px at -10% 120%, rgba(232,89,12,.18), transparent 60%), var(--bg);
  padding-block: 24px clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange-2); }
.epi__head { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.epi__cover { width: 260px; height: 260px; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px rgba(232,89,12,.25); background: var(--bg-alt); }
.epi h1 { font: 900 clamp(1.7rem, 4vw, 2.8rem)/1.08 var(--font-display); margin-bottom: .4em; }
.epi__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); margin: 0 0 20px; }
.epi__meta span::before { content: "·"; margin-right: 18px; color: var(--orange); font-weight: 900; }
.epi__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.btn--play { padding-left: .6rem; }
.play--sm { width: 30px; height: 30px; box-shadow: none; background: rgba(255,255,255,.25); }
.play--sm::before { border-width: 6px 0 6px 10px; margin-left: 3px; }
.btn--play.is-on .play--sm::before { margin: 0; width: 10px; height: 12px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: .9rem; }
.share span { color: var(--muted); }
.share a, .share button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--orange-2); font-weight: 700; text-decoration: none; }
.share a:hover, .share button:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .epi__head { grid-template-columns: 1fr; }
  .epi__cover { width: 160px; height: 160px; }
}

.epi__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: clamp(32px, 5vw, 56px) 80px; align-items: start; }
.epi__main > section { margin-bottom: 40px; }
.epi__main h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.epi__video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prose { font-size: 1.08rem; max-width: 68ch; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose h3 { margin-top: 1.5em; }
.note { font-size: .85rem; color: var(--muted); border-left: 4px solid var(--orange); padding: 6px 12px; background: var(--bg-alt); border-radius: 0 8px 8px 0; }
.epi__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.epi__navlink { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.35; }
.epi__navlink:hover { border-color: var(--orange); }
.epi__navlink small { display: block; color: var(--orange-2); font-weight: 700; margin-bottom: 4px; }
.epi__navlink--next { text-align: right; }
.epi__side { display: grid; gap: 20px; position: sticky; top: 84px; }
.epi__side h3 { margin-bottom: .4em; }
.epi__side p { margin: 0 0 14px; color: var(--muted); }
.stack { display: grid; gap: 10px; }
.stack .btn { justify-content: center; }
.mini { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.mini a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.mini a:hover span { color: var(--orange-2); }
.mini img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.mini small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
@media (max-width: 960px) {
  .epi__body { grid-template-columns: 1fr; }
  .epi__side { position: static; }
}
@media (max-width: 560px) { .epi__nav { grid-template-columns: 1fr; } .epi__navlink--next { text-align: left; } }
.promo { margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); font-size: .95rem; overflow-wrap: anywhere; }
.promo h3 { font-size: 1rem; margin-bottom: .6em; color: var(--muted); }
.promo p { margin: 0 0 .6em; }
.promo .note { margin: 12px 0 0; }

/* Páginas de WordPress (legales, etc.) */
.page-generic .prose { max-width: 820px; margin-inline: auto; }
.page-generic .prose h1 { font: 900 clamp(1.9rem, 4vw, 2.8rem)/1.08 var(--font-display); margin-bottom: .8em; }
.page-generic .prose h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin: 1.8em 0 .5em; }
.page-generic .prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.page-generic .prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .96rem; background: var(--surface); border: 1px solid var(--line); }
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { width: 30%; font-weight: 700; background: var(--bg-alt); }
@media (max-width: 560px) { .prose td { display: block; width: 100% !important; } .prose td:first-child { border-bottom: 0; padding-bottom: 4px; } }
.footer .footer__legal { flex-basis: 100%; display: flex; gap: 18px; font-size: .85rem; }
.who__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; font-weight: 700; font-size: .95rem; }

/* Quiénes somos: presentación + ficha de Fernando Molina */
.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.who h2 { margin-bottom: .4em; }
.who__text { margin: 0 0 .9em; color: #d9c9b8; font-size: 1.05rem; }
.who__text strong { color: #fff; }
.who__cta { margin: 20px 0 0; }
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px; border-radius: 20px; background: #2a221d; border: 1px solid rgba(247, 147, 26, .4); }
.person > img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--orange); }
.person h3 { color: #fff; font-size: 1.4rem; margin: 0 0 4px; }
.person p { margin: 0 0 12px; color: #d9c9b8; font-size: .97rem; }
.person .person__role { color: var(--orange); font-weight: 700; font-size: 1rem; }
.person__facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: #f6ece1; }
.person__facts li { padding-left: 22px; position: relative; }
.person__facts li::before { content: "★"; position: absolute; left: 0; color: var(--yellow); }
.person__link { font-weight: 700; font-size: .92rem; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } .person > img { width: 96px; height: 96px; } }

/* Distinciones con logos */
.person__label { margin: 4px 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.awards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.awards li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; font-size: .92rem; font-weight: 700; color: #fff; line-height: 1.3; }
.awards small { display: block; font-weight: 400; color: #d9c9b8; font-size: .86rem; margin-top: 2px; }
.awards__logo { height: 46px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.awards__logo img { max-width: 100%; max-height: 30px; width: auto; height: auto; border: 0; border-radius: 0; }
.awards__logo--star { color: var(--yellow); font-size: 1.4rem; }
