/*
Theme Name:  Clover v2
Theme URI:   https://elcuadernodeclover.com
Description: Theme editorial para El cuaderno de Clover — rediseño kawaii moderno.
Version:     2.6.0
Author:      El cuaderno de Clover
Text Domain: clover
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Primarios */
  --color-primary:      #c2607a;
  --color-primary-dk:   #a34d65;
  --color-primary-lt:   #e8a0b0;
  --color-primary-bg:   #fdf0f3;

  /* Acento */
  --color-accent:       #9b8ec4;
  --color-accent-lt:    #ede9f8;

  /* Fondos */
  --color-bg:           #fffcfc;
  --color-bg-soft:      #fdf5f7;
  --color-bg-muted:     #f5edf0;

  /* Texto */
  --color-text:         #2a1f24;
  --color-text-muted:   #7a6470;
  --color-text-light:   #b09aa4;

  /* Bordes */
  --color-border:       #ecdde2;
  --color-border-soft:  #f5ecef;

  /* Links */
  --color-link:         #c2607a;
  --color-link-hover:   #a34d65;

  /* Estados */
  --color-success:      #6a9e7a;
  --color-caution:      #c4845a;
  --color-star:         #e8a050;

  /* Tipografía */
  --font-sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  /* Radios */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-pill: 999px;

  /* Sombras con tinte rose */
  --shadow-xs:  0 1px 3px  rgba(194, 96, 122, .06);
  --shadow-sm:  0 2px 8px  rgba(194, 96, 122, .09);
  --shadow-md:  0 6px 24px rgba(194, 96, 122, .13);
  --shadow-lg:  0 12px 40px rgba(194, 96, 122, .16);

  /* Layout */
  --content-width:  780px;
  --layout-width:   1200px;
  --sidebar-width:  300px;
  --gap:            clamp(1rem, 3vw, 2rem);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }
ul, ol { padding-left: 1.5em; }

/* =========================================================
   TIPOGRAFÍA
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.05rem; }

p + p { margin-top: .85em; }

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */
.site-wrapper    { display: flex; flex-direction: column; min-height: 100vh; }
.site-main       { flex: 1; }
.container       { width: 100%; max-width: var(--layout-width); margin-inline: auto; padding-inline: var(--gap); }
.container--narrow { max-width: calc(var(--content-width) + var(--gap) * 2); }

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap) 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .site-sidebar { display: none; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  padding-block: .65rem 0;
}

.site-branding { flex: 1 1 auto; order: 1; min-width: 0; }
.site-branding a { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.site-branding a:hover { text-decoration: none; }
.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
}
.site-tagline { font-size: .72rem; color: var(--color-text-light); font-weight: 400; letter-spacing: .01em; }

.header-search { flex: 0 0 auto; order: 2; }

/* Nav — fila propia */
.nav-primary {
  flex: 0 0 100%;
  order: 99;
  margin-top: .4rem;
}
.nav-primary ul  { list-style: none; padding: 0; display: flex; gap: 0; flex-wrap: wrap; }
.nav-primary a {
  display: block;
  padding: .55rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-primary a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px 2px 0 0;
  transition: left .2s, right .2s;
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a {
  color: var(--color-primary);
  background: var(--color-primary-bg);
  text-decoration: none;
}
.nav-primary a:hover::after,
.nav-primary .current-menu-item > a::after { left: 8px; right: 8px; }

/* Submenú */
.nav-primary li  { position: relative; }
.nav-primary .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 210px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  padding: .4rem;
}
.nav-primary li:hover > .sub-menu { display: block; }
.nav-primary .sub-menu a {
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: .45rem .85rem;
}
.nav-primary .sub-menu a::after { display: none; }

/* Buscador */
.header-search { display: flex; align-items: center; }
.header-search form { display: flex; }
.header-search input[type="search"] {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: .4rem .85rem;
  font-size: .85rem;
  font-family: var(--font-sans);
  width: 175px;
  outline: none;
  background: var(--color-bg-soft);
  transition: border-color .15s, background .15s;
}
.header-search input:focus { border-color: var(--color-primary); background: var(--color-bg); }
.header-search button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: .4rem .9rem;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  cursor: pointer;
  font-size: .875rem;
  transition: background .15s;
}
.header-search button:hover { background: var(--color-primary-dk); }

