/* ===========================================================
   SPOILER POLÍTICO — INTERIORES EDITORIALES v1.5
   Aplicar solamente en prueba-diseno.
   No altera portada, header, footer, CMS ni base de datos.
   =========================================================== */
:root{
  --ed-paper:#F4F0E8;
  --ed-paper-dark:#E8E0D2;
  --ed-white:#FCFAF5;
  --ed-ink:#10182B;
  --ed-copy:#30394A;
  --ed-muted:#626D7C;
  --ed-rule:#D1C7B7;
  --ed-red:#B63C3D;
  --ed-black:#0B101C;
}
body.editorial-interior{
  background:var(--ed-paper);
  color:var(--ed-ink);
}
.editorial-interior main{
  background:var(--ed-paper);
}
.editorial-shell{
  width:min(1240px, calc(100% - 44px));
  margin:0 auto;
}

/* PORTADA INTERIOR DE LECTURA */
.ed-story{
  padding:62px 0 86px;
}
.ed-head{
  width:min(940px, 100%);
  margin:0 auto 44px;
}
.ed-head h1{
  font-family:"Space Grotesk", Inter, Arial, sans-serif;
  font-size:clamp(54px, 6vw, 86px);
  line-height:.93;
  letter-spacing:-.075em;
  text-transform:uppercase;
  color:var(--ed-ink);
  margin:0 0 22px;
}
.ed-head--institution h1{
  font-size:clamp(45px, 4.8vw, 67px);
  line-height:.97;
  max-width:1050px;
}
.ed-section{
  color:var(--ed-red);
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin:0 0 22px;
  display:flex;
  align-items:center;
  gap:12px;
}
.ed-section::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--ed-red);
  display:block;
}
.ed-summary{
  color:var(--ed-copy);
  font-size:clamp(20px, 2vw, 24px);
  line-height:1.55;
  max-width:760px;
  margin:0 0 31px;
}
.ed-meta{
  border-top:1px solid var(--ed-rule);
  border-bottom:1px solid var(--ed-rule);
  padding:16px 0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  color:var(--ed-muted);
  font-size:14px;
}
.ed-meta strong{
  color:var(--ed-ink);
  font-weight:700;
}
.ed-meta-separator{
  color:var(--ed-red);
  font-weight:700;
}
.ed-figure{
  width:min(760px, 100%);
  margin:0 auto 49px;
}
.ed-figure img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio:1/1;
  object-fit:contain;
  object-position:center;
  background:transparent;
}
.ed-body{
  width:min(760px, 100%);
  margin:0 auto;
}
.ed-body p{
  color:var(--ed-copy);
  font-size:20px;
  line-height:1.85;
  margin:0 0 29px;
}
.ed-body h2{
  color:var(--ed-ink);
  font-size:34px;
  letter-spacing:-.05em;
  line-height:1.08;
  text-transform:uppercase;
  margin:53px 0 19px;
}
.ed-body h3{
  color:var(--ed-ink);
  font-size:26px;
  letter-spacing:-.035em;
  margin:43px 0 17px;
}
.ed-body h4{
  color:var(--ed-ink);
  font-size:21px;
  line-height:1.25;
  margin:34px 0 14px;
}
.ed-body ul,.ed-body ol{
  color:var(--ed-copy);
  font-size:20px;
  line-height:1.7;
  margin:0 0 29px;
  padding-left:1.35em;
}
.ed-body li{margin:0 0 10px;padding-left:.25em}
.ed-body blockquote{
  border-left:6px solid var(--ed-red);
  background:rgba(179,58,58,.07);
  margin:38px 0;
  padding:22px 26px;
}
.ed-body blockquote p{font-size:21px;line-height:1.65;margin:0 0 12px}
.ed-body blockquote p:last-child{margin-bottom:0}
.ed-body .cita-atribucion{font-size:15px;font-weight:750;letter-spacing:.02em}
.ed-body figure{margin:38px 0}
.ed-body figure img{display:block;width:100%;height:auto}
.ed-body figcaption{color:#5f6368;font-size:14px;line-height:1.45;margin-top:10px}
.ed-body table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;margin:36px 0}
.ed-body th,.ed-body td{border:1px solid #c9c4bb;padding:12px 14px;text-align:left;vertical-align:top;min-width:130px}
.ed-body th{background:#ece7de;color:var(--ed-ink);font-weight:800}
.ed-body hr{border:0;border-top:3px solid var(--ed-ink);margin:48px 0}
.ed-body a{color:var(--ed-red);text-decoration-thickness:1px;text-underline-offset:3px}

/* DOCUMENTACIÓN VISIBLE */
.ed-sources{
  width:min(760px, 100%);
  margin:67px auto 0;
  padding-top:25px;
  border-top:4px solid var(--ed-ink);
}
.ed-sources h2{
  font-family:"Space Grotesk", Inter, Arial, sans-serif;
  font-size:32px;
  line-height:1;
  letter-spacing:-.05em;
  text-transform:uppercase;
  margin:0 0 30px;
}
.ed-source-list{
  list-style:none;
  padding:0;
  margin:0;
  counter-reset:source;
}
.ed-source-list li{
  counter-increment:source;
  position:relative;
  padding:0 0 26px 48px;
  border-bottom:1px solid var(--ed-rule);
  margin-bottom:24px;
}
.ed-source-list li::before{
  content:counter(source, decimal-leading-zero);
  position:absolute;
  left:0;
  top:3px;
  color:var(--ed-red);
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
}
.ed-source-title{
  color:var(--ed-ink);
  font-size:18px;
  line-height:1.45;
  font-weight:700;
  margin:0 0 8px;
}
.ed-source-meta{
  color:var(--ed-muted);
  font-size:13px;
  line-height:1.45;
  margin:0 0 13px;
}
.ed-source-link{
  color:var(--ed-red);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:12px;
  font-weight:800;
}
.ed-source-link:hover{
  text-decoration:underline;
}

/* ARCHIVOS: EXPEDIENTES, SERIES, ANÁLISIS */
.ed-archive-header{
  padding:65px 0 46px;
  border-bottom:1px solid var(--ed-rule);
}
.ed-archive-kicker{
  color:var(--ed-red);
  font-size:12px;
  font-weight:800;
  letter-spacing:.23em;
  text-transform:uppercase;
  margin:0 0 20px;
  display:flex;
  align-items:center;
  gap:12px;
}
.ed-archive-kicker::before{
  content:"";
  width:10px;
  height:10px;
  background:var(--ed-red);
  border-radius:999px;
}
.ed-archive-header h1{
  font-size:clamp(54px, 6vw, 83px);
  line-height:.94;
  letter-spacing:-.075em;
  text-transform:uppercase;
  margin:0 0 22px;
}
.ed-archive-header p:last-child{
  max-width:770px;
  font-size:21px;
  line-height:1.6;
  color:var(--ed-copy);
  margin:0;
}
.ed-archive-content{
  padding:54px 0 84px;
}
.ed-card-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:30px;
}
.ed-card{
  background:var(--ed-white);
  border:1px solid var(--ed-rule);
  min-width:0;
  display:flex;
  flex-direction:column;
}
.ed-card a{
  display:flex;
  flex-direction:column;
  height:100%;
}
.ed-card-img{
  aspect-ratio:1/1;
  background:var(--ed-black);
  width:100%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ed-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ed-card-img span{
  color:white;
  font:700 68px "Space Grotesk",Arial,sans-serif;
}
.ed-card-content{
  padding:24px 24px 27px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.ed-card-label{
  color:var(--ed-red);
  font-size:11px;
  letter-spacing:.2em;
  font-weight:800;
  text-transform:uppercase;
  margin:0 0 15px;
}
.ed-card h2{
  color:var(--ed-ink);
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.05em;
  text-transform:uppercase;
  margin:0 0 13px;
}
.ed-card p:not(.ed-card-label){
  color:var(--ed-copy);
  font-size:15px;
  line-height:1.6;
  margin:0 0 26px;
}
.ed-card-cta{
  margin-top:auto;
  padding-top:15px;
  border-top:1px solid var(--ed-rule);
  color:var(--ed-red);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.1em;
  font-weight:800;
}
.ed-empty{
  background:var(--ed-white);
  border-left:4px solid var(--ed-red);
  padding:28px;
  font-size:18px;
}

/* Entregas dentro de una serie */
.ed-related{
  padding:56px 0 84px;
  border-top:1px solid var(--ed-rule);
}
.ed-related h2.ed-related-title{
  color:var(--ed-ink);
  font-size:42px;
  line-height:1;
  letter-spacing:-.06em;
  text-transform:uppercase;
  margin:0 0 34px;
}

/* Dispositivos móviles */
@media (max-width:759px){
  .editorial-shell{
    width:calc(100% - 34px);
  }
  .ed-story{
    padding:39px 0 54px;
  }
  .ed-head{
    margin-bottom:29px;
  }
  .ed-head h1{
    font-size:clamp(39px,12vw,51px);
    line-height:.98;
    margin-bottom:18px;
  }
  .ed-head--institution h1{
    font-size:clamp(34px,9.8vw,44px);
    line-height:1.03;
  }
  .ed-section{
    font-size:11px;
    margin-bottom:17px;
  }
  .ed-summary{
    font-size:18px;
    line-height:1.62;
    margin-bottom:23px;
  }
  .ed-meta{
    padding:13px 0;
    font-size:13px;
    gap:8px;
  }
  .ed-figure{
    margin-bottom:30px;
  }
  .ed-body p{
    font-size:17px;
    line-height:1.72;
    margin-bottom:23px;
  }
  .ed-body h2{
    font-size:27px;
    margin-top:37px;
  }
  .ed-body ul,.ed-body ol{font-size:17px;line-height:1.62;margin-bottom:23px}
  .ed-body blockquote{margin:30px 0;padding:18px 20px}
  .ed-body blockquote p{font-size:18px}
  .ed-sources{
    margin-top:45px;
    padding-top:21px;
  }
  .ed-sources h2{
    font-size:25px;
    margin-bottom:23px;
  }
  .ed-source-list li{
    padding-left:38px;
  }
  .ed-archive-header{
    padding:39px 0 32px;
  }
  .ed-archive-header h1{
    font-size:clamp(43px,12.5vw,57px);
    margin-bottom:17px;
  }
  .ed-archive-header p:last-child{
    font-size:17px;
  }
  .ed-archive-content{
    padding:33px 0 53px;
  }
  .ed-card-grid{
    grid-template-columns:1fr;
    gap:21px;
  }
  .ed-card-content{
    padding:19px 18px 22px;
  }
  .ed-card h2{
    font-size:27px;
  }
  .ed-related{
    padding:39px 0 53px;
  }
}
@media (min-width:760px) and (max-width:1100px){
  .ed-card-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}


/* ===========================================================
   SPOILER POLÍTICO — CRÉDITO Y DISTRIBUCIÓN v1.6
   =========================================================== */
.ed-creditbar{
  border-top:1px solid var(--ed-rule);
  border-bottom:1px solid var(--ed-rule);
  padding:18px 0;
  margin-top:4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.ed-credit-id{
  min-width:0;
}
.ed-credit-name{
  color:var(--ed-ink);
  font-size:15px;
  font-weight:800;
  line-height:1.35;
  margin:0 0 5px;
}
.ed-credit-date{
  color:var(--ed-muted);
  font-size:12px;
  font-weight:500;
  letter-spacing:.05em;
  line-height:1.35;
  margin:0;
  text-transform:uppercase;
}
.ed-share{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.ed-share-label{
  color:var(--ed-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  margin-right:8px;
  text-transform:uppercase;
}
.ed-share-btn{
  align-items:center;
  background:transparent;
  border:1px solid var(--ed-rule);
  color:var(--ed-ink);
  cursor:pointer;
  display:inline-flex;
  height:38px;
  justify-content:center;
  padding:0;
  transition:background .16s ease, border-color .16s ease, color .16s ease;
  width:38px;
}
.ed-share-btn:hover{
  background:var(--ed-ink);
  border-color:var(--ed-ink);
  color:var(--ed-white);
}
.ed-share-btn svg{
  fill:none;
  height:19px;
  stroke:currentColor;
  stroke-linecap:square;
  stroke-linejoin:miter;
  stroke-width:1.7;
  width:19px;
}
.ed-share-btn svg path:first-child:last-child{
  fill:currentColor;
  stroke:none;
}
.ed-copy-status{
  color:var(--ed-red);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  margin-left:6px;
  min-width:0;
  text-transform:uppercase;
}

/* Expediente: la imagen debe ocupar y centrar su marco cuadrado, no flotar dentro de él. */
.ed-figure--dossier{
  align-items:center;
  aspect-ratio:1/1;
  background:var(--ed-white);
  display:flex;
  justify-content:center;
  overflow:hidden;
}
.ed-figure--dossier img{
  display:block;
  height:100% !important;
  margin:0 auto;
  object-fit:cover;
  object-position:center center;
  width:100% !important;
}

@media (max-width:759px){
  .ed-creditbar{
    align-items:flex-start;
    flex-direction:column;
    gap:17px;
    padding:16px 0 18px;
  }
  .ed-share{
    justify-content:flex-start;
  }
  .ed-share-label{
    display:block;
    flex-basis:100%;
    margin:0 0 4px;
  }
}

/* SPOILER v1.7 — Perfil público de autor */
.ed-authorbox{width:min(760px,100%);margin:62px auto 0;padding-top:26px;border-top:4px solid var(--ed-ink)}
.ed-authorbox-kicker{color:var(--ed-red);font-size:11px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;margin:0 0 23px}
.ed-authorbox-grid{display:flex;align-items:flex-start;gap:24px}
.ed-author-avatar{width:92px;height:92px;aspect-ratio:1/1;object-fit:cover;flex:none;border:1px solid var(--ed-rule)}
.ed-author-content h2{font-family:"Space Grotesk",Inter,Arial,sans-serif;color:var(--ed-ink);font-size:28px;line-height:1.05;letter-spacing:-.045em;margin:0 0 6px;text-transform:uppercase}
.ed-author-role{color:var(--ed-red);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin:0 0 14px}
.ed-author-bio{color:var(--ed-copy);font-size:16px;line-height:1.62;max-width:540px;margin:0 0 19px}
.ed-author-social{display:flex;flex-wrap:wrap;gap:9px}
.ed-author-link{display:inline-flex;align-items:center;gap:7px;height:36px;border:1px solid var(--ed-rule);color:var(--ed-ink);font-size:11px;font-weight:800;letter-spacing:.08em;padding:0 11px;text-transform:uppercase;transition:background .16s ease,color .16s ease,border-color .16s ease}
.ed-author-link:hover{background:var(--ed-ink);border-color:var(--ed-ink);color:var(--ed-white)}
.ed-author-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:square;stroke-linejoin:miter}
@media(max-width:759px){.ed-authorbox{margin-top:45px;padding-top:21px}.ed-authorbox-grid{flex-direction:column;gap:17px}.ed-author-avatar{width:76px;height:76px}.ed-author-content h2{font-size:25px}.ed-author-link span{display:none}.ed-author-link{width:38px;padding:0;justify-content:center}}

/* SPOILER v1.8 — Publicaciones relacionadas y contacto */
.ed-related-publications{width:min(760px,100%);margin:64px auto 0;padding-top:26px;border-top:4px solid var(--ed-ink)}
.ed-related-publications h2{font-family:"Space Grotesk",Inter,Arial,sans-serif;font-size:32px;line-height:1;letter-spacing:-.05em;text-transform:uppercase;margin:0 0 29px}
.ed-related-grid{display:grid;gap:22px}
.ed-related-card{display:grid;grid-template-columns:170px 1fr;gap:20px;padding-bottom:22px;border-bottom:1px solid var(--ed-rule)}
.ed-related-card img{width:170px;height:170px;object-fit:cover}
.ed-related-label{color:var(--ed-red);font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;margin:0 0 9px}
.ed-related-card h3{font-size:25px;line-height:1.08;letter-spacing:-.045em;text-transform:uppercase;margin:0 0 10px}
.ed-related-card h3 a{color:var(--ed-ink)}
.ed-related-card p:not(.ed-related-label){font-size:15px;line-height:1.52;margin:0 0 12px;color:var(--ed-copy)}
.ed-related-link{color:var(--ed-red);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.ed-whatsapp-contact{width:min(760px,100%);margin:45px auto 0;padding:22px 0;border-top:1px solid var(--ed-rule);border-bottom:1px solid var(--ed-rule);display:flex;justify-content:space-between;align-items:center;gap:18px}
.ed-whatsapp-contact p{font-weight:700;color:var(--ed-ink);margin:0}
.ed-whatsapp-contact a{display:inline-flex;gap:8px;align-items:center;color:var(--ed-red);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.ed-whatsapp-contact svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
@media(max-width:759px){.ed-related-publications{margin-top:45px}.ed-related-publications h2{font-size:26px}.ed-related-card{grid-template-columns:1fr}.ed-related-card img{width:100%;height:auto;aspect-ratio:1/1}.ed-whatsapp-contact{display:block}.ed-whatsapp-contact a{margin-top:15px}}
