/*
Theme Name: El Debate Público
Theme URI: https://eldebatepublico.com
Author: El Debate Público
Description: Tema de periódico digital para El Debate Público: portada con nota principal, últimas noticias, sección destacada, columnas de opinión, lo más leído, franja de urgente y newsletter.
Version: 1.3.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edp
*/

:root {
	--edp-accent: #C8102E;
	--edp-ink: #202020;
	--edp-text: #202020;
	--edp-muted: #202020;
	--edp-rule: #E2E2E2;
	--edp-dark: #202020;
	--edp-darker: #141414;
	--edp-placeholder: #DAD9D5;
	--edp-serif: "Chronicle Deck A", "Chronicle Deck B", "Source Serif 4", Georgia, "Times New Roman", serif;
	--edp-sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: #FFFFFF;
	color: var(--edp-ink);
	font-family: var(--edp-sans);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a, a:visited { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
	outline: 3px solid var(--edp-accent);
	outline-offset: 2px;
}

.wrap { max-width: var(--edp-max, 1440px); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.accent { color: var(--edp-accent); }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--edp-ink); color: #FFFFFF; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.btn, button.btn, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 22px; border: 0;
	background: var(--edp-ink); color: #FFFFFF;
	font: 700 15px/1 var(--edp-sans); cursor: pointer;
}
.btn:hover { filter: brightness(0.92); text-decoration: none; }

