:root {
  --bg: #f3efe6;
  --ink: #161513;
  --muted: #5d5850;
  --card: #fffcf7;
  --line: #ddd4c4;
  --accent: #c44b1b;
  --accent-soft: #f6d9cc;
  --shadow: 0 10px 30px rgba(40, 28, 14, 0.08);
  --radius: 16px;
}

@font-face {
  font-family: "Causten";
  src: url("fonts/causten-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #f7d7c4 0%, transparent 50%),
    var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}

.hero, main {
  width: min(1100px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  padding: 48px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
}

.eyebrow {
  margin: 0 0 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.updated {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.menciones {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.filters {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 8px 0 24px;
}

.filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.filter select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c44b1b' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 36px 8px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  max-width: min(100%, 280px);
}

.filter select:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
  border-color: var(--accent);
}

.status {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 220px;
}

.card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #e8e0d4;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 18px;
  flex: 1;
}

.pager {
  display: flex;
  justify-content: center;
  padding: 8px 0 48px;
}

.pager button {
  border: 1px solid var(--accent);
  background: var(--card);
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pager button:hover,
.pager button:focus-visible {
  background: var(--accent);
  color: #fff;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.fuente {
  font-weight: 700;
  color: var(--accent);
}

.card h2 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.resumen {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.leer {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

.leer:hover,
.leer:focus-visible {
  text-decoration: underline;
}

footer {
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
}

.footer-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  opacity: 0.92;
}

.footer-inner .credit {
  font-family: "Causten", "Segoe UI", sans-serif;
  font-weight: 500;
  white-space: nowrap;
}

.footer-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.footer-podcast {
  display: inline-flex;
  align-items: center;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer-inner a.footer-podcast {
  text-decoration: none;
}

.footer-podcast:hover,
.footer-podcast:focus-visible {
  background: #fff;
  color: var(--accent);
  opacity: 1;
}

.footer-podcast[aria-current="page"] {
  background: #fff;
  color: var(--accent);
}

.gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 8px 0 32px;
}

.gate .filter input {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 180px;
}

.gate .filter input:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
  border-color: var(--accent);
}

.pill,
.gate button {
  border: 1px solid var(--accent);
  background: var(--card);
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pill:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pill:hover,
.pill:focus-visible,
.gate button:hover,
.gate button:focus-visible {
  background: var(--accent);
  color: #fff;
}

.guion-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px 32px;
  margin-bottom: 48px;
}

.guion-card h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 8px;
}

.guion-card h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.guion-card h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  color: var(--accent);
}

.guion-card p,
.guion-card li {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.guion-card ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.guion-card a {
  color: var(--accent);
}

.footer-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 28px;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .filter {
    width: 100%;
    justify-content: space-between;
  }

  .filter select {
    flex: 1;
    max-width: none;
  }

  .card {
    min-height: 0;
  }
}
