/*
Theme Name: TuPlanSeguroFin
Theme URI: https://tuplansegurofin.com
Author: Jonathan
Description: Tema para blog de finanzas personales, seguros, ahorro, préstamos e hipotecas. Portada tipo revista con ticker de mercados, artículo destacado, últimas noticias, franja de categorías y rejilla de artículos.
Version: 1.15.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tpsf
*/

/* ---------- Fuente (alojada en el tema, sin llamadas a Google) ---------- */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
	     url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--navy: #0a1628;
	--navy-2: #14284a;
	--yellow: #f6b70e;
	--yellow-d: #e2a400;
	--ink: #0d1726;
	--text: #3b4656;
	--muted: #687384;
	--line: #e3e7ed;
	--line-2: #b9c1cd;
	--soft: #f6f7f9;
	--bg: #ffffff;
	--up: #22c55e;
	--down: #ef4444;
	--wrap: 1440px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
	color: var(--ink);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.icon { width: 1em; height: 1em; flex: none; }

.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;
	left: 12px; top: 12px; z-index: 1000; padding: 12px 18px;
	background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 6px;
}

/* ---------- Botones y etiquetas ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--yellow); color: var(--ink);
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	padding: 10px 18px; border: 0; border-radius: 6px; cursor: pointer;
	transition: background-color .15s;
}
.btn:hover { background: var(--yellow-d); color: var(--ink); }
.btn .icon { width: 22px; height: 22px; }

.badge {
	display: inline-block;
	background: var(--yellow); color: var(--ink);
	font-size: 13px; font-weight: 700; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .01em;
	padding: 6px 11px; border-radius: 5px;
}
a.badge:hover { background: var(--yellow-d); }

/* ---------- Ticker de mercados ---------- */
.ticker { background: var(--navy); color: #fff; font-size: 14.5px; }
.ticker__inner {
	display: flex; align-items: center; height: 36px;
	overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.ticker__inner::-webkit-scrollbar { display: none; }
.ticker__label { font-weight: 700; padding-right: 30px; }
.ticker__item {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 0 30px; border-left: 1px solid rgba(255,255,255,.28);
}
.ticker__name { font-weight: 600; }
.ticker__chg { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.ticker__chg::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.ticker__chg.is-up { color: var(--up); }
.ticker__chg.is-up::before { border-bottom: 8px solid var(--up); }
.ticker__chg.is-down { color: var(--down); }
.ticker__chg.is-down::before { border-top: 8px solid var(--down); }
.ticker--tv .ticker__inner { height: 56px; overflow: hidden; gap: 0; }
.ticker--tv .ticker__label { flex: none; padding-right: 22px; margin-right: 4px; border-right: 1px solid rgba(255,255,255,.28); }
.ticker__tv { flex: 1; min-width: 0; height: 56px; overflow: hidden; position: relative; }
/* El widget de TradingView ocupa ~72 px: se reduce al 78 % para dejar la barra en 56 px */
.ticker__scale { position: absolute; top: 0; left: 0; width: calc(100% / .78); transform: scale(.78); transform-origin: left top; }
.ticker__credit { flex: none; padding-left: 14px; font-size: 11px; white-space: nowrap; }
.ticker__credit a { color: rgba(255,255,255,.6); }
.ticker__credit a:hover { color: var(--yellow); }

/* ---------- Cabecera ---------- */
.site-header__main { background: var(--navy); color: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 26px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__shield { width: 50px; height: 50px; flex: none; }
.brand:hover { color: #fff; }
.brand__name { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 58px; width: auto; }
.brand__tagline {
	margin: 0; padding-left: 26px; max-width: 230px;
	border-left: 1px solid rgba(255,255,255,.28);
	font-size: 16px; line-height: 1.35; color: rgba(255,255,255,.88);
}
.header-search { margin-left: auto; width: min(362px, 100%); }

/* Buscador */
.search-form {
	display: flex; align-items: center;
	border: 1px solid var(--line-2); border-radius: 6px; background: #fff;
}
.search-field {
	flex: 1; min-width: 0; border: 0; background: transparent;
	font: inherit; font-size: 16px; color: var(--ink); padding: 10px 14px;
}
.search-field:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.search-field::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-submit {
	display: inline-flex; background: none; border: 0; color: var(--ink);
	padding: 8px 14px; cursor: pointer;
}
.search-submit .icon { width: 22px; height: 22px; }
.header-search .search-form { background: transparent; border-color: rgba(255,255,255,.4); }
.header-search .search-field, .header-search .search-submit { color: #fff; }
.header-search .search-field::placeholder { color: rgba(255,255,255,.8); }

/* ---------- Menú ---------- */
.site-nav {
	background: #fff; border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
}
.admin-bar .site-nav { top: 32px; }
.site-nav__inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
	display: flex; align-items: center; gap: 8px;
	padding: 14px 16px 11px; border-bottom: 3px solid transparent;
	font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.primary-menu > li:first-child > a { padding-left: 4px; padding-right: 4px; margin-right: 12px; }
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a,
.primary-menu > li.current-menu-parent > a,
.primary-menu > li.current-cat > a,
.primary-menu > li.current-cat-ancestor > a,
.primary-menu > li > a:hover { border-bottom-color: var(--yellow); }
.primary-menu .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin: -4px 0 0 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
.primary-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 250px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: 8px;
	box-shadow: 0 14px 34px rgba(10,22,40,.14);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a {
	display: block; padding: 9px 12px; border-radius: 6px;
	font-weight: 600; font-size: 15px; color: var(--ink);
}
.primary-menu .sub-menu a:hover { background: var(--soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.submenu-toggle { display: none; }
.nav-tool {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: 16px; color: var(--ink);
	padding: 8px 14px; border: 2px solid var(--yellow); border-radius: 6px;
	transition: background-color .15s;
}
.nav-tool:hover { background: rgba(246,183,14,.16); color: var(--ink); }
.nav-tool .icon { width: 20px; height: 20px; }
.menu-toggle {
	display: none; align-items: center; gap: 8px;
	background: none; border: 1px solid var(--line); border-radius: 6px;
	font: inherit; font-weight: 700; color: var(--ink); padding: 8px 12px; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* ---------- Metadatos ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 14.5px; line-height: 1.3; }
.meta__item { display: inline-flex; align-items: center; gap: 7px; }
.meta__item .icon { width: 16px; height: 16px; }
.meta__sep { width: 1px; height: 14px; background: var(--line-2); }
.meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* ---------- Portada: bloque superior ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding: 32px 0 30px; }
.hero-col { padding-right: 36px; }
.hero { position: relative; display: flex; align-items: center; min-height: 360px; height: 100%; }
.hero__media {
	position: absolute; top: 0; right: 0; bottom: 0; width: 67%;
	border-radius: 0 8px 8px 0; overflow: hidden; background: var(--soft);
	/* La foto se desvanece bajo el texto para que se lea con cualquier imagen, también oscura */
	-webkit-mask-image: linear-gradient(90deg, transparent 29%, rgba(0,0,0,.3) 38%, #000 58%);
	mask-image: linear-gradient(90deg, transparent 29%, rgba(0,0,0,.3) 38%, #000 58%);
}
.hero__media img, .hero__media .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero__body { position: relative; z-index: 2; width: 52%; max-width: 450px; }
.hero__title {
	font-size: clamp(34px, 3.5vw, 50px); font-weight: 900;
	line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 16px;
}
.hero__title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.hero__excerpt { font-size: 18px; line-height: 1.45; margin: 0 0 22px; }
.hero .meta { font-size: 15px; }

.news { padding-left: 36px; border-left: 1px solid var(--line); }
.section-title {
	display: flex; align-items: center; gap: 22px;
	font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 22px;
}
.section-title::after { content: ""; flex: 1; height: 2px; background: var(--line-2); opacity: .7; }
.news-item {
	display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start;
	padding: 16px 0; border-bottom: 1px solid var(--line);
}
.news-item:first-of-type { padding-top: 0; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item__thumb { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 128 / 84; background: var(--soft); }
.news-item__thumb img, .news-item__thumb .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.news-item__title { font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 10px; }
.news-item__title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.news-item .meta { font-size: 14px; }

/* ---------- Franja de categorías ---------- */
.cat-strip {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	background: var(--soft); border-radius: 10px; padding: 18px 0; margin: 0 0 40px;
	box-shadow: 0 1px 2px rgba(10,22,40,.05);
}
.cat-strip__item { display: flex; gap: 16px; align-items: flex-start; padding: 2px 26px; border-left: 1px solid var(--line); }
.cat-strip__item:first-child { border-left: 0; }
.cat-strip__icon { width: 44px; height: 44px; color: var(--yellow); flex: none; margin-top: 2px; }
.cat-strip__name { display: block; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.01em; margin-bottom: 3px; }
.cat-strip__desc { display: block; font-size: 14.5px; line-height: 1.4; }
.cat-strip__item:hover .cat-strip__name { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* ---------- Calculadora destacada ---------- */
.tool-cta { display: flex; align-items: center; gap: 28px; background: var(--navy); color: #fff; border-radius: 10px; }
.tool-cta--home { padding: 30px 36px; margin: 0 0 44px; }
.tool-cta__icon { width: 56px; height: 56px; color: var(--yellow); flex: none; stroke-width: 1.6; }
.tool-cta__body { flex: 1; min-width: 0; }
.tool-cta__title { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.tool-cta__text { margin: 0; color: #c9d1dc; font-size: 16.5px; line-height: 1.5; max-width: 62ch; }
.tool-cta__btn { flex: none; font-size: 17px; padding: 13px 22px; }
.tool-cta__btn .icon { width: 20px; height: 20px; }
.tool-cta--side { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 22px 24px; margin: 0 0 36px; }
.tool-cta--side .tool-cta__icon { width: 40px; height: 40px; }
.tool-cta--side .tool-cta__title { font-size: 19px; line-height: 1.25; }
.tool-cta--side .tool-cta__text { font-size: 15px; }
.tool-cta--side .tool-cta__btn { width: 100%; justify-content: center; font-size: 16px; padding: 11px 16px; }

/* ---------- Cabecera de sección con enlace ---------- */
.section-head { display: flex; align-items: center; gap: 24px; margin: 0 0 26px; }
.section-head h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.section-head__line { flex: 1; height: 1px; background: var(--line-2); }
.section-head__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-2); white-space: nowrap; }
.section-head__link .icon { width: 20px; height: 20px; }
.section-head__link:hover { text-decoration: underline; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.cards--archive { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); row-gap: 40px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 2.6 / 1; background: var(--soft); }
.card__media > a { display: block; height: 100%; }
.card__media img, .card__media .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media .badge { position: absolute; left: 12px; bottom: 0; border-radius: 5px 5px 0 0; z-index: 1; }
.card__body { padding: 14px 12px 0 18px; }
.card__title { font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }

.thumb-placeholder { display: flex; align-items: center; justify-content: center; background: var(--navy); }
.thumb-placeholder__mark { height: 42%; min-height: 26px; width: auto; }

/* ---------- Listados ---------- */
.page-header { padding: 40px 0 28px; }
.page-header h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -.035em; margin: 0; }
.archive-desc { max-width: 680px; margin-top: 10px; font-size: 18px; }
.archive-desc p:last-child { margin: 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 52px 0 0; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 6px; font-weight: 700; color: var(--ink);
}
.page-numbers:hover { border-color: var(--ink); }
.page-numbers.current { background: var(--yellow); border-color: var(--yellow); }
.page-numbers.dots { border: 0; }
.empty-state { max-width: 560px; padding: 20px 0 40px; }
.empty-state .search-form { margin: 18px 0 24px; }

/* ---------- Artículo ---------- */
.single-layout {
	display: grid; grid-template-columns: minmax(0, 760px) 320px;
	justify-content: center; column-gap: 72px; padding: 40px 32px 56px;
}
.entry { min-width: 0; }
.entry-title { font-size: clamp(32px, 4vw, 46px); font-weight: 900; line-height: 1.08; letter-spacing: -.035em; margin: 16px 0 14px; }
.entry-lead { font-size: 20px; line-height: 1.5; color: var(--text); margin: 0 0 18px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.entry-author { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.entry-author a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Migas de pan */
.breadcrumbs { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); }
.breadcrumbs [aria-current="page"] { display: block; max-width: 38ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Índice del artículo */
.toc { margin: 0 0 2em; background: var(--soft); border-left: 4px solid var(--yellow); border-radius: 0 8px 8px 0; font-size: 16.5px; line-height: 1.4; }
.toc summary { padding: 14px 20px; font-weight: 800; color: var(--ink); cursor: pointer; }
.entry-content .toc ol { margin: 0; padding: 0 20px 16px 2.6em; }
.entry-content .toc li { margin: 0 0 .45em; }
.entry-content .toc a { font-weight: 500; text-decoration-color: transparent; }
.entry-content .toc a:hover { background: none; text-decoration-color: var(--yellow); }
.entry-thumb { margin: 28px 0 34px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-layout .entry-thumb { aspect-ratio: auto; }
.entry-thumb--portrait { float: right; width: 260px; max-width: 42%; aspect-ratio: 4 / 5 !important; margin: 4px 0 20px 32px; border-radius: 12px; }
.entry-thumb--portrait img { object-position: center 20%; }
.page-layout .entry-content::after { content: ""; display: table; clear: both; }

.entry-content { font-size: 18px; line-height: 1.7; color: #283243; overflow-wrap: break-word; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content .tpsf-subhead {
	font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; color: var(--ink);
	margin: 1.9em 0 .7em; padding-top: 16px; position: relative;
}
.entry-content h2::before, .entry-content .tpsf-subhead::before {
	content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--yellow);
}
.entry-content h3 { font-size: 21px; margin: 1.7em 0 .55em; }
.entry-content h4 { font-size: 18px; margin: 1.5em 0 .5em; }
.entry-content strong, .entry-content b { color: var(--ink); font-weight: 700; }
.entry-content a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { background: rgba(246,183,14,.18); }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.entry-content li { margin: 0 0 .5em; padding-left: .2em; }
.entry-content li::marker { color: var(--yellow-d); font-weight: 800; }
.entry-content blockquote {
	margin: 1.8em 0; padding: 18px 24px; background: var(--soft);
	border-left: 4px solid var(--yellow); border-radius: 0 8px 8px 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 8px; }
.entry-content figure, .entry-content .wp-block-image { margin: 2em 0; }
.entry-content figure img { width: 100%; height: auto; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.entry-content .wp-block-table { margin: 2em 0; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 1.5em; }
/* Tablas del editor clásico o pegadas: se desplazan en el móvil en lugar de desbordar la página */
.entry-content > table { display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--soft); color: var(--ink); font-weight: 700; }
.entry-content code { background: var(--soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content .wp-block-button__link { background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 6px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.entry-tags a { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.entry-tags a:hover { border-color: var(--ink); }
.disclaimer { margin: 34px 0 0; padding: 14px 18px; font-size: 14.5px; line-height: 1.5; background: var(--soft); border-radius: 8px; color: var(--text); }

/* Recuadro del autor */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author-box__body { min-width: 0; }
.author-box__name { margin: 0 0 4px; font-weight: 800; color: var(--ink); }
.author-box__bio { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; }
.author-box__link { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--navy-2); }
.author-box__link:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.author-box__link .icon { width: 17px; height: 17px; }
.page-links { margin-top: 24px; font-weight: 700; }

/* Barra lateral */
.sidebar { min-width: 0; }
/* Solo la calculadora acompaña la lectura: una barra entera fija se cortaría en pantallas bajas */
.sidebar .tool-cta--side { position: sticky; top: 80px; }
.admin-bar .sidebar .tool-cta--side { top: 112px; }
.sidebar .section-title { font-size: 24px; }
.sidebar .news-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.sidebar .news-item__title { font-size: 15.5px; margin-bottom: 6px; }
.sidebar .news-item .meta { font-size: 13px; }
.sidebar__news { margin-bottom: 36px; }
.widget { margin: 0 0 36px; font-size: 16px; }
.widget-title, .widget .wp-block-heading { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.widget a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.widget .wp-block-search__inside-wrapper { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.widget .wp-block-search__input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: 15px; }
.widget .wp-block-search__button { margin: 0; border: 0; border-radius: 0; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 700; padding: 0 16px; cursor: pointer; }

/* Relacionados */
.related { padding: 8px 0 20px; }

/* Páginas */
.page-layout { max-width: 820px; padding: 40px 32px 56px; }

/* 404 */
.error-404 { max-width: 620px; padding: 72px 0 40px; }
.error-404 h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 900; letter-spacing: -.035em; }
.error-404 .search-form { margin: 22px 0 26px; }

/* ---------- Comentarios ---------- */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 72ch; }
.comments-title, .comment-reply-title { font-size: 24px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.comment-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Formularios de contacto (Contact Form 7 y similares) ---------- */
.entry-content .wpcf7 { max-width: 620px; margin-top: 8px; }
.entry-content .wpcf7 p { margin: 0 0 18px; }
.entry-content .wpcf7 label { display: block; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.entry-content .wpcf7 input[type="text"],
.entry-content .wpcf7 input[type="email"],
.entry-content .wpcf7 input[type="tel"],
.entry-content .wpcf7 input[type="url"],
.entry-content .wpcf7 select,
.entry-content .wpcf7 textarea {
	display: block; width: 100%; margin-top: 6px;
	font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
	padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff;
}
.entry-content .wpcf7 textarea { min-height: 170px; resize: vertical; }
.entry-content .wpcf7 input:focus, .entry-content .wpcf7 textarea:focus, .entry-content .wpcf7 select:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
.entry-content .wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.entry-content .wpcf7 .wpcf7-acceptance input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.entry-content .wpcf7 .wpcf7-list-item { margin: 0; }
.entry-content .wpcf7 small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.entry-content .wpcf7 input[type="submit"] {
	font: inherit; font-weight: 700; font-size: 16px; color: var(--ink);
	background: var(--yellow); border: 0; border-radius: 6px; padding: 12px 24px; cursor: pointer;
}
.entry-content .wpcf7 input[type="submit"]:hover { background: var(--yellow-d); }
.entry-content .wpcf7 input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
.entry-content .wpcf7-not-valid-tip { font-size: 14px; color: #b42318; margin-top: 4px; }
.entry-content .wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border-radius: 6px; font-size: 15px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); margin-top: 64px; padding: 52px 0 26px; font-size: 15px; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-about { max-width: 420px; margin-top: 18px; line-height: 1.55; }
.footer-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 700; color: #fff; }
.footer-more .icon { width: 18px; height: 18px; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.footer-menu { display: flex; flex-direction: column; gap: 9px; }
.footer-menu .sub-menu { display: none; }
.site-footer .widget { font-size: 15px; }
.site-footer .widget-title { color: #fff; font-size: 16px; }
.site-footer .widget li { border-color: rgba(255,255,255,.12); }
.footer-cta p { margin: 0 0 14px; }
.footer-cta + .footer-cta { margin-top: 28px; }
.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
	margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px;
}
.cookie-settings { margin-left: 16px; text-decoration: underline; text-underline-offset: 3px; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Diseño visual (1.12) ---------- */
:root {
	--radius: 14px;
	--shadow: 0 1px 2px rgba(10,22,40,.06), 0 8px 24px rgba(10,22,40,.07);
	--shadow-hover: 0 2px 4px rgba(10,22,40,.08), 0 16px 36px rgba(10,22,40,.14);
	--on-navy: #c9d1dc;
}

/* Títulos de sección con marca amarilla */
.section-head { gap: 14px; }
.section-head h2, .section-title { position: relative; padding-left: 16px; }
.section-head h2::before, .section-title::before {
	content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px;
	border-radius: 3px; background: var(--yellow);
}
.section-head__line { display: none; }
.section-title::after { display: none; }
.section-head__link { margin-left: auto; }

/* Portada: gran bloque azul noche */
.home-top { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 36px; padding: 28px 0 32px; }
.hero-col { padding-right: 0; }
.hero { min-height: 440px; background: var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero__media {
	width: 62%; border-radius: 0; background: transparent;
	-webkit-mask-image: linear-gradient(90deg, transparent 22%, rgba(0,0,0,.35) 36%, #000 62%);
	mask-image: linear-gradient(90deg, transparent 22%, rgba(0,0,0,.35) 36%, #000 62%);
}
.hero__body { width: 50%; max-width: none; margin-left: 40px; padding: 36px 0; }
.hero__title { color: #fff; font-size: clamp(30px, 2.9vw, 44px); line-height: 1.08; }
.hero__excerpt { color: var(--on-navy); font-size: 17px; }
.hero .meta { color: #aeb8c6; }
.news { padding-left: 0; border-left: 0; }

/* Franja de categorías: tarjetas */
.cat-strip { gap: 14px; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.cat-strip__item, .cat-strip__item:first-child {
	gap: 14px; align-items: center; padding: 18px; background: #fff;
	border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-strip__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--yellow); }
.cat-strip__icon { width: 46px; height: 46px; padding: 10px; margin: 0; color: var(--navy); background: rgba(246,183,14,.2); border-radius: 12px; }
.cat-strip__desc { font-size: 14px; }

/* Calculadora: bloque amarillo */
.tool-cta--home { background: var(--yellow); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.tool-cta--home .tool-cta__icon { color: var(--navy); }
.tool-cta--home .tool-cta__title { color: var(--ink); font-size: 28px; }
.tool-cta--home .tool-cta__text { color: #1f2a3a; }
.tool-cta--home .tool-cta__btn { background: var(--navy); color: #fff; }
.tool-cta--home .tool-cta__btn:hover { background: var(--navy-2); color: #fff; }

/* Tarjetas */
.cards { gap: 24px; }
.card {
	position: relative; overflow: hidden; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media { aspect-ratio: 16 / 9; border-radius: 0; }
.card__media .badge { top: auto; left: 12px; bottom: 12px; height: auto; border-radius: 5px; z-index: 2; }
.card .meta .meta__sep { display: none; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.card .meta { margin-top: auto; font-size: 13.5px; }

/* Explora por temas */
.topics { margin-top: 52px; }
.topics__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.topic { padding: 22px 24px; background: var(--soft); border-radius: var(--radius); }
.topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
.topic__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.topic__icon { width: 30px; height: 30px; color: var(--yellow-d); }
.topic__title { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.topic__link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 15px; font-weight: 700; color: var(--navy-2); white-space: nowrap; }
.topic__link:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.topic .news-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-color: var(--line); }
.topic .news-item__title { font-size: 16px; margin-bottom: 6px; }
.topic .news-item:first-of-type { padding-top: 0; }

/* Cabecera azul de artículos y listados */
.entry-hero, .page-header { background: var(--navy); color: var(--on-navy); }
.entry-hero { padding: 34px 0 40px; }
.entry-hero__inner { max-width: 1216px; }
.entry-hero .entry-title { max-width: 860px; color: #fff; }
.entry-hero .entry-lead { max-width: 760px; color: var(--on-navy); }
.entry-hero .entry-meta { padding-bottom: 0; border-bottom: 0; }
.entry-hero .entry-author, .entry-hero .entry-author a { color: #fff; }
.entry-hero .meta { color: #aeb8c6; }
.entry-hero .meta__sep { background: rgba(255,255,255,.28); }
.page-header { padding: 34px 0 38px; margin-bottom: 36px; }
.page-header h1 { color: #fff; }
.entry-hero .breadcrumbs, .page-header .breadcrumbs { color: #aeb8c6; }
.entry-hero .breadcrumbs a:hover, .page-header .breadcrumbs a:hover { color: #fff; }
.entry-hero .breadcrumbs li + li::before, .page-header .breadcrumbs li + li::before { color: rgba(255,255,255,.4); }
.single-layout .entry-thumb { margin-top: 0; box-shadow: var(--shadow); }

/* Barra de progreso de lectura */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }

/* Compartir */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 34px 0 0; }
.share__label { margin-right: 6px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.share__btn {
	display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px;
	font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink);
	background: #fff; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.share__btn:hover { background: var(--yellow); border-color: var(--yellow); }
.share__btn[hidden] { display: none; }
.share__btn .icon { width: 17px; height: 17px; }

/* Lectura */
.toc { box-shadow: var(--shadow); }
.author-box { padding: 20px 22px; background: var(--soft); border-top: 0; border-radius: var(--radius); }

/* Pie */
.site-footer { border-top: 4px solid var(--yellow); }
.site-footer .widget .wp-block-heading { color: #fff; font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.cat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
	.primary-menu > li > a { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 1100px) {
	.brand__tagline { display: none; }
	.home-top { grid-template-columns: 1fr; }
	.hero-col { padding-right: 0; }
	.news { margin-top: 0; }
	.single-layout { grid-template-columns: minmax(0, 760px); row-gap: 48px; }
	.sidebar .tool-cta--side { position: static; }

	.menu-toggle { display: inline-flex; }
	.site-nav__inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
	.primary-menu { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding: 6px 0 10px; }
	/* El menú es fijo: sin esta altura máxima, lo que no cabe en pantalla sería inalcanzable */
	.site-nav.is-open .primary-menu {
		display: flex; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px);
		overflow-y: auto; overscroll-behavior: contain; flex-wrap: nowrap;
	}
	.primary-menu > li > a, .primary-menu > li:first-child > a { padding: 12px 4px; margin: 0; border-bottom: 1px solid var(--line); }
	.primary-menu > li.current-menu-item > a { border-bottom-color: var(--yellow); }
	.primary-menu .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
	.submenu-toggle {
		display: flex; align-items: center; justify-content: center;
		background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer;
	}
	.submenu-toggle::after {
		content: ""; width: 8px; height: 8px; margin-top: -4px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); transition: transform .15s;
	}
	.submenu-toggle[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
	.primary-menu .sub-menu {
		display: none; grid-column: 1 / -1;
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 4px 0 8px 14px; min-width: 0;
	}
	.primary-menu li.is-expanded > .sub-menu { display: block; }
	.primary-menu .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .site-nav { top: 46px; }
	.admin-bar .site-nav.is-open .primary-menu { max-height: calc(100vh - 118px); max-height: calc(100dvh - 118px); }
}
@media (max-width: 600px) {
	/* En móviles la barra de WordPress se desplaza con la página */
	.admin-bar .site-nav { top: 0; }
}
@media (max-width: 760px) {
	.ticker--tv .ticker__label { display: none; }
	.ticker__credit { padding-left: 8px; }
	body { font-size: 16px; }
	.wrap { padding: 0 18px; }
	.page-layout { padding: 28px 18px 40px; }
	.site-header__inner { flex-wrap: wrap; gap: 14px; padding: 14px 18px; min-height: 0; }
	.entry-hero .entry-meta > .meta__sep { display: none; }
	.brand__name { font-size: 26px; }
	.brand__shield { width: 40px; height: 40px; }
	.header-search { width: 100%; margin: 0; }
	.nav-actions .btn { padding: 8px 12px; font-size: 15px; }
	.nav-tool { padding: 7px 10px; font-size: 15px; }
	.tool-cta--home { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 22px; }
	.tool-cta__icon { width: 44px; height: 44px; }
	.tool-cta__title { font-size: 22px; }
	.tool-cta--home .tool-cta__btn { width: 100%; justify-content: center; }

	.home-top { padding-top: 20px; }
	.hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
	.hero__media {
		position: relative; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; display: block;
		margin-bottom: 0; border-radius: 0;
		-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
		mask-image: linear-gradient(180deg, #000 72%, transparent);
	}
	.hero__body { width: auto; max-width: none; margin-left: 0; padding: 4px 20px 24px; }
	.hero__excerpt { font-size: 17px; }
	.breadcrumbs [aria-current="page"] { max-width: 22ch; }
	.section-title, .section-head h2 { font-size: 24px; }
	.news-item { grid-template-columns: 104px minmax(0, 1fr); }

	.cat-strip { grid-template-columns: 1fr; gap: 10px; }
	.cat-strip__item, .cat-strip__item:first-child { padding: 14px 16px; }
	.topics__grid { grid-template-columns: minmax(0, 1fr); }
	.topic { padding: 18px; }
	.entry-hero { padding: 24px 0 28px; }
	.page-header { padding: 24px 0 28px; margin-bottom: 28px; }
	.tool-cta--home .tool-cta__title { font-size: 23px; }

	.section-head { flex-wrap: wrap; gap: 8px 16px; }
	.section-head__line { display: none; }
	.cards { grid-template-columns: 1fr; }

	.single-layout { padding: 28px 18px 40px; }
	.entry-content { font-size: 17px; }
	.entry-content h2, .entry-content .tpsf-subhead { font-size: 23px; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.entry-thumb--portrait { float: none; width: 200px; max-width: 60%; margin: 8px 0 24px; }
}
/* ---------- Menú de calculadoras (1.14) ---------- */
.nav-tools { position: relative; }
.nav-tools summary { cursor: pointer; list-style: none; }
.nav-tools summary::-webkit-details-marker { display: none; }
.nav-tools summary::after { content: ""; width: 7px; height: 7px; margin: -3px 2px 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.nav-tools[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.nav-tools__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 260px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-hover); }
.nav-tools__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); line-height: 1.3; text-decoration: none; }
.nav-tools__menu a:hover, .nav-tools__menu a:focus-visible { background: var(--soft); }
.nav-tools__menu strong, .nav-tools__menu span { display: block; }
.nav-tools__menu span { color: var(--muted); font-size: 14px; }
.tool-cta__alt { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink); font-size: 15.5px; font-weight: 700; text-decoration: underline; }
.tool-cta__alt .icon { width: 16px; height: 16px; }

/* ---------- Asistente de finanzas (1.13) ---------- */
.asist { position: fixed; right: 16px; bottom: 12px; z-index: 70; }
.asist__btn { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.asist__btn svg { display: block; width: 76px; height: 76px; }
.asist__hint { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: var(--navy); color: #fff; font: 600 14px/1.2 var(--font); }
.asist__float { animation: asist-float 3.2s ease-in-out infinite; }
.asist__eye { animation: asist-blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
.asist__arm { animation: asist-wave 7s ease-in-out infinite; transform-box: fill-box; transform-origin: 20% 90%; }
@keyframes asist-float { 50% { transform: translateY(-4px); } }
@keyframes asist-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes asist-wave { 0%, 78%, 100% { transform: rotate(0); } 83%, 93% { transform: rotate(-16deg); } 88% { transform: rotate(4deg); } }
@keyframes asist-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.asist__panel { position: absolute; right: 0; bottom: 88px; display: flex; flex-direction: column; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 116px); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 16px 48px rgba(10,22,40,.28); }
.asist__panel[hidden] { display: none; }
.asist__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; background: #0f2340; color: #fff; }
.asist__head div { flex: 1; line-height: 1.3; }
.asist__head strong, .asist__head span { display: block; }
.asist__head span { color: #c9d1dc; font-size: 12px; }
.asist__head span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--up); }
.asist__close { width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.asist__log { flex: 1; overflow-y: auto; padding: 14px; background: var(--soft); }
.asist__msg { width: fit-content; max-width: 88%; margin: 0 0 10px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: #fff; color: var(--ink); font-size: 15px; line-height: 1.45; white-space: pre-line; }
.asist__msg--user { margin-left: auto; border-radius: 14px 4px 14px 14px; background: var(--navy); color: #fff; }
.asist__msg--wait { display: flex; gap: 4px; padding: 12px; }
.asist__msg--wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: asist-dot 1.1s infinite; }
.asist__msg--wait i:nth-child(2) { animation-delay: .18s; }
.asist__msg--wait i:nth-child(3) { animation-delay: .36s; }
.asist__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.asist__chips button { padding: 7px 11px; border: 1px solid var(--yellow); border-radius: 999px; background: #fff; color: var(--ink); font: 14px/1.2 var(--font); cursor: pointer; }
.asist__chips button:hover { background: var(--yellow); }
.asist__sources { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.asist__sources a { display: block; margin-top: 5px; color: var(--ink); font-weight: 600; text-decoration: underline; }
.asist__form { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.asist__form input { flex: 1; min-width: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: 16px var(--font); }
.asist__form button { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); color: var(--navy); cursor: pointer; }
.asist__form button:disabled { opacity: .55; cursor: wait; }
.asist__note { margin: 0; padding: 0 12px 10px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.asist__note a { color: inherit; text-decoration: underline; }
@media (max-width: 760px) {
	.asist { right: 10px; bottom: 8px; }
	.asist__hint { display: none; }
	.asist__btn svg { width: 62px; height: 62px; }
	.asist__panel { bottom: 72px; height: 70vh; max-width: calc(100vw - 20px); }
}
/* ---------- Ajustes de diseño (1.15) ---------- */
.author-box--home { margin: 0 0 44px; }
.asist { transition: transform .25s ease; }
@media (max-width: 760px) {
	.ticker--tv { display: none; }
	.site-header__inner { gap: 10px; padding: 10px 18px; }
	.author-box--home { margin-bottom: 32px; }
	.asist.is-away { transform: translateX(42px); }
}
@media print { .asist { display: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
