/* ==========================================================================
   Deportiva — estilos del tema
   Colores de marca: Oxford Blue #0a234f, Dark #0f1832, Medium #263760,
   Light #465076, Neon Pear #b9d532.
   Fuentes: Saira Expanded (títulos, cuotas) y Rubik (texto). Para cambiarlas
   por Venti CF / Uni Sans: reemplazar los archivos de /assets/fonts y las
   dos variables --ap-font-*.
   ========================================================================== */

@font-face {
	font-family: "Saira Expanded";
	src: url("../fonts/saira-expanded-italic.woff2") format("woff2");
	font-weight: 800 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik-italic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--ap-bg: #0f1832;
	--ap-surface: #0a234f;
	--ap-raise: #263760;
	--ap-line: #263760;
	--ap-line-2: #465076;
	--ap-accent: #b9d532;
	--ap-accent-hover: color-mix(in srgb, var(--ap-accent) 78%, #fff);
	--ap-text: #ffffff;
	--ap-text-2: #c7cfe2;
	--ap-body: #e3e8f2;
	--ap-nav: #d3daea;
	--ap-muted: #aab4d0;
	--ap-ph: #7c87ad;
	--ap-font-display: "Saira Expanded", "Arial Black", sans-serif;
	--ap-font-text: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ap-radius: 12px;
	--ap-wrap: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--ap-bg);
	color: var(--ap-text);
	font-family: var(--ap-font-text);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
/* Base reforzada: ningún estilo global de constructores (Elementor Kit, temas anteriores) cambia fondo, color o tipografía. */
body.ap-theme, .ap-site, .ap-hdr, .ap-ftr, .ap-mnav {
	background-color: var(--ap-bg);
	color: var(--ap-text);
	font-family: var(--ap-font-text);
}
.ap-hdr, .ap-ftr { background-color: var(--ap-surface); }
.ap-site :is(h1, h2, h3, h4, h5, h6) { color: var(--ap-text); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ap-accent); }
a:hover { color: var(--ap-accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--ap-accent);
	outline-offset: 2px;
}
button { font: inherit; }
[hidden] { display: none !important; }
.ap-sr, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ap-skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ap-accent); color: var(--ap-surface); font-weight: 700; text-decoration: none; }
.ap-skip:focus { left: 16px; }
.ap-wrap { width: 100%; max-width: var(--ap-wrap); margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.ap-icon { flex: none; }

/* ---------- Tipografía de marca ---------- */
.ap-display {
	font-family: var(--ap-font-display);
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: -0.01em;
}
.ap-skew { flex: none; width: 10px; height: 30px; background: var(--ap-accent); border-radius: 3px; transform: skewX(-16deg); }
.ap-skew--lg { width: 12px; height: 40px; }
.ap-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-accent); }
.ap-chip {
	display: inline-flex; align-self: flex-start; align-items: center; padding: 4px 9px; border-radius: 4px;
	border: 1px solid var(--ap-line-2); color: var(--ap-text); text-decoration: none;
	font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ap-chip--solid { background: var(--ap-accent); border-color: var(--ap-accent); color: var(--ap-surface); }
a.ap-chip:hover { color: var(--ap-text); border-color: var(--ap-accent); }
a.ap-chip--solid:hover { color: var(--ap-surface); background: var(--ap-accent-hover); }
.ap-odd { font-family: var(--ap-font-display); font-style: italic; font-weight: 800; font-size: 16px; color: var(--ap-accent); white-space: nowrap; }
.ap-odd--chip { padding: 6px 10px; border-radius: 6px; background: var(--ap-accent); color: var(--ap-surface); font-size: 17px; line-height: 1; }
.ap-odd--big { padding: 10px 16px; border-radius: 10px; background: var(--ap-accent); color: var(--ap-surface); font-size: 28px; font-weight: 900; line-height: 1; }
a:hover .ap-t, .ap-t:hover { color: var(--ap-accent); }

/* ---------- Botones ---------- */
.ap-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start;
	min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--ap-accent);
	background: var(--ap-accent); color: var(--ap-surface); font-size: 14px; font-weight: 700;
	text-decoration: none; cursor: pointer;
}
.ap-btn:hover { background: var(--ap-accent-hover); border-color: var(--ap-accent-hover); color: var(--ap-surface); }
.ap-btn--ghost { background: transparent; color: var(--ap-accent); }
.ap-btn--ghost:hover { background: transparent; color: var(--ap-accent-hover); }
.ap-btn--dashed { border: 1px dashed var(--ap-line-2); background: transparent; color: var(--ap-accent); }
.ap-btn--dashed:hover { background: transparent; color: var(--ap-accent-hover); border-color: var(--ap-accent); }
.ap-iconbtn {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ap-line-2); background: transparent;
	display: inline-flex; align-items: center; justify-content: center; color: var(--ap-text); text-decoration: none; cursor: pointer;
}
.ap-iconbtn:hover, .ap-iconbtn.is-done { border-color: var(--ap-accent); color: var(--ap-accent); }
.ap-iconbtn--sm { width: 40px; height: 40px; }
.ap-iconbtn--sq { border-radius: 10px; border-color: var(--ap-line); color: var(--ap-muted); }
.ap-roundbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ap-bg); color: var(--ap-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ap-roundbtn--accent { background: var(--ap-accent); color: var(--ap-surface); }
.ap-more { font-size: 14px; font-weight: 600; color: var(--ap-accent); text-decoration: none; white-space: nowrap; }
.ap-more--sm { font-size: 13px; }

/* ---------- Cabecera ---------- */
.ap-hdr { position: relative; z-index: 50; background: var(--ap-surface); border-bottom: 1px solid var(--ap-line); }
.ap-hdr__in { display: flex; align-items: center; gap: 12px 28px; min-height: 72px; }
.ap-hdr__logo { flex: none; display: flex; padding: 10px 0; }
.ap-logo { display: block; }
.ap-logo--text { color: var(--ap-text); line-height: 1; white-space: nowrap; }
.ap-nav { flex: 1 1 auto; min-width: 0; }
/* Hasta que main.js reparte los elementos en «Más», lo que no entra queda oculto (nunca debajo del buscador). */
html:not(.js) .ap-nav, .js .ap-nav:not(.is-ready) { overflow: hidden; }
.ap-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.ap-nav__list > li { position: relative; }
.ap-nav__list > li > a {
	display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 14px;
	border-top: 3px solid transparent; border-bottom: 3px solid transparent;
	color: var(--ap-nav); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.ap-nav__list > li > a:hover { color: var(--ap-text); }
.ap-nav__list > .current-menu-item > a,
.ap-nav__list > .current-menu-ancestor > a,
.ap-nav__list > .current-menu-parent > a,
.ap-nav__list > .current-post-ancestor > a,
.ap-nav__list > .current-category-ancestor > a { color: var(--ap-text); border-bottom-color: var(--ap-accent); }
.ap-nav__chev { color: var(--ap-accent); }
.ap-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; padding: 8px; list-style: none;
	background: var(--ap-bg); border: 1px solid var(--ap-line); border-top: 0; border-radius: 0 0 12px 12px;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}
.ap-nav li:hover > .sub-menu, .ap-nav li:focus-within > .sub-menu { display: block; }
.ap-nav .sub-menu a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ap-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.ap-nav .sub-menu a:hover, .ap-nav .sub-menu .current-menu-item > a { background: var(--ap-raise); }

.ap-search {
	display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
	background: var(--ap-bg); border: 1px solid var(--ap-line-2); border-radius: 999px; color: var(--ap-muted);
}
.ap-search:focus-within { border-color: var(--ap-accent); }
.ap-search__input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ap-text); font: inherit; font-size: 14px; }
.ap-search__input::placeholder { color: var(--ap-muted); }
.ap-search__input::-webkit-search-cancel-button { filter: invert(1); }
.ap-hdr__search { flex: none; width: 240px; }
.ap-search--block { height: 48px; border-radius: 12px; background: var(--ap-surface); }
.ap-search--hero { max-width: 520px; height: 48px; }
.ap-burger {
	display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ap-line-2);
	background: transparent; color: var(--ap-text); align-items: center; justify-content: center; cursor: pointer;
}
.ap-burger__close { display: none; }
.ap-burger[aria-expanded="true"] .ap-burger__open { display: none; }
.ap-burger[aria-expanded="true"] .ap-burger__close { display: block; }
.ap-mnav { border-top: 1px solid var(--ap-line); background: var(--ap-bg); padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.ap-mnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ap-mnav__list > li > a { color: var(--ap-text); font-size: 18px; font-weight: 700; text-decoration: none; }
.ap-mnav__list .sub-menu { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ap-mnav__list .sub-menu a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--ap-line-2); color: var(--ap-nav); text-decoration: none; font-size: 13px;
}
@media (max-width: 980px) {
	.ap-nav, .ap-hdr__search { display: none; }
	.ap-burger { display: flex; }
}
@media (min-width: 981px) { .ap-mnav { display: none !important; } }