/* ---------- Cabezal (logo centrado) ---------- */
.masthead { background: #FFFFFF; color: var(--edp-ink); }
.masthead-top {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
	padding-top: 22px; padding-bottom: 18px;
}
.mh-left { justify-self: start; }
.mh-right { justify-self: end; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.brand-name {
	font-family: var(--edp-serif); font-size: 58px; font-weight: 800;
	letter-spacing: -1.2px; line-height: 1; color: var(--edp-ink);
}
.brand-name:hover { text-decoration: none; }
.custom-logo-link img { max-height: 80px; width: auto; margin: 0 auto; }
.brand-tagline { font-size: 13px; color: var(--edp-ink); }

.masthead-sub {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px;
	padding-top: 10px; padding-bottom: 10px; border-top: 1px solid #D6D6D6;
	font-size: 14px;
}
.mh-sep { color: #9A9A9A; }
.mh-edition { font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

.pop { position: relative; }
.pop summary { list-style: none; cursor: pointer; }
.pop summary::-webkit-details-marker { display: none; }
.search-toggle summary {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font-size: 14px; font-weight: 700;
}
.btn-subscribe { gap: 8px; }
.pop-panel {
	position: absolute; top: calc(100% + 8px); z-index: 30; width: min(380px, 92vw);
	background: #FFFFFF; color: var(--edp-ink); padding: 16px;
	border: 1px solid #D6D6D6; box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.pop-left { left: 0; }
.pop-right { right: 0; }
.pop-title { margin: 0 0 4px; font-family: var(--edp-serif); font-size: 20px; font-weight: 700; line-height: 1.2; }
.pop-text { margin: 0 0 12px; font-size: 14px; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px;
	border: 1px solid #BDBDBD; font: 15px var(--edp-sans); color: var(--edp-ink);
}

/* Formularios de suscripción (Jetpack o propio) */
.edp-subscribe, .edp-jetpack-subscribe form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.edp-subscribe .field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.edp-subscribe label { font-size: 12px; }
.edp-subscribe input[type="email"], .edp-jetpack-subscribe input[type="email"] {
	width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #BDBDBD;
	font: 15px var(--edp-sans); color: var(--edp-ink); background: #FFFFFF; border-radius: 0;
}
.edp-jetpack-subscribe p { margin: 0 0 8px; }
.edp-jetpack-subscribe button, .edp-jetpack-subscribe input[type="submit"] {
	min-height: 46px; padding: 0 22px; border: 0; border-radius: 0;
	background: var(--edp-ink); color: #FFFFFF; font: 700 15px/1 var(--edp-sans); cursor: pointer;
}

/* ---------- Menú (barra oscura) ---------- */
.mainnav { background: var(--edp-dark); color: #FFFFFF; }
.mainnav .menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0 34px;
}
.mainnav .menu a, .mainnav .menu a:visited {
	display: block; padding: 15px 0; color: #FFFFFF;
	font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.mainnav .current-menu-item > a,
.mainnav .current-category-ancestor > a,
.mainnav .current-post-ancestor > a { color: #A8A8A8; }

/* ---------- Indicadores ---------- */
.ticker { border-bottom: 1px solid #D6D6D6; }
.ticker-inner { display: flex; flex-wrap: wrap; justify-content: center; }
.tick { display: flex; align-items: baseline; gap: 10px; padding: 12px 28px; }
.tick + .tick { border-left: 1px solid var(--edp-ink); }
.tick-label { font-weight: 700; font-size: 15px; }
.tick-value { font-family: var(--edp-serif); font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.tick-var { font-size: 14px; font-weight: 600; }
.tick-arrow { font-size: 12px; }
.tick-arrow.is-down { color: #C8102E; }
.tick-arrow.is-up { color: #1A7F37; }

/* ---------- Urgente ---------- */
.breaking {
	display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
	padding: 16px 0 14px; border-bottom: 1px solid var(--edp-rule);
}
.breaking-flag, .kicker-flag {
	background: var(--edp-accent); color: #FFFFFF;
	font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	padding: 4px 8px;
}
.breaking a { font-family: var(--edp-serif); font-size: 19px; font-weight: 700; }

/* ---------- Piezas comunes ---------- */
.kicker {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0;
	font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.kicker-section { color: var(--edp-ink); }
.kicker-section.is-muted { color: var(--edp-ink); opacity: .75; }

.byline { margin: 0; font-size: 13px; color: var(--edp-muted); }
.byline strong { color: var(--edp-ink); }

.thumb { display: block; overflow: hidden; background: var(--edp-placeholder); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.thumb-columnista img { object-position: center top; filter: grayscale(100%); }
.thumb-empty { display: flex; align-items: center; justify-content: center; }
.thumb-empty span { font-family: var(--edp-serif); font-weight: 800; font-size: 18px; color: #8A8A86; }

.block-title {
	margin: 0 0 6px; padding-bottom: 10px; border-bottom: 3px solid var(--edp-ink);
	font: 700 13px/1.2 var(--edp-sans); letter-spacing: 1.5px; text-transform: uppercase;
}

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-title { margin: 0; font-family: var(--edp-serif); font-size: 22px; line-height: 1.2; font-weight: 700; }
.card-deck { margin: 0; font-size: 15px; line-height: 1.5; color: var(--edp-ink); }

/* ---------- Portada ---------- */
.home-layout { display: flex; flex-direction: column; gap: 40px; padding-top: 24px; padding-bottom: 48px; }
.home-top, .home-bottom, .with-sidebar { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.home-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.home-side { flex: 1 1 300px; min-width: 0; }

.lead { display: flex; flex-direction: column; gap: 14px; }
.lead-title {
	margin: 0; font-family: var(--edp-serif); font-weight: 800;
	font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.8px;
}
.lead-deck { margin: 0; font-size: 19px; line-height: 1.5; color: var(--edp-ink); }

.secondary { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--edp-rule); padding-top: 24px; }
.secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.secondary .card { min-width: 0; }
.secondary .card-title { font-size: 24px; line-height: 1.15; }

.latest-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--edp-rule); }
.latest-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--edp-muted); }
.latest-title { margin: 0; font-family: var(--edp-serif); font-size: 19px; line-height: 1.25; font-weight: 700; }

.ad-slot { display: flex; justify-content: center; }
.ad-empty {
	background: #F2F2F0; border: 1px dashed #BDBDBD; min-height: 90px; align-items: center;
	font-size: 12px; color: var(--edp-muted); letter-spacing: .5px; padding: 12px; text-align: center;
}

.section-block { display: flex; flex-direction: column; gap: 18px; }
.section-head {
	display: flex; justify-content: space-between; align-items: baseline;
	border-bottom: 3px solid var(--edp-ink); padding-bottom: 10px;
}
.section-head h2 { margin: 0; font-family: var(--edp-serif); font-size: 30px; font-weight: 800; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--edp-ink); text-decoration: underline; text-underline-offset: 3px; }

.grid-4, .grid-3 { display: grid; gap: 28px 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.opinion { flex: 999 1 560px; min-width: 0; }
.opinion-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--edp-rule); }
.avatar {
	flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
	background: var(--edp-dark); color: #FFFFFF;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--edp-serif); font-size: 20px; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.opinion-author { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--edp-ink); }
.opinion-title { margin: 6px 0 0; font-family: var(--edp-serif); font-size: 22px; line-height: 1.2; font-weight: 700; font-style: italic; }

.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: edp; }
.popular-list li {
	counter-increment: edp; display: flex; gap: 14px; align-items: baseline;
	padding: 14px 0; border-bottom: 1px solid var(--edp-rule);
}
.popular-list li::before {
	content: counter(edp); min-width: 26px;
	font-family: var(--edp-serif); font-size: 34px; font-weight: 800; line-height: 1; color: var(--edp-ink);
}
.popular-list a { font-family: var(--edp-serif); font-size: 18px; line-height: 1.3; font-weight: 700; }

/* ---------- Nota ---------- */
.with-sidebar { padding-top: 28px; padding-bottom: 48px; }
.article, .listing { flex: 999 1 600px; min-width: 0; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

.article-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.article-title {
	margin: 0; font-family: var(--edp-serif); font-weight: 800;
	font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.8px;
}
.article-deck { margin: 0; font-size: 22px; line-height: 1.45; color: var(--edp-ink); }
.article-meta {
	display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
	padding: 12px 0; border-top: 1px solid var(--edp-rule); border-bottom: 1px solid var(--edp-rule);
}

.share { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 24px; }
.share-bottom { margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid var(--edp-rule); }
.share-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn, .share-btn:visited {
	min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
	border: 1.5px solid var(--edp-ink); background: #FFFFFF; color: var(--edp-ink);
	font: 600 14px/1 var(--edp-sans); cursor: pointer;
}
.share-btn:hover { background: var(--edp-ink); color: #FFFFFF; text-decoration: none; }

.article-figure { margin: 0 0 28px; }
.article-figure img { width: 100%; }
.article-figure figcaption, .wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--edp-muted); margin-top: 8px; }

.entry-content { max-width: none; font-family: var(--edp-serif); font-size: 23px; line-height: 1.6; color: var(--edp-text); }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--edp-serif); color: var(--edp-ink); line-height: 1.2; margin-top: 1.6em; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 25px; }
.entry-content a, .entry-content a:visited { color: var(--edp-ink); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
	margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--edp-ink);
	font-size: 26px; font-style: italic; color: var(--edp-ink);
}
.entry-content img { margin-left: auto; margin-right: auto; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }
.entry-content iframe { max-width: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags a { font-size: 13px; font-weight: 600; padding: 6px 10px; background: #F2F2F0; }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #F6F6F4; margin: 28px 0; }
.author-box img { border-radius: 50%; }
.author-box p { margin: 6px 0 0; font-size: 15px; color: var(--edp-text); }

.related { margin-top: 36px; }
.related .grid-3 { margin-top: 18px; }

.comments { margin-top: 40px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--edp-rule); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #BDBDBD; font: 15px var(--edp-sans);
}

/* ---------- Secciones, autor y búsqueda ---------- */
.listing-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 3px solid var(--edp-ink); }
.listing-head h1, .author-head h1 { margin: 0; font-family: var(--edp-serif); font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1.1; }
.listing-desc { margin-top: 8px; color: var(--edp-muted); font-size: 16px; }
.listing-search { margin-top: 14px; max-width: 520px; }
.listing-lead { padding-bottom: 24px; border-bottom: 1px solid var(--edp-rule); }
.listing-lead .card-title { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }

.row-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--edp-rule); }
.row-item .thumb { flex: 0 0 220px; }
.row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-title { margin: 0; font-family: var(--edp-serif); font-size: 22px; line-height: 1.2; font-weight: 700; }

.author-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 3px solid var(--edp-ink); }
.author-head img { border-radius: 50%; }

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 12px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--edp-rule); font-weight: 600;
}
.pagination .page-numbers.current { background: var(--edp-ink); border-color: var(--edp-ink); color: #FFFFFF; }

.page-main { padding-top: 32px; padding-bottom: 48px; }
.empty-state { padding: 48px 0; max-width: 640px; }
.empty-state h1 { font-family: var(--edp-serif); font-size: 36px; line-height: 1.15; margin: 12px 0; }

/* ---------- Newsletter y pie ---------- */
.newsletter { background: var(--edp-dark); color: #FFFFFF; margin-top: 16px; }
.newsletter-inner {
	display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between;
	padding-top: 44px; padding-bottom: 44px;
}
.newsletter-copy { flex: 1 1 380px; }
.newsletter-copy h2 { margin: 0 0 8px; font-family: var(--edp-serif); font-size: 32px; font-weight: 800; line-height: 1.15; }
.newsletter-copy p { margin: 0; color: #BDBDBD; }
.newsletter-form { flex: 1 1 380px; }
.newsletter-form form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.newsletter-form .field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.newsletter-form label { font-size: 12px; color: #BDBDBD; }
.newsletter-form input[type="email"] {
	min-height: 48px; padding: 0 14px; border: 1px solid #4A4A4A;
	background: var(--edp-darker); color: #FFFFFF; font: 15px var(--edp-sans);
}
.newsletter-form .btn { min-height: 48px; background: #FFFFFF; color: var(--edp-ink); }
.admin-note { color: #E0E0E0; font-size: 14px; border: 1px dashed #6A6A6A; padding: 12px; margin: 0; }

.site-footer { background: var(--edp-darker); color: #D0D0D0; font-size: 14px; line-height: 1.6; }
.footer-main {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px 32px;
	padding-top: 30px; padding-bottom: 30px;
}
.footer-brand { font-family: var(--edp-serif); font-size: 28px; font-weight: 800; color: #FFFFFF; justify-self: start; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; text-align: center; }
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { justify-self: end; text-align: right; font-size: 13px; }
.footer-extra { display: flex; flex-wrap: wrap; gap: 24px 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid #333333; }
.footer-col { flex: 0 1 280px; }
.footer-col-wide { flex: 1 1 320px; }
.footer-col h2 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #FFFFFF; }
.footer-col p { margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
@media (max-width: 760px) {
	.footer-main { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 12px; }
	.footer-brand, .footer-copy { justify-self: center; text-align: center; }
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }

.widget { margin-bottom: 24px; }

/* ---------- Celular ---------- */
@media (max-width: 780px) {
	.mainnav .menu { gap: 0 16px; padding: 4px 0; }
	.mainnav .menu a { padding: 8px 0; font-size: 12.5px; letter-spacing: .2px; }
	.masthead-top { grid-template-columns: auto 1fr auto; gap: 10px; padding-top: 14px; padding-bottom: 12px; }
	.brand-name { font-size: 30px; letter-spacing: -.6px; }
	.custom-logo-link img { max-height: 48px; }
	.brand-tagline { display: none; }
	.search-toggle summary span, .btn-subscribe span { display: none; }
	.btn-subscribe { padding: 0 12px; }
	.masthead-sub { font-size: 12.5px; }
	.ticker-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tick { padding: 8px 6px; gap: 6px; justify-content: center; }
	.tick + .tick { border-left: 0; }
	.tick-value { font-size: 18px; }
	.tick-label, .tick-var { font-size: 12.5px; }
}

@media (max-width: 640px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.row-item .thumb { flex-basis: 110px; }
	.row-title { font-size: 18px; }
	.row-item .card-deck { display: none; }
	.entry-content { font-size: 20px; line-height: 1.6; }
	.article-deck { font-size: 19px; }
	.share-btn { padding: 0 11px; }
	.share-btn { font-size: 13px; gap: 6px; }
}

/* ---------- Opinión (tarjetas con foto) ---------- */
.opinion-cards .block-title { font-size: 15px; letter-spacing: .5px; text-transform: none; border-bottom-width: 1px; padding-bottom: 6px; }
.op-card { display: flex; background: #D9D9D9; margin: 16px 0; min-height: 190px; }
.op-card + .op-card { position: relative; }
.op-card + .op-card::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; border-top: 1px solid #C9C9C9; }
.op-card-text { flex: 1 1 55%; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.op-card-text:hover { text-decoration: none; }
.op-card-text:hover .op-card-title { text-decoration: underline; text-underline-offset: 3px; }
.op-card-col { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.op-card-title { margin: 0; font-family: var(--edp-sans); font-size: 22px; font-weight: 800; line-height: 1.12; letter-spacing: -.3px; flex: 1 1 auto; }
.op-card-by { font-size: 16px; line-height: 1.25; }
.op-card-foto { flex: 0 0 45%; display: block; overflow: hidden; background: #BDBDBD; }
.op-card-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(100%); }
.op-card-ini { display: flex; align-items: center; justify-content: center; font-family: var(--edp-serif); font-size: 40px; font-weight: 800; color: #FFFFFF; background: var(--edp-dark); }

/* ---------- Columnistas ---------- */
.columnista-box { display: flex; gap: 20px; align-items: flex-start; padding: 20px; background: #F2F2F2; margin: 28px 0; }
.columnista-foto { flex: 0 0 120px; display: block; aspect-ratio: 1; overflow: hidden; }
.columnista-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(100%); }
.columnista-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.columnista-nombre { margin: 0; font-family: var(--edp-serif); font-size: 24px; font-weight: 800; line-height: 1.15; }
.columnista-bio { margin: 0; font-size: 15px; }
.columnista-redes { margin-top: 4px; }
.columnista-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 3px solid var(--edp-ink); }
.columnista-head-foto { flex: 0 0 200px; aspect-ratio: 1; overflow: hidden; }
.columnista-head-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(100%); }
.columnista-head-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.columnista-head-info h1 { margin: 0; font-family: var(--edp-serif); font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1.1; }
.columnista-head .columnista-bio p { margin: 0 0 .6em; font-size: 17px; }
.columnistas-grid .columnista-box { margin: 0 0 16px; }

/* ---------- Más noticias ---------- */
.more-news { flex: 999 1 560px; min-width: 0; }
.home-bottom .sidebar { gap: 32px; }

/* ---------- Anuncios de patrocinadores ---------- */
.sponsor { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sponsor img { max-width: 100%; height: auto; }
.sponsor-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #6A6A6A; }
.ad-cabecera { padding-top: 16px; }
.ad-slot.ad-lateral { justify-content: center; }

@media (max-width: 640px) {
	.op-card { min-height: 160px; }
	.op-card-title { font-size: 20px; }
	.columnista-box { flex-direction: column; }
}

/* ---------- Enlaces siempre en negro (por encima de estilos de plugins) ---------- */
body a:link, body a:visited { color: inherit; }
body .mainnav a:link, body .mainnav a:visited { color: #FFFFFF; }
body .mainnav .current-menu-item > a:link, body .mainnav .current-menu-item > a:visited,
body .mainnav .current-category-ancestor > a:link, body .mainnav .current-post-ancestor > a:link { color: #A8A8A8; }
body a.btn:link, body a.btn:visited { color: #FFFFFF; }
body .footer-brand:link, body .footer-brand:visited { color: #FFFFFF; }
body .entry-content a:link, body .entry-content a:visited { color: var(--edp-ink); }

@media (max-width: 520px) {
	.secondary { grid-template-columns: minmax(0, 1fr); }
}

/* Si otro plugin provoca un error al final de la página, WordPress inyecta estilos de "página de error"
   que encogen todo el sitio a 700 px. Esto mantiene el diseño intacto mientras se corrige el plugin. */
html body#error-page { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #FFFFFF; font-family: var(--edp-sans); font-size: 17px; }
html:has(body#error-page) { background: #FFFFFF; }
body#error-page .wp-die-message, .edp-plugin-error .wp-die-message { max-width: var(--edp-max, 1440px); margin: 0 auto; padding: 12px 24px; font-size: 13px; color: #6A6A6A; }

/* ---------- Encabezado de columna (Opinión) ---------- */
.column-head { gap: 16px; }
.column-kicker {
	margin: 0; padding: 10px 0 6px; border-top: 1px solid #D6D6D6; border-bottom: 1px solid var(--edp-ink);
	display: flex; gap: 12px; align-items: baseline; font-size: 14px; font-weight: 700;
}
.column-kicker-name { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.column-author { display: flex; gap: 22px; align-items: flex-start; }
.column-author-foto { flex: 0 0 176px; aspect-ratio: 1; overflow: hidden; display: block; background: #D9D9D9; }
.column-author-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(100%); }
.column-author-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 720px; }
.column-author-name { margin: 0; font-size: 21px; font-weight: 700; }
.column-author-deck { margin: 0; font-size: 21px; line-height: 1.45; }
.column-date { margin: 4px 0 0; font-size: 14px; }
.column-head { padding-bottom: 22px; border-bottom: 1px solid #D6D6D6; }
@media (max-width: 640px) {
	.column-author { gap: 14px; }
	.column-author-foto { flex-basis: 96px; }
	.column-author-name, .column-author-deck { font-size: 17px; }
}

/* ---------- Frase destacada ---------- */
.entry-content .edp-pullquote {
	margin: 44px auto; padding: 0 0 0 0.6em; border: 0; max-width: 620px; position: relative;
	font-family: var(--edp-serif); font-style: italic; font-weight: 800;
	font-size: 31px; line-height: 1.2; letter-spacing: -.3px; color: var(--edp-ink);
}
.entry-content .edp-pullquote p { margin: 0; }
.entry-content .edp-pullquote::before { content: "“"; position: absolute; left: -0.1em; top: 0; }
.entry-content .edp-pullquote p::after { content: "”"; }
@media (max-width: 640px) { .entry-content .edp-pullquote { font-size: 25px; margin: 32px 0; } }

/* ---------- Publicaciones relacionadas dentro de la nota ---------- */
.entry-content .inline-related { margin: 8px 0 32px; padding: 0; font-family: var(--edp-sans); }
.entry-content .inline-related-title { margin: 0 0 8px; font-size: 18px; font-weight: 400; text-transform: uppercase; letter-spacing: .3px; }
.entry-content .inline-related ul { list-style: none; margin: 0; padding: 0; }
.entry-content .inline-related li { padding: 10px 0 10px 18px; border-bottom: 1px dotted #C9C9C9; position: relative; font-size: 17px; line-height: 1.35; font-weight: 700; }
.entry-content .inline-related li::before { content: ""; position: absolute; left: 2px; top: 16px; border-left: 6px solid var(--edp-ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
body .entry-content .inline-related a:link, body .entry-content .inline-related a:visited { text-decoration: none; color: var(--edp-ink); }
body .entry-content .inline-related a:hover { text-decoration: underline; }

/* ---------- Colores blindados frente a estilos de otros plugins ---------- */
body .masthead .btn-subscribe, body .masthead .btn-subscribe:visited {
	background: #202020 !important; color: #FFFFFF !important; border: 2px solid #202020 !important; border-radius: 0 !important;
}
body .masthead .btn-subscribe:hover { background: #FFFFFF !important; color: #202020 !important; }
body .newsletter h2, body .newsletter .newsletter-copy h2 { color: #FFFFFF !important; }
body .newsletter p { color: #D0D0D0; }
body .newsletter button, body .newsletter input[type="submit"], body .newsletter .wp-block-button__link {
	background: #FFFFFF !important; color: #202020 !important; border: 2px solid #FFFFFF !important; border-radius: 0 !important;
	min-height: 46px; padding: 0 22px !important; font: 700 15px/1 var(--edp-sans) !important; cursor: pointer;
}
body .newsletter button:hover, body .newsletter input[type="submit"]:hover { background: #202020 !important; color: #FFFFFF !important; }
body .newsletter input[type="email"] { background: #FFFFFF !important; color: #202020 !important; border: 1px solid #FFFFFF !important; }
body .pop-panel .edp-jetpack-subscribe button, body .pop-panel button[type="submit"] {
	background: #202020 !important; color: #FFFFFF !important; border: 0 !important; border-radius: 0 !important;
}
body .share-btn, body .share-btn:visited, body button.share-btn {
	background: #FFFFFF !important; color: var(--edp-ink) !important; border: 1.5px solid var(--edp-ink) !important; border-radius: 0 !important;
}
body .share-btn:hover, body button.share-btn:hover { background: var(--edp-ink) !important; color: #FFFFFF !important; }
