/*
Theme Name: EnDirecto
Theme URI: https://endirecto.mx/
Author: Medios e Información 360
Author URI: https://mei360.com.mx/
Description: Theme propio para EnDirecto — "con el derecho a saber y a opinar". Conserva la estructura y la identidad de la portada anterior (dorado y negro, columnistas, videos, tendencia), sin JNews ni WPBakery. Banners manejados con el módulo MEI Banners.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Propietario
Text Domain: mei-endirecto
*/

/* =========================================================
   0. Base
   ========================================================= */
:root {
  --ed-gold: #CC8D1A;
  --ed-gold-2: #E0A93A;
  --ed-ink: #111;
  --ed-black: #0c0c0c;
  --ed-gray: #6f6f6f;
  --ed-line: #e7e5e0;
  --ed-soft: #f7f5f0;
  --ed-wrap: 1180px;
  --ed-radius: 10px;
  --ed-shadow: 0 14px 34px -20px rgba(17, 17, 17, .45);
  --f-h: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-s: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-r: "Source Serif 4", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 52px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ed-ink); font: 400 15px/1.6 var(--f-s); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ed-gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ed-gold); color: #fff; padding: 8px 14px; font-weight: 700; }
.ed-skip:focus { left: 8px; }
.ed-ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.ed-wrap { width: 100%; max-width: var(--ed-wrap); margin-inline: auto; padding-inline: 20px; }
.ed-wrap--narrow { max-width: 860px; }
.ed-only-m { display: none; }

/* =========================================================
   1. Encabezado (esencia: barra negra, logo + banner, menú negro)
   ========================================================= */
