/*
Theme Name: Estudio 6
Theme URI: https://estudio6.cl
Author: Estudio 6
Description: Tema a medida para el sitio del canal Estudio 6 — historias con HISTORIA. Portada con banner, series y últimos videos del canal (feed automático de YouTube), blog y aportes.
Version: 1.7.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estudio6
*/

@font-face { font-family: 'Blue Highway'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/BlueHighway-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Blue Highway'; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/BlueHighway-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Sorts Mill Goudy'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/SortsMillGoudy-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Sorts Mill Goudy'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/SortsMillGoudy-Italic.woff2) format('woff2'); }

:root {
  --bg: #1c1c1c;
  --bg-deep: #141414;
  --paper: #f4efe1;
  --paper-dim: #cfc9bb;
  --line: #35342f;

  --cool-1: #134d63;
  --cool-2: #0e567c;
  --cool-3: #0769aa;
  --cool-4: #38b6ff;
  --cool-5: #39b7ea;
  --cool-6: #5ce1e6;
  --cool-7: #7ed956;
  --cool-8: #3da323;
  --cool-9: #008036;
  --cool-10: #035225;

  --warm-1: #fdeba9;
  --warm-2: #ffde59;
  --warm-3: #ffc706;
  --warm-4: #fdb40f;
  --warm-5: #f28703;
  --warm-6: #c92f2f;
  --warm-7: #b33543;
  --warm-8: #760933;
  --warm-9: #590425;

  --spectrum: linear-gradient(90deg, var(--cool-1), var(--cool-2), var(--cool-3), var(--cool-4), var(--cool-5), var(--cool-6), var(--cool-7), var(--cool-8), var(--cool-9), var(--cool-10), var(--warm-1), var(--warm-2), var(--warm-3), var(--warm-4), var(--warm-5), var(--warm-6), var(--warm-7), var(--warm-8), var(--warm-9));

  --accent-youtube: var(--cool-4);
  --accent-blog: var(--cool-7);
  --accent-tienda: var(--warm-6);

  --focus: var(--cool-4);
  --on-accent: #08131b;
  --field-border: #8d887c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: 'Sorts Mill Goudy', Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}
h1, h2, h3, h4, h5, .display {
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}
/* Interfaz: menú, botones, etiquetas y datos en Blue Highway */
nav.links, .btn, .kicker, .series-tag, .video-meta, .tag, .read,
.footer-col a, .footer-bottom, .brand span {
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
}
.footer-brand p { font-style: italic; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.spectrum-bar { height: 10px; background: var(--spectrum); background-size: 220% 100%; }

/* NAV */
header.site {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.brand span {
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
nav.links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.links a {
  text-decoration: none;
  color: var(--paper-dim);
  transition: color .15s ease;
}
nav.links a:hover { color: var(--paper); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--paper-dim); border: 1px solid var(--line);
  transition: color .15s ease, border-color .15s ease;
}
.icon-link:hover { color: var(--paper); border-color: var(--paper-dim); }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid var(--paper);
  color: var(--paper);
  white-space: nowrap;
}
.btn:hover { background: var(--paper); color: var(--bg); }
.btn.solid { background: var(--cool-4); border-color: var(--cool-4); color: var(--on-accent); }
.btn.solid:hover { background: var(--cool-6); border-color: var(--cool-6); }

/* HERO */
.hero-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1940 / 500;
  display: block;
  border-bottom: 1px solid var(--line);
}
.hero {
  padding: 76px 28px 64px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1160px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--paper);
}
.hero .lede {
  margin: 20px 0 0;
  margin-left: auto;
  max-width: 520px;
  color: var(--paper-dim);
  font-size: 1.05rem;
}
.hero .cta-row {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* SECTION GENERIC */
section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--line);
  padding-bottom: 20px;
}
.section-head h2 { font-size: 2rem; }
.section-head .tag {
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 2px;
}
.section-intro {
  max-width: 640px;
  color: var(--paper-dim);
  margin: 22px 0 40px;
  font-size: 1.02rem;
}