/* ---------- Bloque H1 con fondo ---------- */
.ap-hero { position: relative; overflow: hidden; container-type: inline-size; background: var(--ap-surface); border-bottom: 1px solid var(--ap-line); }
.ap-hero__decor { position: absolute; inset: 0; pointer-events: none; }
.ap-hero__band { position: absolute; top: -40%; right: -140px; width: 600px; height: 180%; background: var(--ap-bg); transform: skewX(-16deg); }
.ap-hero__mid { position: absolute; top: -40%; right: 380px; width: 140px; height: 180%; background: var(--ap-raise); opacity: 0.6; transform: skewX(-16deg); }
.ap-hero__bolt { position: absolute; right: 60px; top: 50%; width: auto; height: min(200px, calc(100% - 32px)); transform: translateY(-50%) rotate(-8deg); color: var(--ap-accent); stroke-width: 1.1; }
@container (min-width: 821px) { .ap-hero__row { padding-right: 250px; } }
.ap-hero--art .ap-hero__bolt { display: none; }
.ap-hero--art .ap-hero__in { min-height: 300px; justify-content: center; padding-right: min(440px, 38%); }
.ap-hero__art { position: absolute; right: max(16px, calc((100% - var(--ap-wrap)) / 2 + 24px)); bottom: 0; top: 14px; width: auto; pointer-events: none; }
.ap-hero__artimg { display: block; height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35)); }
@container (max-width: 820px) {
	.ap-hero--art .ap-hero__in { min-height: 0; padding-right: clamp(16px, 3vw, 32px); }
	.ap-hero__art { opacity: 0.22; top: 0; right: -40px; }
	.ap-hero__bolt { display: none; }
	.ap-hero__mid { opacity: 0.35; }
}
.ap-hero__in { position: relative; padding-block: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.ap-hero--home .ap-hero__in { padding-block: 26px 28px; gap: 10px; }
.ap-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ap-hero__title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ap-hero .ap-hero__h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; color: var(--ap-text); }
.ap-hero.ap-hero--home .ap-hero__h1 { font-size: clamp(32px, 4.4vw, 54px); }
.ap-hero__media { flex: none; display: flex; }
.ap-hero__media img, .ap-hero__media .ap-avatar { width: 64px; height: 64px; }
.ap-hero__meta { font-size: 14px; color: var(--ap-muted); }
.ap-hero__text { max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--ap-text-2); }
.ap-hero__text p { margin: 0; }
.ap-hero__text p + p { margin-top: 8px; }

