/* ==========================================================================
   EsLatina — main stylesheet
   ========================================================================== */

/* Fonts (self-hosted, Latin subset incl. á é í ó ú ñ ü ¿ ¡) ---------------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/playfair-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* Tokens ------------------------------------------------------------------- */
:root {
	--accent: #e3120b;
	--accent-hover: #b90e08;
	--accent-text: #c8100a;
	--on-accent: #fff;
	--brand-black: #0b0b0c;

	--bg: #f2f2f4;
	--surface: #fff;
	--surface-2: #f7f7f8;
	--text: #141417;
	--text-2: #4d4d55;
	--muted: #75757e;
	--border: #e4e4e8;
	--shadow: 0 1px 2px rgb(15 15 20 / 4%), 0 6px 20px rgb(15 15 20 / 5%);
	--shadow-hover: 0 2px 4px rgb(15 15 20 / 6%), 0 12px 32px rgb(15 15 20 / 10%);

	--font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 14px;
	--radius-sm: 10px;
	--es-gap: 24px;
	--container: 1280px;
	--header-h: 76px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0c0c0e;
	--surface: #16161a;
	--surface-2: #1e1e23;
	--text: #ededf0;
	--text-2: #b4b4bc;
	--muted: #8a8a94;
	--border: #2a2a31;
	--shadow: 0 1px 2px rgb(0 0 0 / 30%);
	--shadow-hover: 0 8px 28px rgb(0 0 0 / 45%);
	--accent-hover: #ff3b33;
	--accent-text: #ff5a52;
	color-scheme: dark;
}


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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip; /* "hidden" would turn body into a scroll box and break sticky elements */
}

body.nav-open { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 700; line-height: 1.25; margin: 0; color: var(--text); text-wrap: balance; }

p { margin: 0 0 1em; }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--accent); color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000; padding: 10px 16px;
	background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.panel {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.button,
.wp-block-button__link,
input[type="submit"] {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px; border: 0; border-radius: 999px;
	background: var(--accent); color: var(--on-accent);
	font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1.2;
	cursor: pointer; transition: background .15s;
}
.button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--accent-hover); color: #fff; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 999px; background: transparent; color: var(--text);
	transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; padding: 11px 14px;
	font: inherit; font-size: 15px; color: var(--text);
	background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
	transition: border-color .15s, background .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); background: var(--surface); }