/* YOUTUBE SECTION */
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.series-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cool-4);
  padding: 20px 18px;
}
.series-card:nth-child(2) { border-top-color: var(--cool-7); }
.series-card:nth-child(3) { border-top-color: var(--warm-4); }
.series-card:nth-child(4) { border-top-color: var(--warm-7); }
.series-card:nth-child(5) { border-top-color: var(--cool-6); }
.series-card:nth-child(6) { border-top-color: var(--warm-2); }
.series-card:nth-child(7) { border-top-color: var(--warm-5); }
.series-card:nth-child(8) { border-top-color: var(--cool-8); }
.series-card .fmt { display: block; font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .72rem; letter-spacing: .12em; color: var(--paper-dim); margin-bottom: 6px; }
.series-card h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.series-card p {
  font-size: 0.9rem;
  color: var(--paper-dim);
  margin: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb .series-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-left: 3px solid var(--cool-4);
}
.video-card.cedula .video-thumb .series-tag { border-left-color: var(--warm-4); }
.video-card.pagina .video-thumb .series-tag { border-left-color: var(--cool-7); }
.video-card.especial .video-thumb .series-tag { border-left-color: var(--warm-7); }
.video-body { padding: 16px 18px 20px; }
.video-body h4 {
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
.video-meta {
  font-size: 0.82rem;
  color: var(--paper-dim);
  display: flex;
  gap: 12px;
}

/* BLOG SECTION */
.blog { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.blog-card {
  padding: 28px 26px;
  border-left: 3px solid var(--cool-7);
  border-right: 1px solid var(--line);
}
.blog-card:last-child { border-right: none; }
.blog-card .kicker {
  font-size: 0.78rem;
  color: var(--cool-6);
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card p {
  color: var(--paper-dim);
  font-size: 0.92rem;
  margin: 0 0 16px;
}
.blog-card .read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cool-4);
  text-decoration: none;
}
.blog-soon {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 26px;
  border: 1px dashed var(--line);
  border-top: none;
  color: var(--paper-dim);
}
.blog-soon .kicker {
  font-size: 0.78rem;
  color: var(--cool-6);
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-soon p { margin: 0; font-size: 0.95rem; max-width: 460px; }
@media (max-width: 880px) {
  .blog-soon { grid-column: auto; border-left: none; border-right: none; }
}

/* FOOTER */
footer {
  padding: 48px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--paper-dim); font-size: 0.9rem; }
.footer-col h5 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  margin-bottom: 12px;
  font-weight: 600;
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--paper);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--paper-dim);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 880px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { border-right: none; border-bottom: 1px solid var(--line); }
  .hero { text-align: left; }
  .hero .lede { margin-left: 0; }
  .hero .cta-row { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .nav { padding: 14px 16px; gap: 12px; }
  .nav-actions { gap: 10px; }
  .series-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}
/* Sorts Mill Goudy tiene ojo pequeño: textos de lectura un poco más grandes */
.hero .lede { font-size: 1.25rem; }
.section-intro { font-size: 1.15rem; }
.series-card p, .blog-card p, .blog-soon p, .footer-brand p { font-size: 1.05rem; line-height: 1.5; }