/* Burger móvil */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--color-border);
  padding: .35rem .65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  flex: 0 0 auto;
  order: 3;
  color: var(--color-text-muted);
  transition: border-color .15s, color .15s;
}
.nav-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-branding { flex: 1; order: 1; }
  .header-search { order: 2; }
  .nav-primary { display: none; order: 99; margin-top: 0; border-top: 1px solid var(--color-border); }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; }
  .nav-primary a { border-radius: 0; }
  .nav-primary a::after { display: none; }
  .nav-primary .sub-menu { position: static; box-shadow: none; border: none; background: var(--color-bg-soft); border-radius: 0; display: none; padding: 0 0 0 1rem; }
  .nav-primary li:hover > .sub-menu,
  .nav-primary li:focus-within > .sub-menu { display: block; }
}

/* AD SLOT — HEADER */
.ad-slot-header {
  background: var(--color-bg-soft);
  text-align: center;
  padding: .5rem;
  border-bottom: 1px solid var(--color-border-soft);
  min-height: 60px;
}
.ad-slot-header:empty { display: none; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
  font-size: .78rem;
  color: var(--color-text-light);
  padding-block: .65rem;
  border-bottom: 1px solid var(--color-border-soft);
  margin-bottom: 1.75rem;
}
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: none; }
.breadcrumbs span + span::before { content: '/'; padding-inline: .4rem; opacity: .5; }

/* =========================================================
   BADGES / TAGS
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .22rem .7rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.badge--primary  { background: var(--color-primary);   color: #fff; }
.badge--accent   { background: var(--color-accent-lt); color: var(--color-accent); }
.badge--muted    { background: var(--color-bg-muted);  color: var(--color-text-muted); }
.badge--outline  { background: transparent; border: 1.5px solid var(--color-primary); color: var(--color-primary); }
.badge--primary:hover { background: var(--color-primary-dk); text-decoration: none; color: #fff; }
.badge--accent:hover  { background: var(--color-accent-lt); text-decoration: none; }

/* =========================================================
   CARD DE ENTRADA
   ========================================================= */