.ed-topbar { background: var(--ed-black); color: #fff; font-size: 12.5px; }
.ed-topbar__in { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.ed-topnav__menu { display: flex; gap: 16px; flex-wrap: wrap; }
.ed-topnav__menu a { font-weight: 700; opacity: .92; transition: color .2s, opacity .2s; }
.ed-topnav__menu a:hover { color: var(--ed-gold-2); opacity: 1; }
.ed-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.ed-date { color: rgba(255, 255, 255, .75); font-weight: 500; white-space: nowrap; }
.ed-date::first-letter { text-transform: uppercase; }
.ed-social { display: flex; align-items: center; gap: 14px; }
.ed-social__a { display: grid; place-items: center; font-size: 15px; transition: color .2s, transform .25s var(--ease); }
.ed-social__a:hover { color: var(--ed-gold-2); transform: translateY(-2px); }

.ed-mast { background: #fff; }
.ed-mast__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 14px; }
.ed-logo { display: block; flex: none; }
.ed-logo__img { height: 110px; width: auto; transition: transform .5s var(--ease), filter .5s; }
.ed-mast .ed-logo:hover .ed-logo__img { transform: scale(1.02); filter: saturate(1.15); }
.ed-mast__ad { flex: 0 1 728px; min-width: 0; display: flex; justify-content: flex-end; }
.ed-mast__ad .mei-bn img { border-radius: 4px; }

.ed-nav { position: sticky; top: 0; z-index: 60; background: var(--ed-black); color: #fff; transition: box-shadow .3s; }
.admin-bar .ed-nav { top: 32px; }
.is-stuck .ed-nav { box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .7); }
.ed-nav::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--ed-gold), transparent); transform: scaleX(0); transition: transform .6s var(--ease); }
.is-stuck .ed-nav::after { transform: scaleX(1); }
.ed-nav__in { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.ed-nav__mini { width: 0; opacity: 0; overflow: hidden; flex: none; transition: width .45s var(--ease), opacity .3s; }
.ed-nav__mini .ed-logo__img { height: 30px; width: auto; max-width: none; }
.is-stuck .ed-nav__mini { width: 128px; opacity: 1; }
.ed-menu { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; gap: 2px; }
.ed-menu > li { position: relative; }
.ed-menu > li > a { position: relative; display: flex; align-items: center; gap: 4px; height: var(--nav-h); padding: 0 15px; font: 700 14.5px/1 var(--f-h); text-transform: uppercase; letter-spacing: .03em; transition: color .2s; }
.ed-menu > li > a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 10px; height: 2px; background: var(--ed-gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.ed-menu > li:hover > a, .ed-menu > .current-menu-item > a, .ed-menu > .current-category-ancestor > a { color: var(--ed-gold-2); }
.ed-menu > li:hover > a::after, .ed-menu > .current-menu-item > a::after { transform: scaleX(1); }
.ed-menu .menu-item-has-children > a::before { content: ""; order: 2; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.ed-menu .sub-menu { position: absolute; top: 100%; left: 50%; min-width: 250px; padding: 10px; background: #fff; color: var(--ed-ink); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); border-top: 3px solid var(--ed-gold); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: .25s var(--ease); z-index: 5; }
.ed-menu li:hover > .sub-menu, .ed-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ed-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font: 600 14px/1.25 var(--f-s); transition: background .2s, color .2s, padding .25s var(--ease); }
.ed-menu .sub-menu a:hover { background: var(--ed-soft); color: var(--ed-gold); padding-left: 16px; }
.ed-nav__search { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; flex: none; transition: background .25s, color .25s; }
.ed-nav__search:hover { background: var(--ed-gold); }

.ed-undernav { padding-top: 26px; }
.ed-undernav .mei-bn img { border-radius: 4px; }

.ed-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.ed-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ed-gold), var(--ed-gold-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
body:not(.single) .ed-progress { display: none; }

/* Menú lateral (celular) */
.ed-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.ed-drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.ed-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(380px, 88vw); background: var(--ed-black); color: #fff; padding: 20px 24px 28px; overflow-y: auto; transform: translateX(-100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 20px; }
.ed-drawer.is-open { visibility: visible; }
.ed-drawer.is-open .ed-drawer__bg { opacity: 1; }
.ed-drawer.is-open .ed-drawer__panel { transform: none; }
.ed-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.ed-logo--drawer .ed-logo__img { height: 44px; }
.ed-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; border: 1px solid rgba(255, 255, 255, .25); transition: transform .3s var(--ease), background .25s; }
.ed-x:hover { transform: rotate(90deg); background: var(--ed-gold); border-color: var(--ed-gold); }
.ed-drawer__menu > li > a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 800 22px/1.1 var(--f-h); text-transform: uppercase; transition: color .2s, padding .3s var(--ease); }
.ed-drawer__menu a:hover { color: var(--ed-gold-2); padding-left: 6px; }
.ed-drawer__menu .sub-menu { padding: 6px 0 10px 12px; display: grid; gap: 2px; }
.ed-drawer__menu .sub-menu a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.ed-drawer .ed-sform input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.ed-drawer__social { margin-top: auto; display: flex; gap: 18px; font-size: 20px; }

.ed-search { position: fixed; inset: 0; z-index: 210; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ed-search.is-open { opacity: 1; visibility: visible; }
.ed-search__x { position: absolute; top: 24px; right: 24px; border-color: var(--ed-line); }
.ed-search__in { width: min(760px, 90vw); transform: translateY(20px); transition: transform .4s var(--ease); }
.ed-search.is-open .ed-search__in { transform: none; }
.ed-search__hint { font: 800 20px/1 var(--f-h); color: var(--ed-gold); text-transform: uppercase; margin-bottom: 14px; }
.ed-search .ed-sform input { font: 800 clamp(26px, 5vw, 46px)/1.1 var(--f-h); border: 0; border-bottom: 3px solid var(--ed-ink); border-radius: 0; padding: 10px 60px 10px 0; background: transparent; }
.ed-sform { position: relative; display: flex; }
.ed-sform input { width: 100%; font: 500 15px var(--f-s); padding: 12px 52px 12px 18px; border: 1.5px solid var(--ed-line); border-radius: 999px; background: #fff; color: var(--ed-ink); outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.ed-sform input:focus { border-color: var(--ed-gold); }
.ed-sform button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--ed-gold); color: #fff; display: grid; place-items: center; font-size: 17px; transition: background .2s; }
.ed-sform button:hover { background: var(--ed-ink); }

/* =========================================================
   2. Portada: columna principal + barra lateral
   ========================================================= */
.ed-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; padding-top: 28px; padding-bottom: 20px; align-items: start; }
.ed-home__main > * + * { margin-top: 38px; }
.ed-home__side > * + * { margin-top: 32px; }

/* Encabezado de bloque: barra dorada (como la portada anterior) */
.ed-head { margin-bottom: 20px; }
.ed-head--bar .ed-head__t { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 16px; border-radius: 6px; background: linear-gradient(100deg, var(--ed-gold), var(--ed-gold-2) 140%); color: #fff; font: 800 16px/1.1 var(--f-h); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; }
.ed-head--bar .ed-head__t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.ed-head--bar:hover .ed-head__t::after, .ed-head--bar.is-in .ed-head__t::after { transform: translateX(120%); }
.ed-head--bar .ed-head__t a { display: inline-flex; align-items: center; gap: 8px; }
.ed-head--bar .ed-head__t a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.ed-head--bar .ed-head__t a:hover::after { opacity: 1; transform: none; }
.ed-head--center .ed-head__t { justify-content: center; }
.ed-head__more { display: none; }

/* Categoría sobre imagen */
.ed-pill { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-block; background: var(--ed-gold); color: #fff; font: 700 11px/1 var(--f-s); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; transition: background .25s, transform .25s var(--ease); }
.ed-pill:hover { background: var(--ed-ink); transform: translateY(-1px); }
.ed-cat { color: var(--ed-gold); font: 700 11.5px/1 var(--f-s); text-transform: uppercase; letter-spacing: .06em; }
.ed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #8a8a8a; }
.ed-meta time::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ed-gold); margin-right: 6px; vertical-align: 1px; }
.ed-by { color: var(--ed-ink); }
.ed-ex { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #444; }

.ed-media { position: relative; display: block; overflow: hidden; border-radius: var(--ed-radius); background: var(--ed-soft); }
.ed-media img, .ed-media .ed-noimg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ed-card:hover .ed-media img, .ed-item:hover .ed-media img { transform: scale(1.06); }
.ed-noimg { display: block; min-height: 100%; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #1a1a1a, #333 60%, var(--ed-gold)); }
.ed-t { font: 700 18px/1.25 var(--f-h); letter-spacing: -.005em; }
.ed-t a { background: linear-gradient(var(--ed-gold), var(--ed-gold)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease), color .2s; }
.ed-t a:hover { background-size: 100% 2px; }

/* Carrusel principal */
.ed-slider__stage { position: relative; aspect-ratio: 16 / 9.4; border-radius: 14px; overflow: hidden; background: #111; box-shadow: var(--ed-shadow); isolation: isolate; }
.ed-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.ed-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ed-slide__img { position: absolute; inset: 0; }
.ed-slide__img img, .ed-slide__img .ed-noimg { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 7s linear; }
.ed-slide.is-active .ed-slide__img img { transform: scale(1.01); }
.ed-slide__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 38%, transparent 65%); }
.ed-slide__body { position: absolute; left: 30px; right: 110px; bottom: 30px; z-index: 2; color: #fff; }
.ed-slide__body .ed-pill { position: static; }
.ed-slide__body > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ed-slide.is-active .ed-slide__body > * { opacity: 1; transform: none; }
.ed-slide.is-active .ed-slide__body > :nth-child(2) { transition-delay: .1s; }
.ed-slide.is-active .ed-slide__body > :nth-child(3) { transition-delay: .2s; }
.ed-slide__t { margin: 12px 0 10px; font: 800 clamp(24px, 2.6vw, 36px)/1.1 var(--f-h); letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.ed-slide__t a:hover { color: var(--ed-gold-2); }
.ed-slide__meta { display: flex; gap: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .8); }
.ed-slide__meta .ed-by { color: #fff; }
.ed-slider__arrow { position: absolute; right: 22px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; font-size: 20px; color: #fff; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; transition: background .25s, transform .25s var(--ease); }
.ed-slider__arrow--next { bottom: 30px; background: var(--ed-gold); border-color: var(--ed-gold); }
.ed-slider__arrow--prev { bottom: 80px; }
.ed-slider__arrow:hover { transform: scale(1.06); background: var(--ed-gold); border-color: var(--ed-gold); }
.ed-slider__bar { position: absolute; inset: auto 0 0; height: 4px; z-index: 3; background: rgba(255, 255, 255, .15); }
.ed-slider__bar i { display: block; height: 100%; background: var(--ed-gold); transform-origin: 0 50%; transform: scaleX(0); }
.ed-slider.is-running .ed-slider__bar i { animation: edBar var(--dur, 6s) linear forwards; }
.ed-slider.is-paused .ed-slider__bar i { animation-play-state: paused; }
@keyframes edBar { to { transform: scaleX(1); } }
.ed-slider__thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 10px; }
.ed-slider__thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; opacity: .5; transition: opacity .3s, transform .3s var(--ease); }
.ed-slider__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-slider__thumb::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--ed-gold); border-radius: 8px; opacity: 0; transition: opacity .3s; }
.ed-slider__thumb:hover { opacity: .85; transform: translateY(-2px); }
.ed-slider__thumb.is-active { opacity: 1; }
.ed-slider__thumb.is-active::after { opacity: 1; }

/* Columnistas */
.ed-colum__wrap { position: relative; }
.ed-colum__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 14px; }
.ed-colum__track::-webkit-scrollbar { display: none; }
.ed-col { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0 16px; background: #fff; border: 1px solid var(--ed-line); border-radius: 12px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.ed-col:hover { transform: translateY(-4px); box-shadow: var(--ed-shadow); border-color: transparent; }
.ed-col__img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ed-soft); }
.ed-col__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .8s var(--ease); }
.ed-col:hover .ed-col__img img { transform: scale(1.06); }
.ed-col__name { margin: 14px 12px 6px; font: 700 11px/1.2 var(--f-s); letter-spacing: .08em; text-transform: uppercase; color: var(--ed-gold); }
.ed-col__name:hover { color: var(--ed-ink); }
.ed-col__t { padding: 0 14px; font: 700 15.5px/1.3 var(--f-h); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ed-col__t a:hover { color: var(--ed-gold); }
.ed-col time { margin-top: auto; padding-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9a9a9a; }
.ed-colum__arrow { position: absolute; top: 34%; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ed-ink); font-size: 18px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); transition: background .2s, color .2s, transform .25s var(--ease); }
.ed-colum__arrow[data-dir="-1"] { left: -14px; }
.ed-colum__arrow[data-dir="1"] { right: -14px; }
.ed-colum__arrow:hover { background: var(--ed-gold); color: #fff; transform: scale(1.08); }

/* Videos */
.ed-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--ed-shadow); }
.ed-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .8s var(--ease); }
.ed-player:hover .ed-player__poster { opacity: 1; transform: scale(1.03); }
.ed-player__play { position: absolute; inset: 0; display: grid; place-items: center; color: #e62117; transition: color .25s; }
.ed-player__play svg { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .4)); transition: transform .3s var(--ease); }
.ed-player__play:hover { color: var(--ed-gold); }
.ed-player__play:hover svg { transform: scale(1.1); }
.ed-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ed-player__bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--ed-line); border-radius: 10px; }
.ed-player__now { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--ed-gold); font: 700 11px/1 var(--f-s); text-transform: uppercase; letter-spacing: .08em; }
.ed-player__title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-player__title:hover { color: var(--ed-gold); }
.ed-player__nav { display: flex; gap: 6px; flex: none; }
.ed-player__nav button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ed-line); border-radius: 6px; transition: background .2s, color .2s, border-color .2s; }
.ed-player__nav button:hover { background: var(--ed-gold); border-color: var(--ed-gold); color: #fff; }
.ed-playlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.ed-pl { display: grid; gap: 8px; align-content: start; text-align: left; padding: 8px; border: 1px solid var(--ed-line); border-radius: 12px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.ed-pl:hover { transform: translateY(-3px); box-shadow: var(--ed-shadow); }
.ed-pl.is-active { border-color: var(--ed-gold); box-shadow: 0 0 0 1px var(--ed-gold); }
.ed-pl__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.ed-pl__img img { width: 100%; height: 100%; object-fit: cover; }
.ed-pl__img i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #fff; background: rgba(0, 0, 0, .25); transition: background .25s; }
.ed-pl:hover .ed-pl__img i, .ed-pl.is-active .ed-pl__img i { background: rgba(204, 141, 26, .55); }
.ed-pl__t { font: 700 14px/1.3 var(--f-h); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ed-pl__c { font-size: 11px; font-weight: 700; color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; }

/* Tarjetas */
.ed-card__img { position: relative; }
.ed-card--v .ed-media { aspect-ratio: 16 / 10; }
.ed-card--v .ed-card__body { padding-top: 12px; }
.ed-card--side + .ed-card--side { margin-top: 22px; }
.ed-card--side .ed-t { font-size: 17px; }
.ed-card--row { display: grid; grid-template-columns: 46% 1fr; gap: 24px; align-items: start; }
.ed-card--row + .ed-card--row { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--ed-line); }
.ed-card--row .ed-media { aspect-ratio: 16 / 11; }
.ed-card--row .ed-t { font-size: clamp(20px, 1.9vw, 25px); font-weight: 800; line-height: 1.2; }
.ed-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border: 1.5px solid var(--ed-ink); border-radius: 6px; font: 700 12px/1 var(--f-s); text-transform: uppercase; letter-spacing: .06em; transition: background .25s, color .25s, border-color .25s, gap .3s var(--ease); }
.ed-more:hover { background: var(--ed-gold); border-color: var(--ed-gold); color: #fff; gap: 10px; }
.ed-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.ed-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ed-loadmore { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.ed-loadmore::before, .ed-loadmore::after { content: ""; flex: 1; height: 1px; background: var(--ed-line); }
.ed-btn { padding: 11px 26px; border: 1.5px solid var(--ed-ink); border-radius: 8px; font: 700 12.5px/1 var(--f-s); letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.ed-btn:hover { background: var(--ed-gold); border-color: var(--ed-gold); color: #fff; }
.ed-btn.is-loading { opacity: .6; pointer-events: none; }

.ed-card--h { display: grid; grid-template-columns: 40% 1fr; gap: 22px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--ed-line); }
.ed-card--h:first-child { padding-top: 0; }
.ed-card--h .ed-media { aspect-ratio: 16 / 11; }
.ed-card--h .ed-t { font-size: clamp(19px, 1.8vw, 23px); font-weight: 800; }

.ed-card--overlay { position: relative; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate; }
.ed-card--overlay .ed-media { aspect-ratio: 16 / 10; border-radius: 0; }
.ed-card--overlay.ed-card--xl .ed-media { aspect-ratio: 16 / 9; }
.ed-card--overlay .ed-card__body { position: absolute; inset: auto 0 0; padding: 60px 22px 20px; background: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .5) 55%, transparent); pointer-events: none; }
.ed-card--overlay .ed-card__body a { pointer-events: auto; }
.ed-card--overlay .ed-pill { position: static; }
.ed-card--overlay .ed-t { font-size: 21px; margin-top: 10px; }
.ed-card--overlay.ed-card--xl .ed-t { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; line-height: 1.1; }
.ed-card--overlay .ed-ex { color: rgba(255, 255, 255, .85); max-width: 680px; }
.ed-card--overlay .ed-meta, .ed-card--overlay .ed-by { color: rgba(255, 255, 255, .8); }

.ed-item { position: relative; display: grid; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--ed-line); }
.ed-item:first-of-type { padding-top: 0; }
.ed-item:last-child { border-bottom: 0; }
.ed-item .ed-t { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ed-item--thumb { grid-template-columns: 112px 1fr; align-items: center; }
.ed-item--thumb .ed-media { aspect-ratio: 4 / 3; border-radius: 8px; }
.ed-item--num { padding-right: 30px; }
.ed-item__n { position: absolute; right: 0; bottom: 10px; font: 900 40px/1 var(--f-h); color: transparent; -webkit-text-stroke: 1.5px #d6d2c8; }
.ed-item .ed-meta { margin-top: 6px; }

.ed-side-ad .mei-bn img { border-radius: 10px; }
.ed-sticky { position: sticky; top: calc(var(--nav-h) + 24px); margin-top: 28px; }

/* Banners dentro de la nota */
.mei-bn--inline, .mei-bn--end { margin: 2em auto; padding: 16px 0; border-block: 1px solid var(--ed-line); }

/* =========================================================
   3. Archivo, nota, página
   ========================================================= */
.ed-sec.ed-archive { padding: 30px 0 20px; }
.ed-archive .ed-head { margin-bottom: 26px; }
.ed-archive .ed-head__t { font-size: 22px; min-height: 52px; }
.ed-archive__desc { margin: -10px 0 26px; color: var(--ed-gray); }
.ed-archive__top { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 36px; }
.ed-archive__pair { display: grid; gap: 18px; }
.ed-archive__pair .ed-card--overlay { display: grid; }
.ed-archive__pair .ed-card--overlay .ed-media { aspect-ratio: auto; height: 100%; min-height: 200px; }
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.ed-layout__side { align-self: stretch; }
.ed-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.ed-pager a, .ed-pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: 12px; border: 1px solid var(--ed-line); border-radius: 8px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.ed-pager .current { background: var(--ed-ink); border-color: var(--ed-ink); color: #fff; }
.ed-pager a:hover { background: var(--ed-gold); border-color: var(--ed-gold); color: #fff; }
.ed-pager .dots { border: 0; }
.ed-empty { text-align: center; max-width: 520px; margin: 30px auto; display: grid; gap: 20px; }

.ed-single__head { padding: 30px 0 22px; }
.ed-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 700 11.5px/1 var(--f-s); letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 16px; }
.ed-crumbs a:hover { color: var(--ed-gold); }
.ed-crumbs a:last-child { color: var(--ed-gold); }
.ed-single__title { font: 800 clamp(30px, 3.6vw, 46px)/1.12 var(--f-h); letter-spacing: -.02em; text-wrap: balance; }
.ed-single__lede { margin-top: 16px; font: 400 19px/1.6 var(--f-r); color: #444; }
.ed-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ed-line); font-size: 13px; color: var(--ed-gray); }
.ed-single__meta .ed-cat { font-size: 12px; }
.ed-single__rt { display: inline-flex; align-items: center; gap: 6px; }
.ed-single__rt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ed-gold); }
.ed-single__img { margin: 0 auto 30px; }
.ed-single__img img { width: 100%; max-height: 680px; object-fit: cover; border-radius: 14px; }
.ed-single__img figcaption { margin-top: 8px; font-size: 13px; color: var(--ed-gray); }
.ed-share { display: flex; gap: 10px; margin-bottom: 24px; }
.ed-share__a { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ed-line); font-size: 17px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.ed-share__a:hover { transform: translateY(-3px); color: #fff; }
.ed-share--wa:hover { background: #25D366; border-color: #25D366; }
.ed-share--fb:hover { background: #1877F2; border-color: #1877F2; }
.ed-share--x:hover, .ed-share--link:hover { background: var(--ed-ink); border-color: var(--ed-ink); }
.ed-share__ok { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); background: var(--ed-ink); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .25s; }
.ed-share--link.is-ok .ed-share__ok { opacity: 1; transform: translate(-50%, 0); }
.ed-content { font: 400 19px/1.75 var(--f-r); color: #222; overflow-wrap: anywhere; }
.ed-content > * + * { margin-top: 1.1em; }
.ed-content h2, .ed-content h3, .ed-content h4 { font-family: var(--f-h); font-weight: 800; line-height: 1.2; margin-top: 1.5em; }
.ed-content h2 { font-size: 28px; } .ed-content h3 { font-size: 24px; } .ed-content h4 { font-size: 20px; }
.ed-content a { color: var(--ed-gold); text-decoration: underline; text-underline-offset: 3px; }
.ed-content img { border-radius: 10px; }
.ed-content figure { margin-inline: 0; }
.ed-content figcaption, .ed-content .wp-caption-text { font: 13px/1.5 var(--f-s); color: var(--ed-gray); margin-top: 8px; }
.ed-content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ed-gold); font-style: italic; font-size: 21px; }
.ed-content ul, .ed-content ol { padding-left: 1.3em; }
.ed-content ul { list-style: disc; }
.ed-content iframe { width: 100%; border: 0; }
.ed-content iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }
.ed-content table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--f-s); }
.ed-content td, .ed-content th { border: 1px solid var(--ed-line); padding: 8px 10px; }
.ed-content .alignleft { float: left; margin: .3em 1.2em .6em 0; }
.ed-content .alignright { float: right; margin: .3em 0 .6em 1.2em; }
.ed-content .aligncenter { margin-inline: auto; }
.ed-content .mei-bn { font-family: var(--f-s); }
.ed-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; font-size: 13px; }
.ed-tags span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }
.ed-tags a { padding: 6px 12px; border-radius: 999px; background: var(--ed-soft); transition: background .2s, color .2s; }
.ed-tags a:hover { background: var(--ed-gold); color: #fff; }
.ed-related { margin-top: 44px; }
.ed-related .ed-grid3 { margin-top: 0; }
.ed-page { padding: 34px 0 20px; }
.ed-404__box { text-align: center; max-width: 620px; margin: 30px auto 50px; display: grid; gap: 14px; justify-items: center; }
.ed-404__code { font: 900 clamp(100px, 16vw, 180px)/.9 var(--f-h); background: linear-gradient(120deg, var(--ed-gold), var(--ed-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed-404__box h1 { font: 800 30px/1.15 var(--f-h); }
.ed-404__box p { color: var(--ed-gray); }
.ed-404__box .ed-sform { width: 100%; }

/* =========================================================
   4. Pie (negro, como antes)
   ========================================================= */
.ed-footer { margin-top: 50px; background: var(--ed-black); color: #fff; padding: 48px 0 40px; position: relative; }
.ed-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--ed-gold), var(--ed-gold-2), var(--ed-gold)); }
.ed-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 50px; }
.ed-logo--foot .ed-logo__img { height: 54px; }
.ed-footer__brand p { margin: 16px 0 18px; color: rgba(255, 255, 255, .7); font-size: 14px; max-width: 360px; }
.ed-social--foot .ed-social__a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
.ed-social--foot .ed-social__a:hover { background: var(--ed-gold); border-color: var(--ed-gold); color: #fff; }
.ed-footer__h { font: 800 15px/1 var(--f-h); text-transform: uppercase; letter-spacing: .08em; color: var(--ed-gold-2); margin-bottom: 16px; }
.ed-footer__menu { columns: 2; column-gap: 20px; }
.ed-footer__menu a { display: inline-block; padding: 5px 0; font: 700 14px/1.2 var(--f-h); text-transform: uppercase; color: rgba(255, 255, 255, .85); transition: color .2s, transform .25s var(--ease); }
.ed-footer__menu a:hover { color: var(--ed-gold-2); transform: translateX(4px); }
.ed-footer__post { display: grid; gap: 4px; padding-block: 9px; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 700 14.5px/1.3 var(--f-h); transition: color .2s; }
.ed-footer__post time { font: 500 11.5px var(--f-s); color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .04em; }
.ed-footer__post:hover { color: var(--ed-gold-2); }
.ed-totop { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ed-gold); color: #fff; font-size: 20px; border-radius: 10px; box-shadow: 0 12px 24px -10px rgba(204, 141, 26, .8); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s; }
.ed-totop .ed-ico { transform: rotate(90deg); }
.ed-totop:hover { background: var(--ed-ink); }
.is-scrolled .ed-totop { opacity: 1; transform: none; pointer-events: auto; }
.mei-legal-bar { border-top: 1px solid rgba(255, 255, 255, .08); }

/* Aparición al hacer scroll */
.ed-js .ed-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ed-js .ed-reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   5. Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .ed-home, .ed-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
  .ed-menu > li > a { padding-inline: 10px; font-size: 13.5px; }
  .ed-logo__img { height: 92px; }
  .ed-colum__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 900px) {
  .ed-home, .ed-layout { grid-template-columns: minmax(0, 1fr); }
  .ed-home__side { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
  .ed-home__side > * + * { margin-top: 0; }
  .ed-side-ad { grid-column: 1 / -1; }
  .ed-mast__in { flex-wrap: wrap; justify-content: center; }
  .ed-mast__ad { flex-basis: 100%; justify-content: center; }
  .ed-menu { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .ed-menu::-webkit-scrollbar { display: none; }
  .ed-menu .sub-menu, .ed-menu .menu-item-has-children > a::before { display: none; }
  .ed-sticky { position: static; }
  .ed-archive__top { grid-template-columns: 1fr; }
  .ed-archive__pair { grid-template-columns: 1fr 1fr; }
  .ed-footer__grid { grid-template-columns: 1fr 1fr; }
  .ed-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .ed-nav { top: 0; } }
@media (max-width: 680px) {
  :root { --nav-h: 46px; }
  .ed-topnav, .ed-date { display: none; }
  .ed-topbar__right { margin-left: 0; width: 100%; justify-content: center; }
  .ed-only-m { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; border: 1px solid var(--ed-line); }
  .ed-mast__in { display: grid; grid-template-columns: 40px 1fr 40px; justify-items: center; gap: 10px; padding-block: 10px; }
  .ed-mast__ad { grid-column: 1 / -1; width: 100%; }
  .ed-logo__img { height: 58px; }
  .ed-nav__search { display: none; }
  .is-stuck .ed-nav__mini { width: 96px; }
  .ed-nav__mini .ed-logo__img { height: 24px; }
  .ed-menu > li > a { font-size: 13px; padding-inline: 10px; }
  .ed-undernav { padding-top: 16px; }
  .ed-home { padding-top: 18px; }
  .ed-slider__stage { aspect-ratio: 4 / 4.2; border-radius: 12px; }
  .ed-slide__body { left: 18px; right: 18px; bottom: 26px; }
  .ed-slide__t { font-size: 24px; }
  .ed-slider__arrow { display: none; }
  .ed-slider__thumbs { grid-template-columns: repeat(8, 64px); overflow-x: auto; scrollbar-width: none; }
  .ed-colum__track { grid-auto-columns: 70%; }
  .ed-colum__arrow { display: none; }
  .ed-playlist { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ed-pl { scroll-snap-align: start; }
  .ed-player__now { display: none; }
  .ed-card--row { grid-template-columns: 1fr; gap: 14px; }
  .ed-grid3, .ed-grid4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ed-grid3 .ed-t, .ed-grid4 .ed-t { font-size: 15px; }
  .ed-home__side { grid-template-columns: minmax(0, 1fr); }
  .ed-card--h { grid-template-columns: 38% 1fr; gap: 14px; }
  .ed-card--h .ed-t { font-size: 17px; }
  .ed-card--h .ed-ex { display: none; }
  .ed-archive__pair { grid-template-columns: 1fr; }
  .ed-card--overlay.ed-card--xl .ed-media { aspect-ratio: 4 / 5; }
  .ed-card--overlay .ed-ex { display: none; }
  .ed-single__img img { border-radius: 0; }
  .ed-single__img { padding: 0; }
  .ed-content { font-size: 18px; }
  .ed-footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.ed-single__head .ed-wrap > * { max-width: 920px; }