/* ARTÍCULO */
.article-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); }
.article-wrap { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.back {
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
  color: var(--cool-4); text-decoration: none; font-size: 0.95rem;
}
.article-head .kicker {
  margin: 28px 0 12px; font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--cool-6); font-weight: 700;
}
.article-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; color: var(--paper); }
.article-head .dek { font-size: 1.3rem; color: var(--paper-dim); margin: 18px 0 0; line-height: 1.45; }
.byline {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: 0.9rem; color: var(--paper-dim);
}
.byline span + span::before { content: '·'; margin-right: 18px; color: var(--line); }
.article-body { padding: 44px 0 64px; font-size: 1.2rem; line-height: 1.7; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { font-size: 1.6rem; margin: 1.8em 0 0.6em; color: var(--paper); }
.article-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent-blog);
  font-style: italic; font-size: 1.45rem; line-height: 1.45; color: var(--paper);
}
.figure { margin: 2em 0; }
.figure .ph {
  aspect-ratio: 16 / 9; background: var(--bg-deep); border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif; color: var(--paper-dim); font-size: 0.95rem;
}
.figure figcaption { font-size: 0.95rem; color: var(--paper-dim); font-style: italic; margin-top: 10px; }
.video-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent-youtube);
  padding: 20px 22px; margin: 2em 0; background: var(--bg-deep);
}
.video-cta p { margin: 0; font-size: 1.05rem; }
.video-cta strong { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; display: block; font-size: 1.1rem; color: var(--paper); }
.sources { border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.4em; }
.sources h2 { margin-top: 0; font-size: 1.2rem; }
.sources ol { margin: 0; padding-left: 1.2em; font-size: 1rem; color: var(--paper-dim); }
.sources li { margin-bottom: 0.5em; }
.sources li::marker { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; color: var(--paper-dim); }
.more { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 48px 0 56px; }
.more h2 { font-size: 1.5rem; margin-bottom: 18px; }
.more p { color: var(--paper-dim); margin: 0 0 22px; }
@media (max-width: 600px) {
  .article-wrap { padding: 0 16px; }
  .article-body { font-size: 1.12rem; }
  .article-body blockquote { font-size: 1.25rem; }
}


/* ===== AJUSTES PARA WORDPRESS ===== */
body.admin-bar header.site { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.site { top: 46px; } }
.brand { text-decoration: none; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Tarjetas de video enlazadas */
a.video-card { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.video-card:hover { border-color: var(--paper-dim); transform: translateY(-2px); }
.video-thumb .play {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center;
}
.video-thumb .play::before { content: ''; border-left: 12px solid var(--paper); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.video-card.otro .video-thumb .series-tag { border-left-color: var(--paper-dim); }
.video-more { margin-top: 28px; text-align: center; }
.feed-error { border: 1px dashed var(--line); padding: 28px; text-align: center; color: var(--paper-dim); }

/* Blog en portada: la tarjeta "Próximamente" ocupa lo que falte */
.blog-soon.span-1 { grid-column: span 1; }
.blog-soon.span-3 { grid-column: span 3; }
.blog-card h3 a { text-decoration: none; color: inherit; }
.blog-card h3 a:hover { color: var(--cool-4); }
.blog-all { padding: 22px 28px 0; max-width: 1160px; margin: 0 auto; }
@media (max-width: 880px) { .blog-soon.span-1, .blog-soon.span-3 { grid-column: auto; } }

/* Contenido de entradas y páginas (editor de bloques) */
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.6rem; margin: 1.8em 0 0.6em; color: var(--paper); }
.entry-content h3 { font-size: 1.3rem; margin: 1.6em 0 0.5em; color: var(--paper); }
.entry-content a { color: var(--cool-4); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; color: var(--paper-dim); }
.entry-content blockquote, .entry-content .wp-block-quote, .entry-content .wp-block-pullquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent-blog); border-top: 0; border-bottom: 0; text-align: left;
  font-style: italic; font-size: 1.45rem; line-height: 1.45; color: var(--paper);
}
.entry-content blockquote p { margin: 0 0 .4em; }
.entry-content blockquote cite, .entry-content figcaption, .entry-content .wp-element-caption {
  display: block; font-size: 0.95rem; color: var(--paper-dim); font-style: italic; margin-top: 10px;
}
.entry-content img { height: auto; }
.entry-content figure { margin: 2em 0; }
.entry-content .wp-block-embed iframe, .entry-content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
@media (max-width: 880px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; } }
.featured { margin: 0 0 2em; }
.featured img { width: 100%; height: auto; }