.ap-crumbs { font-size: 13px; color: var(--ap-muted); }
.ap-crumbs a { color: var(--ap-muted); text-decoration: none; }
.ap-crumbs a:hover { color: var(--ap-accent); }
.ap-crumbs__sep { margin: 0 8px; color: var(--ap-line-2); }
.ap-crumbs [aria-current="page"], .ap-crumbs .breadcrumb_last { color: var(--ap-text); }

.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip-btn {
	font-family: var(--ap-font-text);
	flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px;
	border: 1px solid var(--ap-line-2); background: transparent; color: var(--ap-text); font-size: 13px; font-weight: 500;
	text-decoration: none; white-space: nowrap; cursor: pointer;
}
.ap-chip-btn:hover { color: var(--ap-text); border-color: var(--ap-accent); }
.ap-chip-btn[aria-selected="true"], .ap-chip-btn[aria-current="page"] { background: var(--ap-accent); border-color: var(--ap-accent); color: var(--ap-surface); font-weight: 700; }
.ap-chip-btn__n { font-size: 12px; color: var(--ap-muted); }
.ap-chip-btn[aria-current="page"] .ap-chip-btn__n { color: var(--ap-surface); opacity: 0.7; }

/* ---------- Lo más caliente ---------- */
.ap-hot { border-bottom: 1px solid var(--ap-line); }
.ap-hot__in { padding-block: 24px; display: flex; flex-direction: column; gap: 18px; }
.ap-hot__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ap-hot .ap-hot__title { font-size: 28px; color: var(--ap-text); }
.ap-hot__panel { display: flex; flex-wrap: wrap; gap: 16px; }
.ap-hot__feature { position: relative; flex: 2 1 560px; min-width: 0; height: 420px; border-radius: 14px; overflow: hidden; background: var(--ap-raise); }
.ap-hot__slide { position: absolute; inset: 0; }
.ap-hot__media { position: absolute; inset: 0; }
.ap-hot__media img { object-position: center 35%; }
.ap-hot__caption {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px;
	padding: 20px clamp(16px, 2.5vw, 26px) 22px; background: var(--ap-surface); border-top: 3px solid var(--ap-accent);
	text-decoration: none; color: var(--ap-text);
}
.ap-hot__caption:hover { color: var(--ap-text); }
.ap-hot__headline { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.ap-hot__controls { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.ap-hot .ap-hot__count { padding: 0 12px; height: 32px; display: flex; align-items: center; border-radius: 999px; background: var(--ap-bg); color: var(--ap-text); font-size: 13px; font-weight: 600; }
.ap-hot__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 600px) { .ap-hot__feature { height: 380px; } }

/* ---------- Medios y tarjetas ---------- */
.ap-media { position: relative; display: block; overflow: hidden; background: var(--ap-raise); }
.ap-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-media__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ap-ph); }

.ap-card { min-width: 0; display: flex; }
.ap-card__link {
	width: 100%; display: flex; flex-direction: column; background: var(--ap-surface); border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius); overflow: hidden; text-decoration: none; color: var(--ap-text);
}
.ap-card__link:hover { color: var(--ap-text); border-color: var(--ap-line-2); }
.ap-card__media { flex: none; height: 150px; }
.ap-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.ap-card__title { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.3; }
.ap-card__lead { font-size: 13px; line-height: 1.5; color: var(--ap-text-2); }
.ap-card__meta { font-size: 12px; color: var(--ap-muted); }

.ap-card--sm .ap-card__media { height: 116px; }
.ap-card--sm .ap-card__body { padding: 12px 14px 14px; }
.ap-card--sm .ap-card__title { font-size: 15px; }

.ap-card--lg .ap-card__link { border-radius: 14px; }
.ap-card--lg .ap-card__media { flex: 1 0 240px; height: auto; min-height: 240px; }
.ap-card--lg .ap-card__body { flex: none; gap: 12px; padding: 20px 22px 22px; }
.ap-card--lg .ap-card__title { flex: none; font-size: 24px; font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
.ap-card--lg .ap-card__lead { font-size: 15px; }

.ap-card--bet-lg .ap-card__link { border-radius: 14px; }
.ap-card--bet-lg .ap-card__media { height: 190px; }
.ap-card--bet-lg .ap-card__body { gap: 10px; padding: 18px 20px 20px; }
.ap-card--bet-lg .ap-card__title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.ap-card--bet-md .ap-card__media { height: 130px; }
.ap-card--bet-md .ap-card__body { gap: 8px; }
.ap-card--bet-md .ap-card__title { font-size: 15px; }
.ap-pickbox { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ap-bg); border: 1px solid var(--ap-line); border-radius: 10px; }
.ap-pickbox__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-pickbox__label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-muted); }
.ap-pickbox__pick { font-size: 14px; font-weight: 600; }
.ap-pickline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--ap-line); font-size: 13px; color: var(--ap-text-2); }