.card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border-soft);
  transition: box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-primary-bg) 100%);
}
.card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, var(--color-primary-lt) 0%, transparent 65%);
  opacity: .3;
  pointer-events: none;
}
.card__thumb::after {
  content: '✦';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--color-primary-lt);
  opacity: .5;
  line-height: 1;
  pointer-events: none;
}
.card__thumb--has-img::after,
.card__thumb--has-img::before { display: none; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__thumb img { transform: scale(1.05); }

.card__thumb .card__badge {
  position: absolute;
  top: .6rem; left: .6rem;
}

.card__body   { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.card__meta   {
  font-size: .72rem;
  color: var(--color-text-light);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.card__meta a { color: var(--color-primary); font-weight: 600; }
.card__meta a:hover { text-decoration: none; color: var(--color-primary-dk); }
.card__meta time::before { content: '·'; margin-right: .5rem; }

.card__title  { font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.card__title a { color: var(--color-text); }
.card__title a:hover { color: var(--color-primary); text-decoration: none; }

.card__excerpt { font-size: .85rem; color: var(--color-text-muted); line-height: 1.55; }

.card__rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: .5rem;
}

/* Grid de cards */
.cards-grid       { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.cards-grid--3    { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards-grid--4    { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-header { margin-bottom: 2rem; }
.single-header .post-categories { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }
.post-meta {
  font-size: .8rem;
  color: var(--color-text-light);
  display: flex;
  gap: .25rem .9rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  align-items: center;
}
.post-meta a { color: var(--color-text-light); }
.post-meta a:hover { color: var(--color-primary); }

.post-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.post-featured-image img { width: 100%; height: auto; }

/* Contenido */
.entry-content { font-size: 1.0625rem; line-height: 1.8; }
.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: .65rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--color-border);
}
.entry-content h3 { margin-top: 1.75rem; margin-bottom: .4rem; }
.entry-content h4 { margin-top: 1.25rem; }
.entry-content p  { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
  border-left: 3px solid var(--color-primary-lt);
  padding: .85rem 1.35rem;
  margin: 1.75rem 0;
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: .55rem .85rem; text-align: left; }
.entry-content th { background: var(--color-bg-soft); font-weight: 700; }
.entry-content img { border-radius: var(--radius); margin-block: 1.35rem; box-shadow: var(--shadow-xs); }

/* Tags del post */
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.post-tag {
  font-size: .75rem;
  color: var(--color-text-muted);
  background: var(--color-bg-muted);
  border-radius: var(--radius-pill);
  padding: .2rem .7rem;
  transition: background .15s, color .15s;
}
.post-tag:hover { background: var(--color-primary-bg); color: var(--color-primary); text-decoration: none; }

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */
.clover-toc {
  background: var(--color-accent-lt);
  border: 1px solid #d8d0f0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .9rem;
}
.clover-toc__title {
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.clover-toc__title::after { content: '▾'; font-size: .75rem; opacity: .7; }
.clover-toc.is-collapsed .clover-toc__list { display: none; }
.clover-toc.is-collapsed .clover-toc__title::after { content: '▸'; }
.clover-toc__list { list-style: none; padding: 0; margin: 0; }
.clover-toc__list li { padding: .25rem 0; }
.clover-toc__list a { color: var(--color-text); font-weight: 500; }
.clover-toc__list a:hover { color: var(--color-accent); text-decoration: none; }
.clover-toc__list ul { padding-left: 1rem; margin-top: .2rem; }

/* =========================================================
   REVIEW BOX (ficha dorama)
   ========================================================= */
.review-box {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.review-box__header { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.1rem; }
.review-box__thumbnail { width: 100px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.review-box__thumbnail img { width: 100%; height: auto; }
.review-box__info h3 { margin-top: 0; font-size: 1.1rem; }

.review-box__score {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  padding: .35rem .9rem;
  border-radius: var(--radius);
  margin-top: .6rem;
  letter-spacing: -.02em;
}
.review-box__score small { font-size: .7rem; font-weight: 400; opacity: .75; }

.review-box__meta { font-size: .8rem; color: var(--color-text-muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

.review-box__criteria { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; margin-top: 1.1rem; }
.review-box__criteria li { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; }
.review-box__bar { height: 5px; background: var(--color-border); border-radius: 3px; flex: 1; margin-inline: .75rem; overflow: hidden; }
.review-box__bar span { display: block; height: 100%; background: var(--color-primary); border-radius: 3px; }

.review-box__pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 500px) { .review-box__pros-cons { grid-template-columns: 1fr; } }
.review-box__pros h4, .review-box__cons h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; font-weight: 700; }
.review-box__pros h4 { color: var(--color-success); }
.review-box__cons h4 { color: var(--color-caution); }
.review-box__pros ul, .review-box__cons ul { padding-left: 1.2em; font-size: .875rem; }

/* =========================================================
   AD SLOTS
   ========================================================= */
.ad-slot {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  text-align: center;
  padding: .75rem;
  margin-block: 2rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot:empty { display: none; margin: 0; }
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle  { min-height: 250px; }
.ad-slot--skyscraper { min-height: 600px; }

/* =========================================================
   POSTS RELACIONADOS
   ========================================================= */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--color-border-soft); }
.related-posts h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.25rem; }

/* =========================================================
   PERFIL DE INTÉRPRETE
   ========================================================= */
.profile-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
@media (max-width: 600px) { .profile-header { grid-template-columns: 1fr; } }
.profile-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.profile-photo img { width: 100%; }
.profile-name-native { font-weight: 400; font-size: .6em; display: block; color: var(--color-text-muted); letter-spacing: .02em; margin-top: .2rem; }
.profile-data { list-style: none; padding: 0; margin-top: 1rem; }
.profile-data li { display: flex; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--color-border-soft); font-size: .9rem; }
.profile-data li:last-child { border-bottom: none; }
.profile-data .label { font-weight: 600; min-width: 120px; color: var(--color-text-muted); font-size: .85rem; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.site-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; }
.widget {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.widget-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--color-border);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: .3rem 0; border-bottom: 1px solid var(--color-border-soft); font-size: .875rem; }
.widget ul li:last-child { border-bottom: none; }

/* =========================================================
   ARCHIVE / HUB
   ========================================================= */
.archive-header {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}
.archive-title  { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.archive-description { margin-top: .6rem; color: var(--color-text-muted); max-width: 65ch; font-size: .95rem; }
.archive-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .85rem; font-size: .8rem; color: var(--color-text-light); }

/* Paginación */
.pagination { display: flex; justify-content: center; gap: .35rem; margin-block: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  border: 1.5px solid var(--color-border);
  text-decoration: none; color: var(--color-text-muted);
  padding-inline: .5rem;
  transition: background .15s, border-color .15s, color .15s;
}
.pagination a:hover       { background: var(--color-primary-bg); border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.pagination .current      { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .dots         { border: none; color: var(--color-text-light); }

/* =========================================================
   FRONT PAGE
   ========================================================= */


/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: .01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dk); border-color: var(--color-primary-dk); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary-lt); }
.btn-outline:hover { background: var(--color-primary-bg); border-color: var(--color-primary); }

/* Section headings */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--color-border-soft);
}
.section-heading h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.section-heading h2::before { content: '✦'; color: var(--color-primary-lt); font-size: .7em; margin-right: .5rem; vertical-align: middle; }
.section-heading a  { font-size: .8rem; color: var(--color-text-muted); font-weight: 600; white-space: nowrap; }
.section-heading a:hover { color: var(--color-primary); text-decoration: none; }