/* Listado del blog y páginas */
.list-head { padding: 64px 0 24px; }
.list-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.list-head p { color: var(--paper-dim); margin: 12px 0 0; }
.post-list { padding: 8px 0 64px; }
.post-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-item .kicker { font-size: .8rem; color: var(--cool-6); font-weight: 700; margin-bottom: 8px; letter-spacing: .05em; }
.post-item h2 { font-size: 1.5rem; margin-bottom: 8px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { color: var(--cool-4); }
.post-item p { color: var(--paper-dim); margin: 0 0 10px; }
.pagination { padding: 24px 0 64px; display: flex; gap: 10px; flex-wrap: wrap; font-family: 'Blue Highway', 'Arial Narrow', sans-serif; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--paper); color: var(--bg); }
.more-list { list-style: none; padding: 0; margin: 0 0 22px; }
.more-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.more-list a { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: 1.1rem; text-decoration: none; }
.more-list a:hover { color: var(--cool-4); }
.not-found { padding: 96px 0; text-align: center; }
.not-found p { color: var(--paper-dim); }

/* Menú creado desde Apariencia → Menús */
nav.links ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
nav.links li { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* ===== PÁGINA PRÓXIMAMENTE ===== */
body.soon { min-height: 100vh; display: flex; flex-direction: column; }
.soon-main { flex: 1; display: flex; align-items: center; padding: 56px 0 64px; }
.soon-inner { max-width: 760px; margin: 0 auto; padding: 0 28px; text-align: center; }
.soon-inner .kicker { font-size: .85rem; letter-spacing: .12em; color: var(--cool-6); font-weight: 700; margin-bottom: 14px; }
.soon-inner h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; color: var(--paper); }
.soon-inner p { color: var(--paper-dim); font-size: 1.25rem; line-height: 1.55; margin: 20px auto 0; max-width: 560px; }
.soon-inner .cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.soon-inner .tagline { margin-top: 40px; font-style: italic; color: var(--paper-dim); font-size: 1.05rem; }
.soon-foot { padding: 18px 28px; text-align: center; font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .85rem; color: var(--paper-dim); border-top: 1px solid var(--line); }

/* ===== SHORTS ===== */
.shorts { margin-top: 48px; }
.shorts-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shorts-head h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.shorts-head h3::before { content: ''; width: 12px; height: 22px; border-radius: 3px; background: var(--warm-5); display: inline-block; }
.shorts-nav { display: flex; gap: 8px; }
.shorts-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--paper); font-size: 1.1rem; cursor: pointer; font-family: 'Blue Highway', 'Arial Narrow', sans-serif;
}
.shorts-arrow:hover { border-color: var(--paper-dim); }
.shorts-row {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.short-card { flex: 0 0 180px; scroll-snap-align: start; text-decoration: none; color: inherit; }
.short-thumb {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000;
  border: 1px solid var(--line); border-radius: 10px;
}
.short-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .2s ease; }
.short-card:hover .short-thumb img { transform: scale(1.06); }
.short-thumb .series-tag {
  position: absolute; top: 10px; left: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px);
  background: var(--bg); color: var(--paper); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 4px 7px; border-left: 3px solid var(--warm-5); line-height: 1.25;
}
.short-thumb .play {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center;
}
.short-thumb .play::before { content: ''; border-left: 11px solid var(--paper); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.short-card h4 { font-size: 0.98rem; line-height: 1.3; margin: 10px 2px 0; }
.video-more { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .short-card { flex-basis: 150px; }
  .shorts-nav { display: none; }
}

/* ===== NOSOTROS (portada) ===== */
.about { padding: 72px 0; border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.about .section-head { border-bottom: 0; padding-bottom: 0; margin: 0; }
.about-body p { color: var(--paper-dim); font-size: 1.15rem; line-height: 1.65; margin: 0 0 1em; max-width: 640px; }
.about-body .about-lede { color: var(--paper); font-size: 1.45rem; line-height: 1.4; }
.about-body .btn { margin-top: 8px; }
@media (max-width: 880px) { .about-inner { grid-template-columns: 1fr; gap: 12px; } }

/* ===== APÓYANOS ===== */
.support { padding: 64px 0; background: var(--bg-deep); border-top: 1px solid var(--line); position: relative; }
.support::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--warm-3), var(--warm-5), var(--warm-7)); }
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.support .kicker { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .85rem; letter-spacing: .1em; color: var(--warm-3); font-weight: 700; margin-bottom: 10px; }
.support h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; max-width: 620px; }
.support p { color: var(--paper-dim); font-size: 1.15rem; line-height: 1.55; margin: 14px 0 0; max-width: 600px; }
.support-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) { .support-actions { width: 100%; } .support-actions .btn { flex: 1; text-align: center; } }