.ap-row { min-width: 0; }
.ap-row__link { display: flex; gap: 12px; text-decoration: none; color: var(--ap-text); }
.ap-row__link:hover { color: var(--ap-text); }
.ap-row__media { flex: none; width: 72px; height: 72px; border-radius: 8px; }
.ap-row__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ap-row__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ap-row--side .ap-row__link { padding: 14px 0; }
.ap-list > .ap-row { border-top: 1px solid var(--ap-line); }
.ap-row--hot { flex: 1; display: flex; }
.ap-row--hot .ap-row__link { width: 100%; align-items: center; gap: 14px; padding: 12px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-row--hot .ap-row__media { width: 104px; height: 78px; }
.ap-row--hot .ap-row__title { font-size: 15px; }

/* ---------- Rejillas y maquetación ---------- */
.ap-grid { display: grid; gap: 16px; }
.ap-grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ap-grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ap-grid--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-lead-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ap-lead-row > .ap-card--lg { flex: 1.25 1 380px; }
.ap-lead-row > .ap-grid--2x2 { flex: 1 1 380px; min-width: 0; }
.ap-lead-row--archive > .ap-card--lg, .ap-lead-row--archive > .ap-card--bet-lg { flex: 1.4 1 400px; }
.ap-lead-row--archive > .ap-stack-sm { flex: 1 1 300px; min-width: 0; }
.ap-lead-row--archive .ap-stack-sm > .ap-card { flex: 1; }
.ap-lead-row--archive .ap-stack-sm .ap-card__media { height: 130px; }

.ap-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-block: 40px 64px; }
.ap-layout--article { padding-top: 28px; }
.ap-layout__main { flex: 999 1 640px; min-width: 0; }
.ap-layout__side { flex: 1 1 320px; min-width: 0; }
.ap-layout--home { container: aphome / inline-size; }
.ap-sticky { position: sticky; bottom: 24px; align-self: flex-end; }
@container aphome (max-width: 999px) { .ap-sticky { position: static; } }
.ap-stack-xl { display: flex; flex-direction: column; gap: 64px; }
.ap-stack-lg { display: flex; flex-direction: column; gap: 32px; }
.ap-stack-sm { display: flex; flex-direction: column; gap: 16px; }
.ap-zone-row { padding-top: 24px; }

.ap-section { display: flex; flex-direction: column; gap: 28px; }
.ap-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ap-line); }
.ap-sechead__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ap-sechead .ap-sechead__text { margin: 0; font-size: clamp(22px, 2.4vw, 30px); color: var(--ap-text); }
.ap-sechead--sm .ap-sechead__text { font-size: 24px; }
.ap-sechead--sm .ap-skew { height: 26px; }
.ap-group { display: flex; flex-direction: column; gap: 16px; }
.ap-grouphead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-grouphead__title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-muted); }
.ap-disclaimer { margin: 0; font-size: 12px; color: var(--ap-muted); }
.ap-empty__text { margin: 0; font-size: 16px; color: var(--ap-text-2); }
.ap-empty { display: flex; flex-direction: column; gap: 16px; }
.ap-empty__text--group { padding: 18px 20px; border: 1px dashed var(--ap-line-2); border-radius: var(--ap-radius); font-size: 14px; color: var(--ap-muted); }

/* ---------- Barra lateral ---------- */
.ap-side { display: flex; flex-direction: column; gap: 24px; }
.ap-box { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 14px; }
.ap-box .ap-box__title { font-size: 22px; line-height: 1.1; color: var(--ap-nav); }
.ap-box > .ap-list { margin-top: -6px; }
.ap-teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ap-teams > li { min-width: 0; }
.ap-team {
	height: 100%; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 8px 12px; border-radius: 10px; background: var(--ap-bg); border: 1px solid var(--ap-line);
	text-align: center; text-decoration: none; color: var(--ap-text);
}
.ap-team:hover { color: var(--ap-text); border-color: var(--ap-line-2); }
.ap-team__name { max-width: 100%; font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.ap-teams-block { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.ap-crest { flex: none; object-fit: contain; }
.ap-crest--text { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ap-raise); border: 2px solid var(--ap-line-2); font-size: 10px; font-weight: 700; color: var(--ap-text); }

.ap-reserved {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px;
	border: 2px dashed var(--ap-line-2); border-radius: 14px; text-align: center; color: var(--ap-accent);
}
.ap-reserved__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ap-reserved__name { font-size: 17px; font-weight: 700; color: var(--ap-text); }
.ap-reserved__link { font-size: 13px; color: var(--ap-muted); }
.ap-widget + .ap-widget { margin-top: 16px; }
.ap-widget__title { margin-bottom: 12px; font-family: var(--ap-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 20px; }

/* ---------- Artículo ---------- */
.ap-article { display: flex; flex-direction: column; gap: 24px; }
.ap-article__head { display: flex; flex-direction: column; gap: 16px; }
.ap-article__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-article__title { margin: 0; font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.ap-article__lead { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ap-text-2); }
.ap-article__cover { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-article__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--ap-raise); }
.ap-article__cover figcaption { font-size: 13px; color: var(--ap-muted); }

.ap-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 0; border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); }
.ap-meta--compact { padding: 0; border: 0; }
.ap-meta--compact .ap-avatar { width: 36px; height: 36px; }
.ap-meta__who { display: flex; align-items: center; gap: 12px; }
.ap-meta__lines { display: flex; flex-direction: column; gap: 2px; }
.ap-meta__author { color: var(--ap-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.ap-meta__info { font-size: 13px; color: var(--ap-muted); }
.ap-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--ap-raise); }
.ap-avatar--lg { width: 64px; height: 64px; }
.ap-share { display: flex; align-items: center; gap: 8px; }
.ap-share__label { margin-right: 4px; font-size: 13px; color: var(--ap-muted); }

