/* ===================================================================
   EL RIU — Plantillas de encabezado de artículo
   estandar  -> sin cambios (la que ya había)
   opinion   -> ficha de autor (avatar + kicker) por encima del titular
   reportaje -> hero a pantalla completa con imagen + panel oscuro

   NOTA: el site ya trae ".article-hero h1{color:#101010}" (pub.css) con
   más especificidad que una simple clase, así que aquí los selectores
   de titular van con el selector del contenedor + h1 + !important para
   que ganen siempre, sea cual sea el orden de carga del CSS.
   =================================================================== */

/* ---------- OPINIÓ ---------- */
.dde-article-hero-opinion{padding:36px 0 18px;max-width:760px;margin:0 auto}
.dde-opinion-byline{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.dde-opinion-byline img.dde-author-avatar.opinion-avatar,
.dde-opinion-byline span.dde-author-avatar.opinion-avatar{
  width:56px;height:56px;border-radius:50%;object-fit:cover;
  background:var(--elriu-soft,#edf4fb);display:flex;align-items:center;justify-content:center;
  font:800 20px/1 Inter,Arial,sans-serif;color:var(--elriu-ink,#111111);flex:0 0 auto;
}
.dde-opinion-byline-text{display:flex;flex-direction:column;gap:2px}
.dde-opinion-kicker{
  font-family:Inter,Arial,sans-serif;font-weight:900;font-size:15px;
  color:var(--elriu-red,#c40018);text-decoration:underline;text-underline-offset:4px;
  text-decoration-thickness:2px;width:fit-content;
}
.dde-opinion-author-name{font-family:Merriweather,Georgia,serif;font-size:19px;color:#111}
.dde-article-hero-opinion h1.dde-opinion-title{
  font-family:Merriweather,Georgia,serif!important;font-weight:900!important;font-size:46px!important;
  line-height:1.08!important;letter-spacing:-.02em!important;margin:0 0 18px!important;color:#111!important;
}
.dde-opinion-standfirst{font-family:Georgia,serif;font-size:19px;line-height:1.5;color:#333;margin:0 0 14px}
.dde-opinion-date{font-family:Inter,Arial,sans-serif;font-size:14px;color:#767676}
@media(max-width:760px){.dde-article-hero-opinion h1.dde-opinion-title{font-size:32px!important}}

/* ---------- REPORTATGE ---------- */
.dde-article-hero-reportaje{
  display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:1fr;
  height:100vh!important;min-height:100vh!important;max-height:none!important;
  width:100%;overflow:hidden;background:#0b0b0b;box-sizing:border-box;
}
.dde-article-hero-reportaje .dde-reportaje-media,
.dde-article-hero-reportaje .dde-reportaje-panel{
  height:100%!important;box-sizing:border-box;
}
.dde-reportaje-media{
  background-image:var(--dde-hero-img);background-size:cover;background-position:center;
  filter:brightness(.75);
}
.dde-reportaje-panel{
  background:#0b0b0b;color:#fff;display:flex;flex-direction:column;justify-content:center;
  padding:48px 5vw;text-align:center;
}
.dde-reportaje-panel .dde-reportaje-kicker{
  border-bottom:0!important;margin-bottom:8px!important;padding-bottom:0!important;
}
.dde-reportaje-kicker a{
  font-family:Inter,Arial,sans-serif!important;font-weight:900!important;font-size:12px!important;
  letter-spacing:.14em!important;text-transform:uppercase!important;
  color:var(--elriu-red,#df281e)!important;text-decoration:none!important;
  border-bottom:0!important;
}
.dde-article-hero-reportaje h1.dde-reportaje-title{
  font-family:Merriweather,Georgia,serif!important;font-style:italic!important;font-weight:400!important;
  font-size:44px!important;line-height:1.16!important;margin:18px 0 20px!important;color:#fff!important;
}
.dde-reportaje-standfirst{font-family:Georgia,serif;font-size:18px;line-height:1.55;color:rgba(255,255,255,.86)!important;margin:0 auto;max-width:520px}
.dde-reportaje-caption{max-width:900px;margin:10px auto 0;padding:0 5vw;font:500 13px/1.4 Inter,Arial,sans-serif;color:#767676;text-align:right}
@media(max-width:900px){
  .dde-article-hero-reportaje{grid-template-columns:1fr;height:auto!important;min-height:auto!important}
  .dde-article-hero-reportaje .dde-reportaje-media,
  .dde-article-hero-reportaje .dde-reportaje-panel{height:auto!important}
  .dde-reportaje-media{min-height:260px}
  .dde-article-hero-reportaje h1.dde-reportaje-title{font-size:30px!important}
}

/* ===================================================================
   OPINIÓ — plantilla 2026 (estilo grandes cabeceras, identidad Diario de España)
   Franja a todo lo ancho con la firma protagonista: retrato grande,
   nombre y cargo; titular en serifa; capitular en el texto; cita
   destacada; ficha de autor con "También de…" y columna "Más opinión".
   =================================================================== */
.er-op-hero{--op-ink:#111111;--op-acc:#AD1519;--op-bg:#f1f4f8;
  position:relative;background:var(--op-bg);box-shadow:0 0 0 100vmax var(--op-bg);clip-path:inset(0 -100vmax);
  border-top:0;margin:-34px 0 0;padding:46px 0 40px}
.er-op-hero::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--op-ink);box-shadow:0 0 0 100vmax var(--op-ink);clip-path:inset(0 -100vmax)}
.er-op-hero__in{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:48px;align-items:center}
.er-op-hero__in.no-photo{grid-template-columns:minmax(0,1fr) 200px}
.er-op-label{display:flex;align-items:center;gap:10px;margin:0 0 18px;font:900 12px/1 Inter,Arial,sans-serif;letter-spacing:.22em;text-transform:uppercase}
.er-op-label a{color:var(--op-ink)!important;text-decoration:none!important}
.er-op-label a:first-child{display:inline-flex;align-items:center;gap:10px}
.er-op-label a:first-child::before{content:"";width:28px;height:3px;background:var(--op-acc)}
.er-op-label span{color:#9aa9ba}
.er-op-label a+span+a{letter-spacing:.12em;color:var(--op-acc)!important}
.er-op-hero h1.er-op-title{font-family:Merriweather,Georgia,serif!important;font-weight:700!important;font-size:50px!important;line-height:1.1!important;letter-spacing:-1.2px!important;color:#0d1520!important;margin:0 0 18px!important;text-wrap:balance}
.er-op-dek{font-family:Merriweather,Georgia,serif;font-style:italic;font-weight:300;font-size:21px;line-height:1.5;color:#3a4553;margin:0 0 26px;max-width:680px}
.er-op-byline{display:flex;align-items:center;gap:12px;padding-top:18px;border-top:1px solid #cdd7e3;font-family:Inter,Arial,sans-serif}
.er-op-byline__mini{display:none}
.er-op-by{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7b8898;margin-bottom:3px}
.er-op-name{display:inline-block;font-family:Merriweather,Georgia,serif;font-weight:900;font-size:22px;line-height:1.15;color:var(--op-ink)!important;text-decoration:none!important}
.er-op-name:hover{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:4px}
.er-op-role{display:block;margin-top:4px;font-size:14px;font-weight:600;color:#3d4b5c}
.er-op-date{display:block;margin-top:6px;font-size:12.5px;color:#7b8898}
/* Retrato */
.er-op-portrait{position:relative;display:block;justify-self:center;width:250px;aspect-ratio:1;text-decoration:none!important}
.er-op-hero__in.no-photo .er-op-portrait{width:170px}
.er-op-portrait::before{content:"";position:absolute;inset:-12px;border-radius:50%;border:1px solid var(--op-ink);opacity:.35}
.er-op-portrait::after{content:"“";position:absolute;right:4%;bottom:6%;z-index:2;width:58px;height:58px;border-radius:50%;background:var(--op-acc);color:#fff;border:4px solid var(--op-bg);font:900 50px/76px Merriweather,Georgia,serif;text-align:center;box-shadow:0 8px 18px rgba(17,17,17,.25)}
.er-op-hero__in.no-photo .er-op-portrait::after{width:46px;height:46px;font-size:40px;line-height:60px}
.er-op-portrait img.er-op-photo,.er-op-portrait span.er-op-photo{position:relative;z-index:1;display:grid!important;place-items:center;width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover;object-position:50% 25%;
  border:6px solid #fff!important;box-shadow:0 18px 40px rgba(17,17,17,.18);background:var(--op-ink)!important;color:#fff!important;
  font:900 84px/1 Merriweather,Georgia,serif!important;filter:saturate(.92) contrast(1.03);transition:filter .3s,transform .3s}
.er-op-hero__in.no-photo span.er-op-photo{font-size:64px!important}
.er-op-portrait:hover img.er-op-photo{filter:none;transform:scale(1.015)}
/* Imagen principal y fila de compartir */
.er-op-figure{max-width:1080px!important;margin:34px auto 0!important}
.is-opinion .er-op-share{max-width:1080px;margin:0 auto}
/* Cuerpo: capitular y citas */
.er-op-body > p:first-of-type::first-letter{float:left;font-family:Merriweather,Georgia,serif;font-weight:900;font-size:4.3em;line-height:.82;color:#111111;margin:.06em .12em -.02em 0;padding-top:.04em}
.er-op-body blockquote{border:0!important;border-top:3px solid #111111!important;border-bottom:1px solid #111111!important;margin:36px 0!important;padding:22px 6% 20px!important;text-align:center;font-family:Merriweather,Georgia,serif!important;font-style:italic!important;font-weight:300;font-size:28px!important;line-height:1.38!important;color:#111111!important;position:relative}
.er-op-body blockquote::before{content:"“";position:absolute;left:50%;top:-30px;transform:translateX(-50%);width:44px;height:44px;line-height:60px;background:#fff;color:#AD1519;font:900 54px/1 Merriweather,Georgia,serif;text-align:center}
.er-op-disclaimer{margin:30px 0 0;padding-top:14px;border-top:1px solid #dfe4ea;font:italic 13px/1.5 Merriweather,Georgia,serif;color:#6b7686}
/* Ficha del autor */
.er-op-author{display:grid;grid-template-columns:132px minmax(0,1fr);gap:26px;align-items:start;margin:30px 0 10px;padding:28px;background:#f1f4f8;border-top:4px solid #111111;font-family:Inter,Arial,sans-serif}
.er-op-author__photo img,.er-op-author__photo span{display:grid!important;place-items:center;width:132px!important;height:132px!important;border-radius:50%!important;object-fit:cover;object-position:50% 25%;border:4px solid #fff!important;background:#111111!important;color:#fff!important;font:900 48px/1 Merriweather,Georgia,serif!important}
.er-op-author__label{display:block;font-size:11px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;color:#AD1519;margin-bottom:6px}
.er-op-author h2{margin:0;font:900 26px/1.15 Merriweather,Georgia,serif;letter-spacing:-.3px}
.er-op-author h2 a{color:#111111!important;text-decoration:none!important}
.er-op-author__role{margin:5px 0 0;font-size:14px;font-weight:700;color:#3d4b5c}
.er-op-author__bio{margin:12px 0 0;font:400 15.5px/1.6 Merriweather,Georgia,serif;color:#2c3642}
.er-op-author__links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:14px}
.er-op-author__all{font-weight:800;font-size:13px;color:#111111!important;text-decoration:none!important;border-bottom:2px solid #111111;padding-bottom:2px}
.er-op-author__x{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px;color:#3d4b5c!important;text-decoration:none!important}
.er-op-author__x svg{width:15px;height:15px}
.er-op-author__more{margin-top:20px;padding-top:14px;border-top:1px solid #cdd7e3}
.er-op-author__more > span{font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#7b8898}
.er-op-author__more ul{list-style:none;margin:8px 0 0;padding:0}
.er-op-author__more li{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #dfe4ea}
.er-op-author__more li:last-child{border-bottom:0}
.er-op-author__more a{font:700 16px/1.3 Merriweather,Georgia,serif;color:#101010!important;text-decoration:none!important}
.er-op-author__more a:hover{color:#111111!important;text-decoration:underline!important}
.er-op-author__more time{flex:0 0 auto;font-size:12px;color:#7b8898;padding-top:3px}
/* Columna "Más opinión" */
.er-op-rail{margin-top:20px;border-top:4px solid #111111;padding-top:12px}
.er-op-rail h3{margin:0 0 6px;font:900 13px/1 Inter,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#111111}
.er-op-rail__item{display:grid!important;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;padding:13px 0!important;border-top:1px solid #dfe4ea;text-decoration:none!important}
.er-op-rail__item:first-of-type{border-top:0}
.er-op-rail__item img,.er-op-rail__item span.er-op-rail__img{display:grid!important;place-items:center;width:52px!important;height:52px!important;border-radius:50%!important;object-fit:cover;object-position:50% 25%;background:#111111!important;color:#fff!important;font:900 20px/1 Merriweather,Georgia,serif!important}
.er-op-rail__item > span{font:700 15px/1.28 Merriweather,Georgia,serif;color:#101010}
.er-op-rail__item em{display:block;font:800 10.5px/1.2 Inter,Arial,sans-serif;font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:#AD1519;margin-bottom:4px}
.er-op-rail__item:hover > span{color:#111111;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

@media (max-width:900px){
  .er-op-hero{padding:30px 0 28px;margin-top:-24px}
  .er-op-hero__in,.er-op-hero__in.no-photo{grid-template-columns:1fr;gap:0}
  .er-op-portrait{display:none}
  .er-op-byline__mini{display:block;flex:0 0 auto}
  .er-op-byline__mini img,.er-op-byline__mini span{display:grid!important;place-items:center;width:64px!important;height:64px!important;border-radius:50%!important;object-fit:cover;object-position:50% 25%;border:3px solid #fff!important;box-shadow:0 6px 16px rgba(17,17,17,.18)}
  .er-op-hero h1.er-op-title{font-size:34px!important;letter-spacing:-.6px!important}
  .er-op-dek{font-size:18px}
}
@media (max-width:620px){
  .er-op-hero h1.er-op-title{font-size:29px!important}
  .er-op-body blockquote{font-size:22px!important;padding:20px 2% 18px!important}
  .er-op-author{grid-template-columns:1fr;gap:14px;padding:22px 18px}
  .er-op-author__photo img,.er-op-author__photo span{width:96px!important;height:96px!important;font-size:36px!important}
  .er-op-author__more li{flex-direction:column;gap:2px}
}