/* ===== PÁGINA NOSOTROS ===== */
.page-nosotros .article-head .kicker { margin-top: 28px; }

/* Banner de cabecera de Nosotros (Imagen destacada de la página).
   Celular: completo en 2:1. Escritorio: franja 3:1 centrada + barra de colores. */
.page-banner { margin: 0; line-height: 0; background: var(--bg-deep); }
.page-banner img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center; }
@media (min-width: 701px) {
  .page-banner img { aspect-ratio: 3 / 1; max-height: 520px; }
  .page-banner::after { content: ''; display: block; height: 12px; background: linear-gradient(90deg, #0968aa 0 16.667%, #3ba423 0 33.333%, #ffc606 0 50%, #f58601 0 66.667%, #dd2f43 0 83.333%, #770734 0); }
}
.entry-content > h2:first-child { margin-top: 0; }
nav.links a[aria-current="page"], nav.links .current-menu-item > a { color: var(--paper); }

/* ===== MENÚ CELULAR ===== */
[id] { scroll-margin-top: 76px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
header.site.open .menu-toggle .i-open { display: none; }
header.site.open .menu-toggle .i-close { display: block; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  header.site nav.links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.45); padding: 4px 0 10px; }
  header.site.open nav.links { display: flex; }
  header.site nav.links ul { flex-direction: column; gap: 0; }
  header.site nav.links a { display: block; padding: 15px 20px; font-size: 1.15rem; color: var(--paper); border-top: 1px solid var(--line); }
  header.site nav.links > a:first-child, header.site nav.links li:first-child a { border-top: 0; }
  .nav-actions .btn { padding-left: 14px; padding-right: 14px; }
  .brand span { font-size: 1.05rem; }
}
@media (max-width: 370px) { .brand span { display: none; } }

/* CELULAR: series y videos en filas deslizables */
@media (max-width: 600px) {
  .series-grid, .video-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: -28px; margin-right: -28px; padding: 0 28px 12px; scroll-padding-left: 28px;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch;
  }
  .series-card { flex: 0 0 72%; scroll-snap-align: start; }
  .video-grid > .video-card { flex: 0 0 84%; scroll-snap-align: start; }
  .series-grid { margin-bottom: 32px; }
  .shorts-row { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; scroll-padding-left: 28px; }
  #youtube .swipe-hint { display: block; }
}
.swipe-hint { display: none; font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .8rem; color: var(--paper-dim); margin: -6px 0 10px; letter-spacing: .03em; }