.ap-toc { background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-toc__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 20px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.ap-toc__summary::-webkit-details-marker, .ap-faq__q::-webkit-details-marker { display: none; }
.ap-toc__chev, .ap-faq__chev { flex: none; color: var(--ap-accent); }
.ap-toc[open] .ap-toc__chev, .ap-faq__item[open] .ap-faq__chev { transform: rotate(180deg); }
.ap-toc__list { margin: 0; padding: 0 20px 18px 42px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.ap-toc__list a, .ap-page__toc a { color: var(--ap-nav); text-decoration: none; }
.ap-toc__list a:hover, .ap-page__toc a:hover { color: var(--ap-accent); }

.ap-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.ap-tags__label { margin-right: 4px; font-size: 13px; color: var(--ap-muted); }
.ap-teamchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ap-line-2); color: var(--ap-nav); text-decoration: none; font-size: 14px; }
.ap-teamchip--crest { padding-left: 8px; background: var(--ap-surface); border-color: var(--ap-line); color: var(--ap-text); font-weight: 600; }
.ap-teamchip:hover { color: var(--ap-text); border-color: var(--ap-accent); }

.ap-authorbox { display: flex; flex-wrap: wrap; gap: 16px 20px; padding: 22px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 14px; }
.ap-authorbox__body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.ap-authorbox__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-muted); }
.ap-authorbox__name { font-size: 17px; font-weight: 700; }
.ap-authorbox__cargo { font-weight: 400; color: var(--ap-muted); }
.ap-authorbox__bio { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ap-text-2); }
.ap-related { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }

/* ---------- Ficha del pronóstico ---------- */
.ap-ficha { background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 16px; overflow: hidden; }
.ap-ficha__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 22px; background: var(--ap-bg); border-bottom: 1px solid var(--ap-line); }
.ap-ficha__comp { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-muted); }
.ap-ficha__info { font-size: 13px; color: var(--ap-nav); }
.ap-ficha__teams { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; padding: 26px 22px; }
.ap-ficha__team { flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--ap-text); text-decoration: none; }
.ap-ficha__team:hover { color: var(--ap-accent); }
.ap-ficha__name { font-size: 18px; font-weight: 700; }
.ap-ficha__role { font-size: 12px; color: var(--ap-muted); }
.ap-ficha__vs { font-family: var(--ap-font-display); font-style: italic; font-weight: 900; font-size: 28px; color: var(--ap-line-2); }
.ap-ficha__pick { margin: 0 22px 18px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--ap-bg); border: 1px solid var(--ap-accent); border-radius: var(--ap-radius); }
.ap-ficha__teams + .ap-ficha__pick { margin-top: 0; }
.ap-ficha__top + .ap-ficha__pick { margin-top: 18px; }
.ap-ficha__pickmain { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.ap-ficha__label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-accent); }
.ap-ficha__label--muted { color: var(--ap-muted); }
.ap-ficha__picktext { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ap-ficha__market { font-size: 13px; color: var(--ap-muted); }
.ap-ficha__conf { display: flex; flex-direction: column; gap: 6px; }
.ap-ficha__bars { display: flex; gap: 4px; }
.ap-ficha__bars span { width: 18px; height: 8px; border-radius: 2px; background: var(--ap-raise); transform: skewX(-16deg); }
.ap-ficha__bars .is-on { background: var(--ap-accent); }
.ap-ficha__others { padding: 0 22px 8px; display: flex; flex-direction: column; }
.ap-ficha__others > .ap-ficha__label { padding-bottom: 8px; }
.ap-ficha__other { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ap-line); }
.ap-ficha__om { font-size: 14px; color: var(--ap-text-2); }
.ap-ficha__os { flex: 1; text-align: right; font-size: 15px; font-weight: 600; }
.ap-ficha__other .ap-odd { min-width: 56px; text-align: right; font-size: 17px; }
.ap-ficha__more { display: block; padding: 0 22px 14px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ap-ficha__note { margin: 0; padding: 12px 22px 18px; font-size: 12px; line-height: 1.5; color: var(--ap-muted); border-top: 1px solid var(--ap-line); }

/* ---------- Contenido del editor ---------- */
.ap-content { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ap-body); overflow-wrap: break-word; }
.ap-content > * { margin-top: 0; margin-bottom: 18px; }
.ap-content > *:last-child { margin-bottom: 0; }
.ap-content h2, .ap-content h3, .ap-content h4 { color: var(--ap-text); line-height: 1.25; scroll-margin-top: 24px; }
.ap-content h2 { margin: 34px 0 14px; font-size: 26px; font-weight: 700; }
.ap-content h3 { margin: 26px 0 12px; font-size: 20px; font-weight: 700; }
.ap-content h4 { margin: 22px 0 10px; font-size: 18px; font-weight: 700; }
.ap-content > h2:first-child, .ap-content > h3:first-child { margin-top: 0; }
.ap-content strong { color: var(--ap-text); }
.ap-content ul, .ap-content ol { padding-left: 22px; }
.ap-content li + li { margin-top: 8px; }
.ap-content blockquote, .ap-content .wp-block-quote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ap-accent); }
.ap-content blockquote p { margin: 0 0 8px; font-size: 20px; line-height: 1.5; font-style: italic; color: var(--ap-text); }
.ap-content blockquote cite { font-size: 14px; font-style: normal; color: var(--ap-muted); }
.ap-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; border: 1px solid var(--ap-line); }
.ap-content th { padding: 12px 16px; text-align: left; background: var(--ap-surface); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-muted); }
.ap-content td { padding: 12px 16px; border-top: 1px solid var(--ap-line); }
.ap-content tbody th { border-top: 1px solid var(--ap-line); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; background: transparent; }
.ap-content .wp-block-table { overflow-x: auto; }
@media (max-width: 700px) { .ap-content table { display: block; overflow-x: auto; } }
.ap-content img { border-radius: var(--ap-radius); }
.ap-content figure { margin-inline: 0; }
.ap-content figcaption, .ap-content .wp-caption-text { margin-top: 8px; font-size: 13px; color: var(--ap-muted); }
.ap-content .wp-caption { max-width: 100%; }
.ap-content .aligncenter { display: block; margin-inline: auto; }
.ap-content .alignleft { float: left; margin: 4px 20px 12px 0; }
.ap-content .alignright { float: right; margin: 4px 0 12px 20px; }
.ap-content hr { border: 0; border-top: 1px solid var(--ap-line); }
.ap-content code { padding: 2px 6px; border-radius: 4px; background: var(--ap-raise); font-size: 0.9em; }
.ap-content iframe { display: block; max-width: 100%; }
.ap-content .wp-block-button__link, .ap-content .wp-element-button { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 10px; background: var(--ap-accent); color: var(--ap-surface); font-weight: 700; text-decoration: none; }
.ap-content--page { max-width: none; }
.ap-content--page > p, .ap-content--page > ul, .ap-content--page > ol, .ap-content--page > h2, .ap-content--page > h3, .ap-content--page > h4, .ap-content--page > blockquote, .ap-content--page > table { max-width: 760px; }
.ap-content .ap-sechead__text { margin: 0; font-size: 24px; }
.ap-content > .ap-faq, .ap-content > .ap-calc, .ap-content > .ap-ficha, .ap-content > .ap-rg, .ap-content > .ap-sc-posts { margin-block: 32px; }
.ap-content > .ap-calc:first-child { margin-top: 0; }