/* Top bar & ticker --------------------------------------------------------- */
.topbar { background: var(--brand-black); color: #e9e9ec; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar-date { flex: none; color: #a8a8b0; white-space: nowrap; }

.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.ticker-label {
	flex: none; display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 10px; border-radius: 6px;
	background: var(--accent); color: #fff;
	font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ticker-viewport {
	flex: 1; min-width: 0; overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li { padding-inline: 18px; white-space: nowrap; position: relative; }
.ticker li::before {
	content: ""; position: absolute; left: -3px; top: 50%;
	width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%);
}
.ticker a { color: inherit; }
.ticker a:hover { color: #fff; text-decoration: underline; }

@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	.ticker-track { animation: none; }
	.ticker-viewport { overflow-x: auto; scrollbar-width: none; }
	.ticker ul[aria-hidden] { display: none; }
}

.social { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; transition: background .15s, color .15s; }
.social--top a { color: #c9c9cf; width: 28px; height: 28px; }
.social--top a:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.social--top .icon { width: 15px; height: 15px; }

/* Header ------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-stuck { box-shadow: 0 6px 24px rgb(0 0 0 / 8%); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.menu-toggle { display: none; }

.brand { flex: none; }
.brand-link { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-link:hover { color: var(--text); }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-weight: 900; font-size: 30px; letter-spacing: -.01em; line-height: 1; margin: 0; }
.brand-accent { color: var(--accent); }
.brand-tagline { margin-top: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.custom-logo { max-height: 56px; width: auto; }

.primary-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 14px; position: relative;
	font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--text);
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after,
.primary-nav .menu > .current-category-ancestor > a::after { transform: scaleX(1); }
.primary-nav .menu > li > a:hover { color: var(--text); }

.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10; min-width: 220px;
	margin: 0; padding: 8px; list-style: none;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--surface-2); }

.header-actions { flex: none; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav + .header-actions { margin-left: 0; }

.theme-toggle .theme-toggle-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-toggle-light { display: inline; }
:root[data-theme="dark"] .theme-toggle .theme-toggle-dark { display: none; }

.search-panel { border-top: 1px solid var(--border); background: var(--surface); padding: 16px 0; }
.search-panel .search-form { max-width: 720px; margin-inline: auto; }

.search-form { position: relative; display: flex; }
.search-form .search-field { padding-right: 52px; border-radius: 999px; height: 46px; }
.search-form .search-submit {
	position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px;
	display: grid; place-items: center; border: 0; border-radius: 999px;
	background: var(--accent); color: #fff;
}
.search-form .search-submit:hover { background: var(--accent-hover); }
.search-field::-webkit-search-cancel-button { display: none; }

/* Mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 100; }
.mobile-nav[hidden] { display: none; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 55%); animation: fade .2s; }
.mobile-nav-panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw);
	display: flex; flex-direction: column; gap: 18px; padding: 16px 20px 28px; overflow-y: auto;
	background: var(--surface); box-shadow: var(--shadow-hover); animation: slide-in .25s ease-out;
}
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-nav-head .brand { flex: initial; justify-content: flex-start; }
.mobile-nav-head .brand-tagline { display: none; }
.mobile-nav-head .brand-name { font-size: 26px; }
.mobile-menu, .mobile-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.mobile-menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 16px; }
.mobile-menu .sub-menu a { padding-left: 18px; font-weight: 500; font-size: 15px; color: var(--text-2); }

@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }

/* Layout ------------------------------------------------------------------- */
.site-main { padding-block: 28px 56px; }
.home-sections > * + * { margin-top: var(--es-gap); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--es-gap); align-items: start; }
.layout--narrow { grid-template-columns: minmax(0, 860px); justify-content: center; }
.layout-main { min-width: 0; display: flex; flex-direction: column; gap: var(--es-gap); }
.sidebar-inner { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: var(--es-gap); }
.admin-bar .sidebar-inner { top: calc(var(--header-h) + 52px); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title { position: relative; padding-left: 14px; font-size: 24px; }
.section-title::before {
	content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px;
	background: var(--accent); border-radius: 4px;
}
.section-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--text-2); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 16px; }

/* Cards -------------------------------------------------------------------- */
.card { position: relative; display: flex; isolation: isolate; }
.card-media { position: relative; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-title { font-size: 18px; line-height: 1.32; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:hover { color: inherit; }
.card:hover .card-title a { color: var(--accent-text); }
.card-excerpt {
	margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.thumb-placeholder {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
	background: linear-gradient(135deg, #1b1b1f, #0b0b0c);
}
.thumb-placeholder img { width: 30%; max-width: 72px; height: auto; opacity: .9; transform: none !important; }

.badge {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; align-self: flex-start;
	padding: 4px 10px; border-radius: 6px;
	background: var(--badge, var(--accent)); color: #fff;
	font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
}
a.badge:hover { color: #fff; filter: brightness(1.1); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }

/* Overlay card */
.card--overlay {
	flex-direction: column; justify-content: flex-end;
	min-height: 240px; border-radius: var(--radius); overflow: hidden;
	background: var(--brand-black); color: #fff; box-shadow: var(--shadow);
}
.card--overlay .card-media { position: absolute; inset: 0; z-index: -1; }
.card--overlay .card-media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgb(0 0 0 / 0%) 30%, rgb(0 0 0 / 45%) 55%, rgb(0 0 0 / 88%) 100%);
}
.card--overlay .card-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.card--overlay .badge { position: absolute; top: 16px; left: 16px; }
.card--overlay .card-body > .badge { position: relative; top: auto; left: auto; }
.card--overlay .card-title { color: #fff; font-size: 19px; text-shadow: 0 1px 12px rgb(0 0 0 / 35%); }
.card--overlay:hover .card-title a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.card--overlay .card-excerpt { color: rgb(255 255 255 / 82%); -webkit-line-clamp: 2; }
.card--overlay .meta { color: rgb(255 255 255 / 75%); }

/* Grid card */
.card--grid { flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card--grid:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card--grid .card-media { aspect-ratio: 16 / 9; }
.card--grid .card-media .badge { position: absolute; top: 12px; left: 12px; }
.card--grid .card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.card--grid .meta { margin-top: auto; padding-top: 4px; }

/* List card */
.card--list {
	display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: center;
	padding: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: box-shadow .2s;
}
.card--list:hover { box-shadow: var(--shadow-hover); }
.card--list .card-media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card--list .card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card--list .card-title { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Feature card (wide list card) */
.card--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; padding: 14px; }
.card--feature .card-media { order: 2; aspect-ratio: 16 / 10; }
.card--feature .card-body { gap: 12px; padding: 12px 0 12px 12px; }
.card--feature .card-title { font-size: 26px; -webkit-line-clamp: 4; }
.card--feature .card-excerpt { -webkit-line-clamp: 4; font-size: 15px; }

/* Mini (sidebar) */
.post-list { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.post-list > li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.mini { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.mini-media { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { min-width: 0; }
.mini-title { font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover .mini-title a { color: var(--accent-text); }
.mini-date { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.mini--numbered { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
.mini--numbered::before {
	counter-increment: rank; content: counter(rank);
	font-family: var(--font-serif); font-weight: 900; font-size: 30px; line-height: 1; color: var(--accent);
}

/* Homepage blocks ---------------------------------------------------------- */
.hero {
	display: grid; gap: 16px;
	grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(250px, 1fr));
}
.hero-main { grid-row: span 2; }
.hero-main .card-body { padding: 28px; gap: 12px; }
.hero-main .card-title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.18; }
.hero-main .card-excerpt { font-size: 15.5px; max-width: 60ch; }
.hero-side .card-title { font-size: 17px; }

.lead-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.lead-row .card--overlay { min-height: 100%; }

.spotlight { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
.spotlight-main { min-height: 460px; }
.spotlight-main .card-title { font-size: 28px; }
.spotlight .stack { justify-content: space-between; }
.spotlight .stack .card--list { flex: 1; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--es-gap); }
.duo-col { display: flex; flex-direction: column; }
.duo-col .card--overlay { min-height: 300px; margin-bottom: 16px; }
.duo-col .card--overlay .card-title { font-size: 22px; }

.carousel-controls { display: flex; gap: 6px; }
.carousel-controls .icon-btn { width: 38px; height: 38px; background: var(--surface); box-shadow: var(--shadow); }
.carousel-controls .icon-btn:disabled { opacity: .4; cursor: default; }
.carousel-track {
	display: grid; grid-auto-flow: column; gap: 20px;
	grid-auto-columns: calc((100% - 3 * 20px) / 4);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 4px 4px 12px; margin: -4px -4px 0;
	scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel .card-title { font-size: 16.5px; }

.empty-state, .not-found { padding: 48px 32px; text-align: center; }
.empty-state .search-form, .not-found .search-form { max-width: 480px; margin: 20px auto; }
.not-found-code { font-family: var(--font-serif); font-weight: 900; font-size: 96px; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.not-found h1 { font-size: 32px; margin-bottom: 12px; }
.not-found p { color: var(--text-2); }

/* Widgets ------------------------------------------------------------------ */
.widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.widget-title { position: relative; padding-left: 12px; margin-bottom: 16px; font-size: 19px; }
.widget-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; background: var(--accent); border-radius: 4px; }
.widget ul:not(.post-list):not(.cat-list):not(.social):not(.footer-links) { margin: 0; padding: 0; list-style: none; }
.widget ul:not(.post-list):not(.cat-list):not(.social):not(.footer-links) li { padding: 8px 0; border-top: 1px solid var(--border); }
.widget ul:not(.post-list):not(.cat-list):not(.social):not(.footer-links) li:first-child { border-top: 0; }

.cat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cat-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2);
	font-weight: 600; font-size: 14.5px; border-left: 3px solid var(--badge, var(--accent));
}
.cat-list .count { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* Breadcrumbs & archive ---------------------------------------------------- */
.breadcrumbs { margin-bottom: 18px; padding: 12px 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13.5px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--border); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }

.archive-header { margin-bottom: var(--es-gap); padding: 28px 32px; border-top: 4px solid var(--badge, var(--accent)); }
.archive-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.archive-title { font-size: clamp(28px, 3.4vw, 40px); }
.archive-description { margin-top: 10px; color: var(--text-2); max-width: 70ch; }
.archive-description p:last-child { margin: 0; }
.archive-header .search-form { max-width: 520px; margin-top: 16px; }
.archive-lead { min-height: 420px; }
.archive-lead .card-title { font-size: clamp(24px, 2.6vw, 32px); }

.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
	background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); font-weight: 600;
}
.pagination .page-numbers.current { background: var(--accent); color: #fff; }
.pagination a.page-numbers:hover { color: var(--accent); }

/* Article ------------------------------------------------------------------ */
.article { padding: 32px 40px 36px; }
.article-header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.article-title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.01em; }
.article-dek { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.article-byline {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	padding-top: 16px; border-top: 1px solid var(--border);
}
.byline-author { display: flex; align-items: center; gap: 12px; }
.byline-avatar, .author-box img { border-radius: 50%; }
.byline-name { font-weight: 700; font-size: 15px; }

.share { display: flex; align-items: center; gap: 10px; }
.share-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.share ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.share a, .share button {
	display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2);
	transition: background .15s, color .15s, border-color .15s;
}
.share a:hover, .share button:hover, .share button.is-copied { background: var(--accent); border-color: var(--accent); color: #fff; }
.share .icon { width: 16px; height: 16px; }

.article-media { margin: 0 0 28px; }
.article-media img { width: 100%; border-radius: var(--radius); }
.article-media figcaption, .wp-caption-text, .wp-element-caption, figcaption {
	margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted);
}

.entry-content { font-size: 18px; line-height: 1.78; color: var(--text); overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; margin-bottom: .6em; }
.entry-content h3 { font-size: 23px; margin-top: 1.4em; margin-bottom: .5em; }
.entry-content h4 { font-size: 19px; margin-top: 1.3em; margin-bottom: .5em; }
.entry-content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.entry-content > p:first-of-type::first-letter {
	float: left; margin: .08em .1em 0 0;
	font-family: var(--font-serif); font-weight: 900; font-size: 4.1em; line-height: .8; color: var(--accent);
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote, .wp-block-quote {
	margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--accent);
	font-family: var(--font-serif); font-size: 23px; line-height: 1.5; font-style: italic; color: var(--text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite, .wp-block-quote cite { display: block; margin-top: 10px; font-family: var(--font-sans); font-style: normal; font-size: 14px; color: var(--muted); }
.wp-block-pullquote { border-top: 4px solid var(--accent); border-bottom: 4px solid var(--accent); padding: 1.4em 0; text-align: center; }
.wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.entry-content img, .entry-content video { border-radius: var(--radius-sm); }
.entry-content figure { margin-inline: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--surface-2); }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 14.5px; }
.entry-content code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.entry-content iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide, .alignfull { margin-inline: 0; }

.page-links { display: flex; gap: 8px; align-items: center; font-weight: 600; }

.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.tags a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.tags a:hover { background: var(--accent); color: #fff; }

.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; }
.author-box-name { font-size: 20px; margin-bottom: 6px; }
.author-box p { margin: 0; color: var(--text-2); font-size: 15px; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.post-navigation .nav-next a { text-align: right; }
.post-navigation .nav-next:only-child { grid-column: 2; }
.nav-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.nav-title { font-family: var(--font-serif); font-weight: 700; font-size: 17px; line-height: 1.35; }

/* Comments */
.comments { padding: 28px 32px; }
.comments-title, .comment-reply-title { font-size: 22px; margin-bottom: 18px; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { padding-left: 32px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 8px 54px; font-size: 12.5px; color: var(--muted); }
.comment-content { margin-left: 54px; font-size: 15.5px; }
.reply { margin-left: 54px; font-size: 13.5px; font-weight: 600; }
.reply a { color: var(--accent-text); }
.comment-respond { margin-top: 24px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--muted); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--brand-black); color: #c4c4cb; font-size: 15px; }
.site-footer a { color: #e7e7ea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 48px; padding-block: 52px 40px; }
.footer-about p { margin: 18px 0; max-width: 42ch; line-height: 1.65; }
.site-footer .brand-link, .site-footer .brand-link:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tagline { color: #9a9aa3; }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer .post-list > li + li { border-color: rgb(255 255 255 / 10%); }
.site-footer .mini-title a { color: #ececf0; }
.site-footer .mini-date { color: #8d8d96; }
.site-footer .mini-media { background: #1e1e23; }
.footer-links { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.footer-links li { padding: 6px 0; break-inside: avoid; }
.footer-links a { font-weight: 500; }
.social--footer a { width: 40px; height: 40px; background: rgb(255 255 255 / 8%); color: #fff; }
.social--footer a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 10%); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; font-size: 13.5px; }
.copyright { margin: 0; color: #8d8d96; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }

.back-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgb(227 18 11 / 35%);
	transition: transform .2s, opacity .2s;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { transform: translateY(-3px); }

/* WordPress core helpers --------------------------------------------------- */
.wp-block-search__label { display: block; margin-bottom: 8px; font-weight: 600; }
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.wp-block-search__button { padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-weight: 600; }
.widget h2.wp-block-heading { position: relative; padding-left: 12px; margin-bottom: 16px; font-size: 19px; }
.widget h2.wp-block-heading::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; background: var(--accent); border-radius: 4px; }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1200px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.carousel-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
	.primary-nav .menu > li > a { padding-inline: 10px; font-size: 14.5px; }
	.primary-nav .menu > li > a::after { left: 10px; right: 10px; }
}

@media (max-width: 1024px) {
	:root { --header-h: 64px; --es-gap: 20px; }
	.menu-toggle { display: inline-grid; margin-left: -8px; }
	.primary-nav { display: none; }
	.header-inner { gap: 8px; }
	.brand { flex: 1; display: flex; justify-content: center; }
	.header-actions { margin-left: 0; }
	.brand-tagline { display: none; }
	.brand-mark { width: 38px; height: 38px; }
	.brand-name { font-size: 26px; }

	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar-inner { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.hero { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
	.hero-main { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
	.hero-side { min-height: 230px; }

	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.spotlight { grid-template-columns: minmax(0, 1fr); }
	.spotlight-main { min-height: 380px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
	.container { padding-inline: 16px; }
	.topbar-date, .social--top { display: none; }
	.site-main { padding-top: 16px; }

	.hero { gap: 12px; }
	.hero-main { min-height: 380px; }
	.hero-main .card-body { padding: 20px; }
	.hero-side { min-height: 200px; }
	.hero-side .card-title { font-size: 15.5px; }
	.hero-side .card-body { padding: 14px; gap: 6px; }
	.hero-side .meta { display: none; }

	.lead-row, .duo, .grid--2, .grid--3, .sidebar-inner { grid-template-columns: minmax(0, 1fr); }
	.lead-row .card--overlay { min-height: 260px; }
	.card--feature { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.card--feature .card-media { order: 0; }
	.card--feature .card-body { padding: 0 6px 6px; }
	.card--feature .card-title { font-size: 22px; }

	.carousel-track { grid-auto-columns: 78%; }

	.section-title { font-size: 21px; }
	.article { padding: 22px 18px 26px; border-radius: var(--radius); }
	.article-media { margin-inline: -18px; }
	.article-media img { border-radius: 0; }
	.article-media figcaption { padding-inline: 18px; }
	.entry-content { font-size: 17px; }
	.entry-content blockquote { font-size: 20px; }
	.archive-header { padding: 22px 20px; }
	.archive-lead { min-height: 340px; }
	.comments { padding: 22px 18px; }
	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
	.post-navigation .nav-next:only-child { grid-column: auto; }
	.breadcrumbs li:last-child:not(:first-child) { display: none; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.footer-bottom-inner { flex-direction: column; text-align: center; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}

@media (max-width: 420px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero-side { min-height: 190px; }
	.card--list:not(.card--feature) { grid-template-columns: 104px minmax(0, 1fr); }
	.card--list .card-title { font-size: 15px; }
	.share-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .sidebar, .share, .related, .post-navigation, .comments, .site-footer, .back-to-top, .breadcrumbs { display: none !important; }
	.layout { display: block; }
	.panel { box-shadow: none; }
	body { background: #fff; color: #000; }
}

/* Inline internal link ("Read also") */
.entry-content .read-also {
	display: flex; flex-direction: column; gap: 4px;
	margin: 1.6em 0; padding: 16px 20px;
	background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.read-also-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.entry-content .read-also a { font-family: var(--font-serif); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--text); text-decoration: none; }
.entry-content .read-also a:hover { color: var(--accent-text); }

/* Sub-section chips on category pages (América Latina → países) */
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.subcat {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 7px 14px; border-radius: 999px;
	background: var(--surface-2); border: 1px solid var(--border);
	font-size: 14px; font-weight: 600; color: var(--text);
	transition: background .15s, color .15s, border-color .15s;
}
.subcat:hover, .subcat[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.subcat--parent { background: transparent; }

/* Dropdown indicator for menu items with a sub-menu */
.primary-nav .menu > .menu-item-has-children > a { padding-right: 26px; }
.primary-nav .menu > .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 10px; top: 50%;
	width: 6px; height: 6px; margin-top: -5px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); opacity: .55;
}
.primary-nav .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 300px; }

/* Spanish dates are lowercase ("sábado, 4 de octubre"); capitalise the first letter */
.topbar-date { display: inline-block; }
.topbar-date::first-letter { text-transform: uppercase; }

/* Elementor */
.site-main:has(> .elementor), .site-main:has(> .elementor-location-single), .site-main:has(> .elementor-location-archive) { padding-block: 0; }
.brand-no-tagline .brand-tagline { display: none; }
.elementor-widget-eslatina-news .section-head, .elementor-widget-eslatina-news .section { margin: 0; }
.elementor-widget-eslatina-news .section-head { margin-bottom: 16px; }
.elementor-widget-eslatina-ticker .ticker { min-height: 40px; }
.grid--1 { grid-template-columns: minmax(0, 1fr); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid--4 { grid-template-columns: minmax(0, 1fr); } }
/* Elementor resets "img { height: auto }" globally; keep photo cards filled */
.card .card-media img, .mini .mini-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.card .thumb-placeholder img { width: 30%; max-width: 72px; height: auto; }

/* Elementor Theme Builder header/footer built from theme classes ------------- */
/* Whole header sticks; the 40px top bar scrolls away, the logo/menu row stays. Pure CSS, no JS. */
.elementor-location-header { position: sticky; top: -40px; z-index: 50; }
.admin-bar .elementor-location-header { top: -8px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: -40px; } }
.elementor-location-header .site-header { position: relative; top: auto; }
.elementor-location-header .topbar-date { color: #a8a8b0; }

.eslatina-header-actions { position: relative; }
.eslatina-header-actions .search-panel {
	position: absolute; right: 0; top: calc(100% + 14px); z-index: 60;
	width: min(520px, calc(100vw - 32px)); padding: 12px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hover);
}
.e-con.eslatina-sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1024px) { .e-con.eslatina-sticky-side { position: relative; top: auto; } }

/* Containers that reuse theme "panel" styling */
.e-con.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.e-con.article .elementor-widget-theme-post-content { font-size: 18px; line-height: 1.78; }
.e-con .author-box, .e-con .post-navigation { margin: 0; }
.site-footer.e-con .widget-title, .site-footer.e-con .brand-name { color: #fff; }
.footer-bottom.e-con { border-top: 1px solid rgb(255 255 255 / 10%); }
.footer-bottom.e-con, .footer-bottom.e-con .elementor-shortcode { font-size: 13.5px; color: #8d8d96; }
.e-con .archive-header, .e-con .breadcrumbs { margin-bottom: 0; }
.elementor-widget-eslatina-ticker { min-width: 0; }
.not-found.e-con .elementor-widget-wp-widget-search { width: min(480px, 100%); }
.elementor .e-con .elementor-widget.elementor-widget-eslatina-date,
.elementor .e-con .elementor-widget.elementor-widget-eslatina-social,
.elementor .e-con .elementor-widget.elementor-widget-eslatina-logo,
.elementor .e-con .elementor-widget.elementor-widget-eslatina-header-actions { flex: 0 0 auto; }
.elementor .e-con .elementor-widget.elementor-widget-eslatina-ticker { flex: 1 1 0%; min-width: 0; }
.elementor-widget-eslatina-ticker { overflow: hidden; }
.elementor-widget.elementor-widget-eslatina-article-extras > * + * { margin-top: var(--es-gap); }
.elementor-widget-eslatina-article-extras:empty { display: none; }
/* Elementor strips link underlines ("a { text-decoration: none }"); keep in-text links identifiable */
.elementor .entry-content a:not(.wp-block-button__link) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.elementor .entry-content .read-also a { text-decoration: none; color: var(--text); }

/* Featured slider ----------------------------------------------------------- */
.slider {
	--slider-delay: 6s;
	position: relative; isolation: isolate; overflow: hidden;
	height: clamp(380px, 40vw, 540px);
	border-radius: var(--radius); background: var(--brand-black); color: #fff; box-shadow: var(--shadow);
}
.slider-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; z-index: 1; }
.slide-media { position: absolute; inset: 0; }
.slide-media img, .slide-media .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.slide.is-active .slide-media img { animation: slider-zoom calc(var(--slider-delay) + 2s) ease-out both; }
.slide-media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(0deg, rgb(0 0 0 / 88%) 0%, rgb(0 0 0 / 35%) 45%, rgb(0 0 0 / 0%) 70%),
		linear-gradient(90deg, rgb(0 0 0 / 55%) 0%, rgb(0 0 0 / 0%) 60%);
}
.slide-body {
	position: absolute; left: 40px; bottom: 100px; z-index: 2;
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
	max-width: min(680px, calc(100% - 180px));
}
.slide.is-active .slide-body > * { animation: slider-rise .6s ease-out both; }
.slide.is-active .slide-body > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide-body > :nth-child(3) { animation-delay: .16s; }
.slide-title { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.15; color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / 40%); }
.slide-title a { color: #fff; }
.slide-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.slide .meta { color: rgb(255 255 255 / 78%); }

.slider-nav { position: absolute; left: 40px; bottom: 36px; z-index: 3; display: flex; gap: 10px; }
.slider-arrow {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px;
	background: rgb(255 255 255 / 12%); color: #fff; backdrop-filter: blur(6px);
	transition: background .15s, border-color .15s;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.slider-thumbs {
	position: absolute; right: 32px; top: 50%; z-index: 3; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 14px;
}
.slider-thumb { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; }
.slider-thumb-img { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: #222; transition: transform .25s, opacity .25s; opacity: .7; }
.slider-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.slider-thumb:hover .slider-thumb-img, .slider-thumb.is-active .slider-thumb-img { opacity: 1; }
.slider-thumb.is-active .slider-thumb-img { transform: scale(.94); }
.slider-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.slider-ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.slider-thumb.is-active .slider-ring circle { opacity: 1; stroke-dashoffset: 0; }
/* Autoplay: the ring fills over the delay; when the animation ends, the script moves on. */
.slider.is-playing .slider-thumb.is-active .slider-ring circle { animation: slider-ring var(--slider-delay) linear both; }
.slider.is-playing:hover .slider-thumb.is-active .slider-ring circle,
.slider.is-playing:focus-within .slider-thumb.is-active .slider-ring circle,
.slider.is-playing.is-paused .slider-thumb.is-active .slider-ring circle { animation-play-state: paused; }

@keyframes slider-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes slider-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes slider-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.elementor-widget-eslatina-news .slider { margin: 0; }

@media (max-width: 760px) {
	.slider { height: 440px; }
	.slide-body { left: 18px; right: 18px; bottom: 84px; max-width: none; }
	.slide-title { font-size: 23px; }
	.slider-nav { left: 18px; bottom: 22px; }
	.slider-arrow { width: 40px; height: 40px; }
	.slider-thumbs { top: 16px; right: 16px; transform: none; flex-direction: row; gap: 8px; }
	.slider-thumb { width: 44px; height: 44px; }
	.slider-thumb-img { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.slide, .slide.is-active { transition: none; }
	.slide.is-active .slide-media img, .slide.is-active .slide-body > * { animation: none; }
}
.slider .slide-media img, .slider .slider-thumb-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Section pages: space between lead story, grid and pagination (theme + Elementor) */
.archive-stories { display: flex; flex-direction: column; gap: var(--es-gap); }
.archive-stories .pagination { margin-top: 8px; }

/* About page (Nosotros) ----------------------------------------------------- */
.e-con.about-hero {
	background: radial-gradient(120% 140% at 100% 0%, #2a0a09 0%, var(--brand-black) 55%);
	border-radius: var(--radius); color: #fff; overflow: hidden; position: relative;
}
.e-con.about-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.about-kicker { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.about-hero .about-kicker { color: #ff5a52; }
.e-con .about-title .elementor-heading-title { font-family: var(--font-serif); font-weight: 900; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; color: #fff; }
.about-lead p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: rgb(255 255 255 / 86%); max-width: 62ch; }
.about-badge img { width: min(260px, 100%); height: auto; border-radius: 50%; box-shadow: 0 20px 60px rgb(227 18 11 / 25%); }

.about-text p { margin: 0; font-size: 17.5px; line-height: 1.8; color: var(--text-2); max-width: 78ch; }
.e-con .section-title.elementor-widget-heading .elementor-heading-title { font-family: var(--font-serif); font-size: 26px; color: var(--text); }
.e-con .section-title.elementor-widget-heading { position: relative; padding-left: 14px; }
.e-con .section-title.elementor-widget-heading::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; background: var(--accent); border-radius: 4px; }

.e-con.about-area { transition: transform .2s, box-shadow .2s; border-top: 4px solid var(--accent); }
.e-con.about-area:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.about-area-num { font-family: var(--font-serif); font-weight: 900; font-size: 40px; line-height: 1; color: var(--accent); opacity: .9; }
.e-con .about-area-title .elementor-heading-title { font-family: var(--font-serif); font-size: 24px; color: var(--text); }
.about-area-text p { margin: 0 0 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.about-area-link { font-weight: 700; color: var(--accent-text); }

.about-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.about-chips li { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; }
.about-chips li::before { content: "●"; color: var(--accent); margin-right: 8px; font-size: 10px; vertical-align: 2px; }

.e-con.about-mission { border-left: 6px solid var(--accent); }
.about-quote { margin: 0; padding: 0; border: 0; }
.about-quote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; color: var(--text); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.about-actions .button { text-decoration: none; }
.button--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.button--ghost:hover { background: var(--surface-2); color: var(--text); }
.elementor .about-badge img { border-radius: 50%; }
.elementor .about-actions .button--ghost { box-shadow: inset 0 0 0 2px var(--border); }
.site-footer .brand { justify-content: flex-start; }

/* Contact page (Contacto) --------------------------------------------------- */
.contact-panel-title .elementor-heading-title { font-family: var(--font-serif); font-size: 24px; color: var(--text); }
.contact-note p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

/* Elementor Pro form, in the theme's look */
.contact-form .elementor-field-group { margin-bottom: 16px; }
.contact-form .elementor-field-group > label { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.contact-form .elementor-field-group .elementor-field-textual {
	min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.contact-form textarea.elementor-field-textual { min-height: 160px; resize: vertical; }
.contact-form .elementor-field-group .elementor-field-textual:focus { outline: 0; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgb(227 18 11 / 15%); }
.contact-form .elementor-field-group .elementor-field-textual::placeholder { color: var(--muted); }
.contact-form .elementor-field-type-acceptance label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.contact-form .elementor-field-type-acceptance a { color: var(--accent-text); font-weight: 700; }
.contact-form .elementor-button[type="submit"] {
	min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: #fff;
	font-weight: 700; font-size: 15.5px; transition: background .15s, transform .15s;
}
.contact-form .elementor-button[type="submit"]:hover { background: #b80e08; transform: translateY(-1px); }
.contact-form .elementor-message { margin-top: 14px; font-size: 15px; }
.contact-form .elementor-message.elementor-message-success { color: #0f7a3b; }
.contact-form .elementor-message.elementor-message-danger, .contact-form .elementor-error .elementor-field-textual { color: var(--accent-text); border-color: var(--accent); }

/* Social networks as cards with names */
.social--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.social--cards a {
	display: flex; align-items: center; gap: 12px; width: auto; height: auto; padding: 14px 16px; border-radius: var(--radius-sm);
	border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; text-decoration: none;
	transition: border-color .15s, background .15s, transform .15s;
}
.social--cards a .icon { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.social--cards a:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.social--cards a.is-placeholder { opacity: .55; cursor: default; }
.social--cards a.is-placeholder:hover { border-color: var(--border); background: var(--surface-2); transform: none; }

/* Language switcher (ES · EN) ------------------------------------------------ */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-right: 6px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.lang-switch a { display: grid; place-items: center; min-width: 32px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-current { background: var(--accent); color: #fff; }