/* FORMULARIO DE CONTACTO (también da estilo al formulario de Jetpack o Contact Form 7) */
.contact-form, .entry-content .wp-block-jetpack-contact-form, .entry-content .wpcf7 { margin: 1.4em 0 0; display: grid; gap: 18px; }
.contact-form label, .entry-content .wp-block-jetpack-contact-form label, .entry-content .wpcf7 label {
  display: block; font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .95rem; color: var(--paper); margin-bottom: 6px; font-weight: 700;
}
.contact-form .req { color: var(--warm-3); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea,
.entry-content .wp-block-jetpack-contact-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.entry-content .wp-block-jetpack-contact-form select, .entry-content .wp-block-jetpack-contact-form textarea,
.entry-content .wpcf7 input:not([type=submit]), .entry-content .wpcf7 select, .entry-content .wpcf7 textarea {
  width: 100%; box-sizing: border-box; background: var(--bg-deep); color: var(--paper); border: 1px solid var(--field-border); border-radius: 8px;
  padding: 13px 14px; font-family: 'Sorts Mill Goudy', Georgia, serif; font-size: 1.1rem; line-height: 1.4; min-height: 48px;
}
.contact-form textarea, .entry-content .wp-block-jetpack-contact-form textarea, .entry-content .wpcf7 textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.entry-content .wp-block-jetpack-contact-form :is(input, select, textarea):focus, .entry-content .wpcf7 :is(input, select, textarea):focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--cool-4);
}
.contact-form ::placeholder, .entry-content form ::placeholder { color: var(--field-border); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .note { font-size: .95rem; color: var(--paper-dim); margin: 0; }
.contact-form button, .entry-content .wp-block-jetpack-contact-form button, .entry-content .wp-block-jetpack-contact-form .wp-block-button__link, .entry-content .wpcf7-submit {
  justify-self: start; background: var(--cool-4); color: var(--on-accent); border: 0; border-radius: 6px; padding: 14px 26px; min-height: 48px;
  font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.contact-form button:hover, .entry-content .wpcf7-submit:hover { background: var(--cool-6); }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } .contact-form button { justify-self: stretch; } }

/* ===== PIE DE PÁGINA (versión liviana) ===== */
footer.site-foot { padding: 36px 0 22px; }
.foot-main { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; }
.foot-brand strong { display: block; font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: 1.1rem; letter-spacing: .02em; }
.foot-brand span { display: block; font-size: .95rem; color: var(--paper-dim); font-style: italic; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-nav a { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .98rem; color: var(--paper); text-decoration: none; padding: 12px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--cool-4); }
.foot-social { display: flex; gap: 10px; }
.foot-bottom { padding-top: 16px; font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .85rem; color: var(--paper-dim); }
@media (max-width: 880px) { .foot-main { flex-direction: column; align-items: flex-start; } .foot-nav { margin-left: -10px; } }

/* Banner para celular (preparado por el equipo, 1440 × 720) */
@media (max-width: 600px) { .hero-banner { aspect-ratio: 2 / 1; object-fit: cover; } }

/* CARRUSEL DE SERIES: una fila que avanza sola */
.series-carousel { margin-bottom: 48px; }
.series-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.series-controls .swipe-hint { margin: 0; }
.series-track { position: relative; }
.series-side { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: var(--bg); }
.series-side:hover { background: var(--bg-deep); }
.series-side.prev { left: -60px; }
.series-side.next { right: -60px; }
@media (max-width: 1240px) and (min-width: 601px) { .series-track { padding: 0 52px; } .series-side.prev { left: 0; } .series-side.next { right: 0; } }
@media (max-width: 600px) { .series-side { display: none; } }
.series-carousel .series-grid { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-bottom: 0; }
.series-carousel .series-grid::-webkit-scrollbar { display: none; }
.series-carousel .series-card { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; }
@media (max-width: 900px) { .series-carousel .series-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px) {
  .series-carousel { margin-bottom: 32px; }
  .series-carousel .series-card { flex-basis: 72%; }
}

  /* CARRUSEL PRINCIPAL */
  .hero-carousel { border-bottom: 1px solid var(--line); }
  .hero-slides { display: grid; }
  .hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
  .hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
  .hero-carousel .hero { border-bottom: 0; }
  .hero .slide-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; color: var(--paper); }
  .hero .kicker { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .85rem; letter-spacing: .12em; font-weight: 700; color: var(--cool-4); margin-bottom: 14px; }
  .hero-dots { display: flex; justify-content: center; gap: 8px; padding: 0 0 26px; }
  .hero-dots button { position: relative; width: 44px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
  .hero-dots button::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px; background: var(--line); }
  .hero-dots button.is-active::after { background: var(--cool-4); }
  .hero-dots button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active { transition: none; } }

  .hero-col-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; text-align: right; }
  .hero-col .col-img { display: block; border: 1px solid var(--line); }
  .hero-col .col-img img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
  .hero-col .col-img:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .hero-col .lede { margin-top: 0; }
  @media (max-width: 900px) {
    .hero-col-inner { grid-template-columns: 1fr; gap: 28px; text-align: left; }
    .hero-col .cta-row { justify-content: flex-start; }
    .hero-col .lede { margin-left: 0; }
  }