/* Paleta del editor de bloques. */
.has-oxford-color { color: #0a234f; } .has-oxford-background-color { background-color: #0a234f; }
.has-dark-color { color: #0f1832; } .has-dark-background-color { background-color: #0f1832; }
.has-medium-color { color: #263760; } .has-medium-background-color { background-color: #263760; }
.has-pear-color { color: #b9d532; } .has-pear-background-color { background-color: #b9d532; }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }

.ap-page { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; padding-block: 40px 72px; }
.ap-page__toc { flex: 1 1 220px; max-width: 300px; padding: 18px 20px; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-page__toc-label { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-muted); }
.ap-page__toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.ap-page__body { flex: 999 1 560px; min-width: 0; }
.ap-fullwidth { min-height: 40vh; }

/* ---------- Texto SEO plegable y FAQ ---------- */
.ap-seo { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 32px); background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 14px; }
.ap-seo__body { max-width: none; font-size: 15px; line-height: 1.65; color: var(--ap-text-2); }
.ap-seo__body h2 { font-size: 22px; }
.ap-seo__body h3 { font-size: 17px; margin-top: 20px; }
.js .ap-seo[data-ap-collapse]:not(.is-open):not(.is-short) .ap-seo__body { max-height: var(--ap-seo-h, 15em); overflow: hidden; }
html:not(.js) .ap-seo__toggle, .ap-seo.is-short .ap-seo__toggle { display: none; }
.ap-seo__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ap-faq { display: flex; flex-direction: column; gap: 20px; }
.ap-faq__list { display: flex; flex-direction: column; gap: 10px; }
.ap-faq__item { background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 0 22px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ap-text); cursor: pointer; list-style: none; }
.ap-faq__a { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--ap-text-2); }
.ap-faq__a p { margin: 0 0 10px; }
.ap-faq__a > :last-child { margin-bottom: 0; }

/* ---------- Calculadora ---------- */
.ap-calc { background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 16px; overflow: hidden; font-size: 16px; line-height: 1.5; color: var(--ap-text); }
.ap-calc__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; background: var(--ap-bg); border-bottom: 1px solid var(--ap-line); }
.ap-calc__tab { flex: 1 0 auto; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--ap-line); background: transparent; color: var(--ap-text); font-size: 15px; font-weight: 500; cursor: pointer; }
.ap-calc__tab[aria-selected="true"] { background: var(--ap-accent); border-color: var(--ap-accent); color: var(--ap-surface); font-weight: 700; }
.ap-calc__grid { display: flex; flex-wrap: wrap; gap: 24px; padding: clamp(18px, 3vw, 28px); }
.ap-calc__form { flex: 1.3 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ap-field { display: flex; flex-direction: column; gap: 8px; }
.ap-field__label { font-size: 14px; font-weight: 600; color: var(--ap-text); }
.ap-field__input { width: 100%; height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ap-line-2); background: var(--ap-bg); color: var(--ap-text); font: inherit; font-size: 18px; font-weight: 600; }
.ap-field__input::placeholder { color: var(--ap-ph); }
.ap-calc__sels { display: flex; flex-direction: column; gap: 12px; }
.ap-calc__sel { display: flex; align-items: center; gap: 10px; }
.ap-calc__sel + .ap-calc__sel { margin-top: 10px; }
.ap-calc__sel-label { flex: none; width: 104px; font-size: 14px; color: var(--ap-text-2); }
.ap-calc__sel .ap-field__input { flex: 1; min-width: 0; height: 48px; font-size: 17px; }
.ap-calc__hint { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ap-muted); }
.ap-calc__result { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px; background: var(--ap-bg); border: 1px solid var(--ap-line); border-radius: 14px; }
.ap-calc__k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-muted); }
.ap-calc__big { margin-top: -6px; font-family: var(--ap-font-display); font-style: italic; font-weight: 900; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; color: var(--ap-accent); overflow-wrap: anywhere; }
.ap-calc__row { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--ap-line); }
.ap-calc__row span { font-size: 14px; color: var(--ap-text-2); }
.ap-calc__row strong { font-size: 16px; color: var(--ap-text); }
.ap-calc__err { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ap-text-2); }
.ap-calc__note { margin: 0; padding: 14px clamp(18px, 3vw, 28px); border-top: 1px solid var(--ap-line); font-size: 12px; line-height: 1.5; color: var(--ap-muted); }