.section-divider { width: 100%; height: 1px; background: var(--color-border-soft); margin-block: 2.5rem; }

.home-section { padding-block: 2.5rem; }
.home-section + .home-section { border-top: 1px solid var(--color-border-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #241520;
  color: #c4adb5;
  padding-block: 3rem 1.5rem;
  margin-top: auto;
  font-size: .875rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-col h3 { color: #fff; font-size: .78rem; margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.footer-col p  { color: #9a8590; font-size: .85rem; line-height: 1.6; }
.footer-col ul  { list-style: none; padding: 0; }
.footer-col li  { padding: .28rem 0; }
.footer-col a   { color: #9a8590; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom  { border-top: 1px solid #3d2830; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; color: #6b5560; font-size: .78rem; }
.footer-bottom a { color: #7a6470; }
.footer-bottom a:hover { color: #c4adb5; }

/* =========================================================
   SEARCH
   ========================================================= */
.search-results-header { padding-block: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--color-border-soft); }
.search-no-results { text-align: center; padding-block: 4rem; color: var(--color-text-muted); }
.search-no-results p { max-width: 40ch; margin-inline: auto; }

/* =========================================================
   404
   ========================================================= */
.error-404 { text-align: center; padding-block: 5rem; }
.error-404 h1 { font-size: 6rem; color: var(--color-bg-muted); line-height: 1; }
.error-404 h2 { font-size: 1.5rem; }
.error-404 p  { color: var(--color-text-muted); max-width: 40ch; margin-inline: auto; margin-top: .5rem; }
.error-404 .search-form { margin-top: 2rem; max-width: 400px; margin-inline: auto; display: flex; }
.error-404 .search-form input  { flex: 1; border: 1.5px solid var(--color-border); border-right: none; padding: .65rem 1rem; border-radius: var(--radius-pill) 0 0 var(--radius-pill); font-size: 1rem; font-family: var(--font-sans); background: var(--color-bg-soft); }
.error-404 .search-form button { background: var(--color-primary); color: #fff; border: none; padding: .65rem 1.25rem; border-radius: 0 var(--radius-pill) var(--radius-pill) 0; cursor: pointer; font-size: 1rem; }

/* =========================================================
   UTILIDADES
   ========================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-muted { color: var(--color-text-muted); }
.text-sm    { font-size: .875rem; }
.mt-0       { margin-top: 0; }
.mb-2       { margin-bottom: 2rem; }

/* Stars */
.stars { color: var(--color-star); letter-spacing: .04em; }

/* Skip link */
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--color-primary); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); z-index: 999; }
.skip-link:focus { top: .5rem; }

/* =========================================================
   RESPONSIVE GENERAL
   ========================================================= */
@media (max-width: 600px) {
  .cards-grid, .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
  .profile-data .label { min-width: 90px; }
}

/* =========================================================
   CARDS GRID — VARIANTES DE COLUMNA
   ========================================================= */
.cards-grid--col-1 { grid-template-columns: 1fr; gap: .65rem; }
.cards-grid--col-1 .card { flex-direction: row; align-items: stretch; min-height: 0; }
.cards-grid--col-1 .card__thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 4/3; height: auto; }
.cards-grid--col-1 .card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cards-grid--col-1 .card__body { padding: .6rem .85rem; justify-content: center; }
.cards-grid--col-1 .card__title { font-size: .875rem; line-height: 1.3; }
.cards-grid--col-1 .card__excerpt { display: none; }

.cards-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--col-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--col-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .cards-grid--col-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--col-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-grid--col-1 .card { flex-direction: column; }
  .cards-grid--col-1 .card__thumb { flex: none; width: 100%; aspect-ratio: 16/9; }
  .cards-grid--col-2,
  .cards-grid--col-3,
  .cards-grid--col-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   HERO — LAYOUT EDITORIAL CON FEATURED POST
   ========================================================= */
.hero-section {
  background: var(--color-bg-soft);
  padding-block: 0;
  border-bottom: 1px solid var(--color-border-soft);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 460px;
}
.hero-layout:has(.hero-intro:only-child),
.hero-layout > .hero-intro:only-child {
  grid-column: 1 / -1;
}

.hero-intro {
  padding: 3rem 2rem 3rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .85rem;
}

.hero-intro h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: .975rem;
  max-width: 46ch;
  margin-top: .9rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Featured card */
.hero-featured {
  position: relative;
  overflow: hidden;
}

.hero-card {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: opacity .2s;
}
.hero-card:hover { opacity: .95; text-decoration: none; }

.hero-card__thumb {
  position: absolute;
  inset: 0;
}
.hero-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.35rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(36, 21, 32, .95) 0%,
    rgba(36, 21, 32, .6) 45%,
    transparent 100%
  );
}

.hero-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-top: .65rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.hero-card__excerpt {
  font-size: .82rem;
  color: rgba(255, 255, 255, .72);
  margin-top: .45rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sin thumbnail: fallback texto */
.hero-card__text {
  position: absolute;
  inset: 0;
  background: var(--color-bg-muted);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
}
.hero-card__text .hero-card__title { color: var(--color-text); }

/* Responsive */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-intro {
    padding: 2.5rem 0 2rem;
    order: 1;
  }
  .hero-featured {
    order: 2;
    height: 340px;
  }
  .hero-card { min-height: 340px; }
}

@media (max-width: 600px) {
  .hero-featured { height: 280px; }
  .hero-card { min-height: 280px; }
  .hero-card__title { font-size: 1rem; }
}

/* =========================================================
   INTERPRETE LINKS & DORAMAS SECTION
   ========================================================= */
.interprete-link {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--color-primary-lt);
  transition: border-color .15s, color .15s;
}
.interprete-link:hover {
  color: var(--color-primary-dk);
  border-color: var(--color-primary);
  text-decoration: none;
}

.interprete-doramas { margin-top: 2.5rem; }
.interprete-doramas h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--color-border-soft);
}

.profile-info { display: flex; flex-direction: column; }