/* Filtro por tema en el archivo de columnas */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
.cat-filter a { font-family: 'Blue Highway', 'Arial Narrow', sans-serif; font-size: .9rem; letter-spacing: .03em; text-decoration: none; color: var(--paper-dim); border: 1px solid var(--line); padding: 8px 14px; }
.cat-filter a:hover { color: var(--paper); border-color: var(--cool-4); }
.cat-filter a.on { background: var(--cool-4); border-color: var(--cool-4); color: var(--on-accent); }
.cat-filter a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }


/* ===== ACCESIBILIDAD (1.7.5) ===== */
/* Recuadro de foco uniforme para todo lo que se opera con teclado */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
main:focus { outline: none; }

/* Sin desplazamiento animado si la persona pidió reducir el movimiento */
@media (prefers-reduced-motion: reduce) {
  html, .shorts-row, .series-carousel .series-grid { scroll-behavior: auto !important; }
}

/* Enlaces que abren pestaña nueva: aviso visual en los botones (el aviso para lectores de pantalla lo agrega el script) */
.btn[target="_blank"]::after { content: " ↗"; content: " ↗" / ""; font-size: .9em; }

/* Botón de pausa de los carruseles */
.car-pause {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px; margin-left: 6px; padding: 0; border-radius: 50%;
  border: 1px solid var(--paper-dim); background: transparent; color: var(--paper-dim); cursor: pointer;
}
.car-pause:hover { color: var(--paper); border-color: var(--paper); }
.car-pause[hidden] { display: none; }
.car-pause .i-play { display: none; }
.car-pause.is-paused .i-pause { display: none; }
.car-pause.is-paused .i-play { display: block; }
.hero-dots { align-items: center; }
.series-controls .car-pause { margin-left: auto; }
@media (max-width: 600px) { .series-controls .car-pause { display: none; } }

/* Botón de modo claro / oscuro */
.theme-toggle { background: transparent; padding: 0; cursor: pointer; font: inherit; }
.theme-toggle[aria-pressed="true"] { color: var(--paper); border-color: var(--paper); background: var(--bg-deep); }

/* Modo claro (lo elige la persona con el botón de la cabecera) */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3e8;
  --bg-deep: #ece6d4;
  --paper: #1c1c1c;
  --paper-dim: #4a463d;
  --line: #cfc8b4;
  --cool-4: #0769aa;
  --cool-6: #0b6a73;
  --warm-3: #8a5a00;
  --focus: #0a58a0;
  --on-accent: #ffffff;
  --field-border: #6f6a5c;
}

/* Redes: mismo ícono en encabezado, menú del celular y pie */
.header-social, .foot-social, .menu-social { display: flex; align-items: center; gap: 10px; }
.header-social { gap: 8px; }
.menu-social-item { display: none; }
header.site nav.links .menu-social { display: none; }
@media (max-width: 900px) {
  .header-social { display: none; }
  header.site nav.links .menu-social { display: flex; padding: 16px 20px; border-top: 1px solid var(--line); gap: 12px; }
  header.site nav.links .menu-social-item { display: block; }
  header.site nav.links .menu-social a.icon-link { padding: 0; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; color: var(--paper-dim); }
}
.hero-dots .car-pause { width: 32px; height: 32px; border: 1px solid var(--paper-dim); background: transparent; }
.hero-dots .car-pause::after { display: none; }