/* ---------- Juego responsable ---------- */
.ap-rg { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 18px 20px; background: var(--ap-bg); border: 1px solid var(--ap-line); border-radius: var(--ap-radius); }
.ap-rg--inline { background: var(--ap-surface); }
.ap-rg__badge { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ap-accent); display: flex; align-items: center; justify-content: center; font-family: var(--ap-font-display); font-style: italic; font-weight: 900; font-size: 18px; color: var(--ap-accent); }
.ap-rg__badge--sm { width: 40px; height: 40px; font-size: 13px; }
.ap-rg__body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; }
.ap-rg__title { font-size: 15px; font-weight: 700; }
.ap-rg__text { font-size: 13px; line-height: 1.55; color: var(--ap-text-2); }
.ap-rg__lines { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ap-text-2); }
.ap-rg__lines a { color: var(--ap-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ap-rg--note { align-items: flex-start; flex-wrap: nowrap; gap: 14px; padding: 16px 18px; background: var(--ap-surface); font-size: 14px; line-height: 1.55; color: var(--ap-text-2); }
.ap-rg--note p { margin: 0; }

/* ---------- Pie ---------- */
.ap-ftr { background: var(--ap-surface); border-top: 1px solid var(--ap-line); }
.ap-ftr__in { padding-block: 48px 28px; display: flex; flex-direction: column; gap: 32px; }
.ap-ftr__top { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.ap-ftr__brand { flex: 1.6 1 280px; display: flex; flex-direction: column; gap: 16px; }
.ap-ftr__logo { align-self: flex-start; display: flex; }
.ap-ftr__text { margin: 0; max-width: 360px; font-size: 14px; line-height: 1.6; color: var(--ap-text-2); }
.ap-ftr__social { display: flex; gap: 8px; }
.ap-ftr__col { flex: 1 1 160px; }
.ap-ftr__label { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-muted); }
.ap-ftr__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ap-ftr__list a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ap-text); text-decoration: none; font-size: 14px; }
.ap-ftr__list a:hover { color: var(--ap-accent); }
.ap-ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 4px; font-size: 12px; color: var(--ap-muted); }

/* ---------- Paginación ---------- */
.ap-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.ap-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ap-line-2); color: var(--ap-text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; font-weight: 600; }
.ap-pager a.page-numbers:hover { border-color: var(--ap-accent); color: var(--ap-text); }
.ap-pager .current { background: var(--ap-accent); border-color: var(--ap-accent); color: var(--ap-surface); font-weight: 700; }
.ap-pager .dots { border: 0; min-width: 0; padding: 0 4px; }

/* ---------- Promo (desactivada por defecto) ---------- */
.ap-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; background: var(--ap-surface); border: 1px solid var(--ap-accent); border-radius: 14px; }
.ap-promo__body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.ap-promo__title { font-size: 18px; font-weight: 700; }
.ap-promo__text { font-size: 14px; color: var(--ap-text-2); }
.ap-promo__code { padding: 10px 16px; border: 2px dashed var(--ap-accent); border-radius: 10px; background: var(--ap-bg); color: var(--ap-accent); font-family: var(--ap-font-display); font-style: italic; font-weight: 900; font-size: 20px; letter-spacing: 0.04em; cursor: pointer; }
.ap-promo__code.is-done { border-style: solid; }
.ap-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ap-surface); border-top: 2px solid var(--ap-accent); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35); }
.ap-cta__in { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.ap-cta__text { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.ap-cta__btn { align-self: center; }
.ap-cta__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ap-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ap-has-cta body { padding-bottom: 72px; }
@media (min-width: 981px) { .ap-cta--mobile { display: none !important; } .ap-has-cta body:has(.ap-cta--mobile) { padding-bottom: 0; } }

/* ==========================================================================
   3.0 — Bloques, lienzo, menú de 3 niveles
   ========================================================================== */

/* ---------- Menú: tercer nivel, «Más», buscador como icono ---------- */
.ap-nav .sub-menu li { position: relative; }
.ap-nav .sub-menu .menu-item-has-children > a { justify-content: space-between; gap: 12px; }
.ap-nav__chev--side { color: var(--ap-muted); }
.ap-nav .sub-menu .sub-menu { top: -9px; left: 100%; border-top: 1px solid var(--ap-line); border-radius: 12px; }
.ap-nav .sub-menu .sub-menu.is-left { left: auto; right: 100%; }
.ap-nav__more > .ap-nav__morebtn {
	display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 14px; border: 0;
	border-top: 3px solid transparent; border-bottom: 3px solid transparent; background: transparent;
	color: var(--ap-nav); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
}
.ap-nav__more > .ap-nav__morebtn:hover, .ap-nav__more.is-open > .ap-nav__morebtn { color: var(--ap-text); }
.ap-nav__more > .sub-menu { left: auto; right: 0; }
.ap-nav__more.is-open > .sub-menu { display: block; }
/* Dentro de «Más» los submenús se abren hacia abajo, con sangría. */
.ap-nav__more .sub-menu .sub-menu { position: static; display: block; min-width: 0; margin: 0 0 4px 12px; padding: 0 0 0 8px; border: 0; border-left: 2px solid var(--ap-line); border-radius: 0; box-shadow: none; background: transparent; }
.ap-nav__more .sub-menu .ap-nav__chev { display: none; }
.ap-hdr__searchicon { position: relative; flex: none; margin-left: auto; }
.ap-hdr__searchicon > summary { list-style: none; }
.ap-hdr__searchicon > summary::-webkit-details-marker { display: none; }
.ap-hdr__searchpop { position: absolute; right: 0; top: calc(100% + 14px); width: min(360px, 80vw); z-index: 60; }
.ap-hdr__searchpop .ap-search { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); }
@media (max-width: 980px) { .ap-hdr__searchicon { display: none; } }

/* Menú móvil: tercer nivel debajo de su elemento. */
.ap-mnav__list .sub-menu > li.menu-item-has-children { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ap-mnav__list .sub-menu .sub-menu { margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--ap-line-2); }
.ap-mnav__list .sub-menu .sub-menu a { min-height: 32px; font-size: 12px; }

/* ---------- Lienzo de bloques (portada y páginas armadas con bloques) ---------- */
.ap-canvas { padding-bottom: 64px; }
.ap-canvas > * { margin-top: 0; margin-bottom: 0; }
.ap-canvas > *:not(.ap-full):not(.alignfull) {
	width: 100%; max-width: var(--ap-wrap); margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px);
}
.ap-canvas > * + * { margin-top: 48px; }
.ap-canvas > .ap-full + .ap-full, .ap-canvas > .ap-full + .ap-zone-block { margin-top: 0; }
.ap-canvas > .ap-zone-block { padding-top: 24px; }
.ap-canvas > .ap-layout-block { margin-top: 0; }
.ap-canvas > .ap-layout-block:last-child .ap-layout { padding-bottom: 0; }
/* Texto suelto en el lienzo: columna de lectura alineada a la izquierda. */
.ap-flow > :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6, .wp-block-table, .wp-block-image, figure) {
	color: var(--ap-body); font-size: 17px; line-height: 1.7;
}
.ap-canvas > :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) {
	padding-right: max(clamp(16px, 3vw, 32px), calc(min(100%, var(--ap-wrap)) - 760px - clamp(16px, 3vw, 32px)));
}
.ap-layout__main.ap-flow > :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) { max-width: 760px; margin: 0; }
.ap-flow > :is(h2, h3, h4, h5, h6) { color: var(--ap-text); line-height: 1.25; }
.ap-flow > h2 { font-size: 26px; } .ap-flow > h3 { font-size: 20px; }
.ap-editnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border: 1px dashed var(--ap-accent); border-radius: 10px; font-size: 14px; color: var(--ap-text-2); }
.ap-editnote .ap-icon { color: var(--ap-accent); }

/* ---------- Rejilla con columnas elegidas en el bloque ---------- */
.ap-grid--cols {
	--ap-cols: 3;
	grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - (var(--ap-cols) - 1) * 16px) / var(--ap-cols))), 1fr));
}
.ap-postlist__lead { margin-bottom: 16px; }
.ap-postlist__lead > .ap-card--lg, .ap-postlist__lead > .ap-card--bet-lg { width: 100%; }

/* ---------- Hero ---------- */
.ap-hero--plain .ap-hero__bolt { display: none; }

/* ---------- Contenido + barra lateral ---------- */
.ap-layout--side-left { flex-direction: row-reverse; }
.ap-layout--noside > .ap-layout__main { flex-basis: 100%; }
.ap-layout--noside.ap-layout--article > .ap-layout__main { max-width: 900px; margin-inline: auto; }

/* ---------- Sección con título ---------- */
.ap-sectionblock { gap: 20px; }
.ap-sectionblock--boxed { padding: clamp(20px, 3vw, 32px); background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 14px; }
.ap-sectionblock--text .ap-sectionblock__body { max-width: 760px; }
.ap-sectionblock__body > .ap-section, .ap-sectionblock__body > .ap-faq { margin-block: 32px; }

/* ---------- Texto plegable sin recuadro ---------- */
.ap-seo--plain { padding: 0; background: transparent; border: 0; border-radius: 0; }

/* ---------- Avisos de bloques vacíos (solo en el editor) ---------- */
.ap-block-empty { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border: 1px dashed var(--ap-line-2); border-radius: var(--ap-radius); font-size: 14px; color: var(--ap-muted); }
.ap-block-empty .ap-icon { color: var(--ap-accent); }
