/* Header v2 — diseño común del sitio (tokens del blog). Todo bajo .hv2. */

/* Fuera el header del tema y sus barras de celular. */
body.la-hv2 #tbay-header,
body.la-hv2 .topbar-device-mobile,
body.la-hv2 .footer-device-mobile,
body.la-hv2 #tbay-mobile-menu-navbar { display: none !important; }
body.la-hv2 { padding-top: 0 !important; }

.hv2 {
	--tinta: var(--la-ink, #1a2744); --tinta-media: var(--la-ink-mid, #2d3f6b);
	--azul: var(--la-blue-deep, #3558a8); --azul-claro: var(--la-blue, #476EC2);
	--suave: var(--la-blue-light, #eef2fb); --celeste: #DCF2FF; --gris: #46536f; --linea: #c3d0e6;
	--display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
	--body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'Space Mono', ui-monospace, Menlo, monospace;
	position: sticky; top: 0; z-index: 1000;
	font-family: var(--body); color: var(--tinta); -webkit-font-smoothing: antialiased;
}
body.admin-bar .hv2 { top: 32px; }
.hv2 *, .hv2 *::before, .hv2 *::after { box-sizing: border-box; }
.hv2 a { color: var(--tinta); text-decoration: none; font-family: inherit; }
.hv2 a:hover { color: var(--azul); }
.hv2 button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: normal; line-height: inherit; }
.hv2 ul { list-style: none; margin: 0; padding: 0; }
.hv2 .hv2-ico { flex: none; display: block; }
.hv2 :focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 2px; border-radius: 8px; }
.hv2 .hv2-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hv2 .hv2-saltar { position: absolute; left: 12px; top: -60px; z-index: 5; padding: 10px 16px; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 700; }
.hv2 .hv2-saltar:focus { top: 8px; color: #fff; }
.hv2 .hv2-w { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.hv2 .hv2-k { margin: 0 0 12px; font: 700 12px/1.2 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--azul); }
.hv2 .hv2-lk { font-weight: 700; color: var(--azul) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hv2 .hv2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--tinta); color: #fff !important; font: 700 15px/1 var(--body); border: 1.5px solid var(--tinta); }
.hv2 .hv2-btn--borde { background: #fff; color: var(--tinta) !important; }
.hv2 .hv2-solo-movil { display: none !important; }

/* ---------- Cabecera ---------- */
.hv2 .hv2-cab { background: #fff; border-bottom: 1px solid var(--linea); transition: box-shadow .2s; }
.hv2.is-compacto .hv2-cab { box-shadow: 0 8px 20px -14px rgba(26,39,68,.5); }
.hv2 .hv2-fila1 { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 32px; align-items: center; height: 84px; transition: height .2s, opacity .15s; }
.hv2 .hv2-logo img { display: block; height: 66px; width: auto; }

.hv2 .hv2-buscador { position: relative; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 10px 0 18px; border-radius: 999px; border: 1.5px solid var(--linea); background: #f5f8fd; margin: 0; max-width: 680px; transition: border-color .15s, box-shadow .15s; }
.hv2 .hv2-buscador:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(71,110,194,.15); background: #fff; }
.hv2 .hv2-buscador-ico { color: var(--azul); display: inline-flex; }
.hv2 .hv2-buscador input[type=search] { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0; font: 400 16px var(--body); color: var(--tinta); border-radius: 0; -webkit-appearance: none; appearance: none; }
.hv2 .hv2-buscador input::placeholder { color: #7a86a3; opacity: 1; }
.hv2 .hv2-buscador input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hv2 .hv2-kbd { font: 700 11px var(--mono); color: var(--gris); padding: 3px 8px; border: 1px solid var(--linea); border-radius: 6px; background: #fff; box-shadow: none; }
.hv2 .hv2-buscador:focus-within .hv2-kbd { display: none; }

.hv2 .hv2-acciones { position: relative; display: flex; align-items: center; gap: 4px; }
.hv2 .hv2-accion { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.hv2 .hv2-accion:hover, .hv2 .hv2-accion[aria-expanded=true] { background: var(--suave); color: var(--tinta); }
.hv2 .hv2-cuenta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 6px; padding: 0 18px; border-radius: 999px; background: var(--tinta); color: #fff !important; font-weight: 700; font-size: 15px; white-space: nowrap; max-width: 220px; }
.hv2 .hv2-cuenta span { overflow: hidden; text-overflow: ellipsis; }
.hv2 .hv2-cuenta:hover { background: var(--tinta-media); }
.hv2 .hv2-conbadge { position: relative; display: inline-flex; }
.hv2 .hv2-badge { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--azul); color: #fff; font: 700 11px/18px var(--body); text-align: center; }

/* ---------- Menú ---------- */
.hv2 .hv2-nav { border-top: 1px solid var(--suave); }
.hv2 .hv2-fila2 { display: flex; align-items: center; gap: 4px; height: 52px; }
.hv2 .hv2-menu { display: flex; align-items: center; gap: 2px; height: 100%; }
.hv2 .hv2-item { position: static; height: 100%; }
.hv2 .hv2-link { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; font-weight: 700; font-size: 15px; color: var(--tinta); white-space: nowrap; }
.hv2 .hv2-item.is-activo > .hv2-link { color: var(--azul); box-shadow: inset 0 -3px 0 var(--azul); }
.hv2 .hv2-link[aria-expanded=true] { background: var(--suave); border-radius: 10px 10px 0 0; }
.hv2 .hv2-link[aria-expanded=true] .hv2-ico { transform: rotate(180deg); }
.hv2 .hv2-conecta { margin-left: auto; font: 700 12px var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--azul) !important; }
.hv2 .hv2-logo-mini, .hv2 .hv2-mini { display: none; }

.hv2 .hv2-mega { position: absolute; left: 50%; transform: translateX(-50%); top: 100%; width: min(1176px, calc(100vw - 64px)); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 28px; background: #fff; border: 1px solid var(--linea); border-radius: 0 0 20px 20px; box-shadow: 0 24px 40px -24px rgba(26,39,68,.45); z-index: 3; }
.hv2 .hv2-mega[hidden] { display: none; }
.hv2 .hv2-mega li a { display: block; padding: 7px 0; font-weight: 500; font-size: 16px; }
.hv2 .hv2-mega .hv2-lk { display: inline-block; margin-top: 10px; }
.hv2 .hv2-destacado { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 26px 28px; border-radius: 16px; background: var(--celeste); max-width: 560px; }
.hv2 .hv2-destacado .hv2-k { margin: 0; color: var(--tinta-media); }
.hv2 .hv2-destacado strong { font: 800 28px/1.02 var(--display); letter-spacing: -.03em; color: var(--tinta); }
.hv2 .hv2-destacado span { color: var(--gris); }
.hv2 .hv2-destacado .hv2-btn { align-self: flex-start; margin-top: 10px; }
.hv2 .hv2-destacado:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Paneles: resultados y vistos ---------- */
.hv2 .hv2-panel { position: absolute; top: calc(100% + 10px); background: #fff; border: 1px solid var(--linea); border-radius: 20px; box-shadow: 0 24px 40px -24px rgba(26,39,68,.45); z-index: 4; }
.hv2 .hv2-panel[hidden] { display: none; }
.hv2 .hv2-res { left: 0; width: min(760px, calc(100vw - 32px)); padding: 20px 22px; }
.hv2 .hv2-vistos { right: 150px; width: 400px; padding: 20px 22px; }
.hv2 .hv2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hv2 .hv2-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: var(--suave); font: 500 13px/1.2 var(--body); color: var(--tinta); }
.hv2 .hv2-chip[aria-pressed=true] { background: var(--tinta); color: #fff; font-weight: 700; }
.hv2 .hv2-chip b { font-weight: 700; margin-left: 4px; opacity: .7; }
.hv2 .hv2-grupos { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 28px; }
.hv2 .hv2-grupos.is-uno { grid-template-columns: 1fr; }
.hv2 .hv2-grupo + .hv2-grupo { margin-top: 0; }
.hv2 .hv2-fila { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; }
.hv2 .hv2-fila:hover, .hv2 .hv2-fila.is-sel { background: var(--suave); color: var(--tinta); }
.hv2 .hv2-fila img, .hv2 .hv2-fila .hv2-ph { width: 38px; height: 50px; object-fit: cover; border-radius: 4px; background: var(--suave); display: block; }
.hv2 .hv2-fila .hv2-ph--red { height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--azul); }
.hv2 .hv2-fila strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hv2 .hv2-fila small { display: block; font-size: 13px; color: var(--gris); }
.hv2 .hv2-fila em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--azul); white-space: nowrap; }
.hv2 .hv2-todos { display: inline-block; margin-top: 12px; }
.hv2 .hv2-vacio { margin: 6px 0; color: var(--gris); font-size: 15px; }

/* ---------- Al bajar (escritorio): una sola línea que conserva el menú ---------- */
@media (min-width: 992px) {
	.hv2.is-compacto .hv2-fila1 { height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
	.hv2.is-compacto .hv2-nav { border-top: 0; }
	.hv2.is-compacto .hv2-fila2 { height: 60px; }
	.hv2.is-compacto .hv2-logo-mini { display: block; margin-right: 12px; }
	.hv2.is-compacto .hv2-logo-mini img { display: block; height: 36px; width: auto; }
	.hv2.is-compacto .hv2-conecta { display: none; }
	.hv2.is-compacto .hv2-mini { display: flex; gap: 8px; margin-left: auto; }
	.hv2.is-compacto .hv2-link { padding: 0 11px; }
}
.hv2 .hv2-iconbtn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; color: var(--tinta); }
.hv2 .hv2-iconbtn--borde { border: 1.5px solid var(--linea); }
.hv2 .hv2-iconbtn--tinta { background: var(--tinta); color: #fff !important; }

/* ---------- Cajón del menú (celular) ---------- */
.hv2 .hv2-cajon[hidden] { display: none; }
.hv2 .hv2-cajon { position: fixed; inset: 0; z-index: 1002; }
.hv2 .hv2-cajon-fondo { position: absolute; inset: 0; background: rgba(26,39,68,.45); }
.hv2 .hv2-cajon-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: #fff; overflow-y: auto; padding-bottom: 32px; box-shadow: 8px 0 30px rgba(26,39,68,.25); }
.hv2 .hv2-cajon-cab { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--suave); }
.hv2 .hv2-cajon-cab img { height: 34px; width: auto; display: block; }
.hv2 .hv2-cajon-cuenta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.hv2 .hv2-cajon-cuenta .hv2-btn:only-child { grid-column: 1 / -1; }
.hv2 .hv2-cajon-menu { padding: 0 16px; }
.hv2 .hv2-cajon-menu > li { border-top: 1px solid var(--linea); }
.hv2 .hv2-cajon-menu > li > a, .hv2 .hv2-cajon-menu summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font: 800 24px/1.1 var(--display); letter-spacing: -.03em; color: var(--tinta); cursor: pointer; list-style: none; }
.hv2 .hv2-cajon-menu summary::-webkit-details-marker { display: none; }
.hv2 .hv2-cajon-menu details[open] summary .hv2-ico { transform: rotate(180deg); }
.hv2 .hv2-cajon-menu details ul { padding: 0 0 14px; }
.hv2 .hv2-cajon-menu details li a { display: block; padding: 9px 0; font-weight: 500; color: var(--tinta-media); }
.hv2 .hv2-cajon-menu .is-activo > a, .hv2 .hv2-cajon-menu .is-activo summary { color: var(--azul); }
.hv2 .hv2-cajon-conecta { display: inline-block; margin: 18px 16px 0; }

/* ---------- Barra de abajo (celular) ---------- */
.hv2 .hv2-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--linea); box-shadow: 0 -8px 20px -12px rgba(26,39,68,.35); }
.hv2 .hv2-barra > a, .hv2 .hv2-barra > button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font: 700 12px/1.1 var(--body); color: var(--tinta); }
.hv2 .hv2-barra [aria-current=page] { color: var(--azul); }
/* En las fichas v2, su barra de acciones reemplaza a esta. */
body.la-fv2-pagina .hv2 .hv2-barra { display: none; }

@media (max-width: 991px) {
	.hv2 .hv2-solo-movil { display: inline-flex !important; }
	.hv2 .hv2-solo-escritorio { display: none !important; }
	.hv2 .hv2-w { padding: 0 12px; }
	.hv2 .hv2-fila1 { grid-template-columns: auto auto 1fr; grid-template-areas: "menu logo acc" "q q q"; gap: 0 6px; height: auto; padding-top: 6px; padding-bottom: 10px; }
	.hv2 .hv2-fila1 > [data-hv2=abrir-menu] { grid-area: menu; }
	.hv2 .hv2-logo { grid-area: logo; }
	.hv2 .hv2-logo img { height: 42px; }
	.hv2 .hv2-acciones { grid-area: acc; justify-self: end; }
	.hv2 .hv2-buscador { grid-area: q; height: 46px; margin-top: 6px; max-width: none; transition: max-height .2s, opacity .15s, margin .2s; }
	.hv2 .hv2-kbd { display: none; }
	.hv2 .hv2-accion { padding: 0 10px; }
	.hv2 .hv2-cuenta { background: none; color: var(--tinta) !important; padding: 0 10px; margin: 0; }
	.hv2 .hv2-nav { display: none; }
	.hv2.is-compacto .hv2-buscador { height: 0; margin: 0; border-width: 0; opacity: 0; overflow: hidden; pointer-events: none; }
	.hv2.is-compacto .hv2-fila1 { padding-bottom: 6px; }
	.hv2 .hv2-res { position: fixed; left: 8px; right: 8px; top: auto; width: auto; max-height: calc(100vh - 200px); overflow-y: auto; }
	.hv2 .hv2-grupos { grid-template-columns: 1fr; }
	.hv2 .hv2-vistos { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-height: 70vh; overflow-y: auto; }
	body.la-hv2 { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	body.la-hv2.la-fv2-pagina { padding-bottom: 0; }
}

@media (min-width: 992px) { .hv2 .hv2-barra { display: none; } }

/* El botón "subir" del tema, por encima de la barra de abajo. */
@media (max-width: 991px) { body.la-hv2 .tbay-to-top-mobile, body.la-hv2 .tbay-to-top { bottom: calc(84px + env(safe-area-inset-bottom)) !important; } }

/* Panel "Libros": tapas de lo más vendido (o novedades). */
.hv2 .hv2-tapas { min-width: 0; max-width: 640px; }
.hv2 .hv2-tapas-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hv2 .hv2-tapas-cab .hv2-lk { font-size: 14px; }
.hv2 .hv2-tapas-lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 4px 0 0; padding: 0; list-style: none; }
.hv2 .hv2-tapas-lista a { display: flex; flex-direction: column; gap: 4px; }
.hv2 .hv2-tapa { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--suave); margin-bottom: 6px; box-shadow: 0 12px 20px -14px rgba(26,39,68,.6); }
.hv2 .hv2-tapa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv2 .hv2-tapa b { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--tinta); color: #fff; font: 700 13px/26px var(--body); text-align: center; }
.hv2 .is-novedades .hv2-tapa b { display: none; }
.hv2 .hv2-tapas-lista strong { font: 700 14px/1.25 var(--body); color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv2 .hv2-tapas-lista small { font-size: 13px; color: var(--gris); }
.hv2 .hv2-tapas-lista a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hv2 .hv2-mega--libros { grid-template-columns: 220px minmax(0, 1fr); }

/* =====================================================================================
 * FOOTER v2 — todo bajo .hv2f
 * ===================================================================================== */
body.la-hv2 #tbay-footer { display: none !important; }
.hv2f {
	--tinta: var(--la-ink, #1a2744); --celeste: #DCF2FF; --claro: #c9d6ee; --tenue: #9fb3d9; --raya: rgba(255,255,255,.15);
	--display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
	--body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'Space Mono', ui-monospace, Menlo, monospace;
	background: var(--tinta); color: #fff; font-family: var(--body); -webkit-font-smoothing: antialiased;
}
.hv2f *, .hv2f *::before, .hv2f *::after { box-sizing: border-box; }
.hv2f a { color: #fff; text-decoration: none; font-family: inherit; }
.hv2f a:hover { color: var(--celeste); text-decoration: underline; text-underline-offset: 3px; }
.hv2f :focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; border-radius: 6px; }
.hv2f ul { list-style: none; margin: 0; padding: 0; }
.hv2f .hv2f-w { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.hv2f .hv2f-k { margin: 0 0 12px; font: 700 12px/1.2 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--celeste); }
.hv2f .hv2f-libs { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: end; padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--raya); }
.hv2f .hv2f-h { margin: 0; font: 800 46px/.97 var(--display); letter-spacing: -.03em; color: #fff; text-transform: none; }
.hv2f .hv2f-p { margin: 0 0 16px; color: var(--claro); font-size: 16px; line-height: 1.5; }
.hv2f .hv2f-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--tinta) !important; font: 700 15px/1 var(--body); }
.hv2f .hv2f-btn:hover { background: var(--celeste); text-decoration: none; }
.hv2f .hv2f-cols { display: grid; grid-template-columns: 200px repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 36px; }
.hv2f .hv2f-marca img { display: block; height: 96px; width: auto; }
.hv2f .hv2f-marca p { margin: 14px 0 0; font-size: 14px; color: var(--claro); }
.hv2f .hv2f-col summary { list-style: none; margin: 0 0 12px; font: 700 12px/1.2 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--celeste); cursor: default; pointer-events: none; }
.hv2f .hv2f-col summary::-webkit-details-marker { display: none; }
.hv2f .hv2f-col summary svg { display: none; }
.hv2f .hv2f-col li a { display: inline-block; padding: 5px 0; font-weight: 500; font-size: 15px; }
/* Newsletter (formulario de Contact Form 7) */
.hv2f .hv2f-news { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 32px; align-items: center; padding: 22px 26px; border-radius: 20px; background: rgba(255,255,255,.08); margin-bottom: 36px; }
.hv2f .hv2f-news-t { margin: 0 0 4px; font: 700 24px/1.1 var(--display); letter-spacing: -.02em; }
.hv2f .hv2f-news-p { margin: 0; font-size: 14px; color: var(--claro); }
.hv2f .hv2f-news-p a { color: var(--celeste); text-decoration: underline; }
.hv2f .hv2f-news-form form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.hv2f .hv2f-news-form form > p, .hv2f .hv2f-news-form form > div:not(.wpcf7-response-output) { margin: 0; display: contents; }
.hv2f .hv2f-news-form br { display: none; }
.hv2f .hv2f-news-form label { display: contents; color: transparent; font-size: 0; }
.hv2f .hv2f-news-form .wpcf7-form-control-wrap { flex: 1 1 180px; display: block; }
.hv2f .hv2f-news-form input[type=text], .hv2f .hv2f-news-form input[type=email] { width: 100%; height: 48px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--tinta); font: 400 15px var(--body); box-shadow: none; }
.hv2f .hv2f-news-form input::placeholder { color: #7a86a3; opacity: 1; }
.hv2f .hv2f-news-form input[type=submit], .hv2f .hv2f-news-form button[type=submit] { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--celeste); color: var(--tinta); font: 700 15px/1 var(--body); cursor: pointer; text-transform: none; letter-spacing: 0; }
.hv2f .hv2f-news-form input[type=submit]:hover { background: #fff; }
.hv2f .hv2f-news-form .wpcf7-spinner { margin: 0 4px; }
.hv2f .hv2f-news-form .wpcf7-not-valid-tip { color: #ffd2cc; font-size: 13px; margin-top: 4px; }
.hv2f .hv2f-news-form .wpcf7-response-output { flex-basis: 100%; margin: 8px 0 0 !important; padding: 8px 12px !important; border-radius: 10px; border-color: var(--celeste) !important; color: #fff; font-size: 14px; }
/* Pie */
.hv2f .hv2f-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--raya); font-size: 14px; }
.hv2f .hv2f-pie .hv2f-k { margin: 0; color: var(--tenue); font-weight: 400; }
.hv2f .hv2f-org img { display: block; height: 40px; width: auto; }
.hv2f .hv2f-sep { flex: 1; }
.hv2f .hv2f-copy { color: var(--tenue); }

@media (max-width: 991px) {
	.hv2f .hv2f-w { padding-left: 16px; padding-right: 16px; }
	.hv2f .hv2f-libs { grid-template-columns: 1fr; gap: 16px; padding-top: 36px; padding-bottom: 28px; }
	.hv2f .hv2f-h { font-size: 32px; }
	.hv2f .hv2f-btn { width: 100%; justify-content: center; }
	.hv2f .hv2f-cols { grid-template-columns: 1fr; gap: 0; padding-top: 16px; padding-bottom: 20px; }
	.hv2f .hv2f-marca { display: flex; align-items: center; gap: 14px; padding: 8px 0 20px; }
	.hv2f .hv2f-marca img { height: 64px; }
	.hv2f .hv2f-marca p { margin: 0; }
	.hv2f .hv2f-col { border-top: 1px solid var(--raya); }
	.hv2f .hv2f-col summary { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 16px 0; font: 700 22px/1.1 var(--display); letter-spacing: -.02em; text-transform: none; color: #fff; pointer-events: auto; cursor: pointer; }
	.hv2f .hv2f-col summary svg { display: block; transition: transform .2s; }
	.hv2f .hv2f-col[open] summary svg { transform: rotate(180deg); }
	.hv2f .hv2f-col ul { padding-bottom: 14px; }
	.hv2f .hv2f-news { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
	.hv2f .hv2f-news-form input[type=submit] { width: 100%; }
	.hv2f .hv2f-pie { gap: 10px 16px; }
	.hv2f .hv2f-sep { flex-basis: 100%; height: 0; }
}

/* El formulario del newsletter trae su propio maquetado (.pme-footer-form con .campo-*) y estilos del
 * tema con más peso: acá se lo pone en una fila, con los mismos campos y botón del diseño. */
.hv2f .hv2f-news-form form.wpcf7-form { display: block !important; margin: 0 !important; }
.hv2f .hv2f-news-form .pme-footer-form { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: flex-start; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.hv2f .hv2f-news-form .campo-nombre, .hv2f .hv2f-news-form .campo-email { flex: 1 1 170px !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.hv2f .hv2f-news-form .boton-submit { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; }
.hv2f .hv2f-news-form .pme-footer-form p { margin: 0 !important; padding: 0 !important; }
.hv2f .hv2f-news-form input.wpcf7-text, .hv2f .hv2f-news-form input.wpcf7-email { height: 48px !important; border: 0 !important; border-radius: 999px !important; padding: 0 18px !important; background: #fff !important; color: var(--tinta) !important; font: 400 15px var(--body) !important; box-shadow: none !important; width: 100% !important; }
.hv2f .hv2f-news-form input.wpcf7-submit { height: 48px !important; min-width: 0 !important; padding: 0 22px !important; border: 0 !important; border-radius: 999px !important; background: var(--celeste) !important; color: var(--tinta) !important; font: 700 15px/1 var(--body) !important; box-shadow: none !important; }
.hv2f .hv2f-news-form input.wpcf7-submit:hover { background: #fff !important; }
@media (max-width: 991px) {
	.hv2f .hv2f-news-form .campo-nombre, .hv2f .hv2f-news-form .campo-email, .hv2f .hv2f-news-form .boton-submit { flex: 1 1 100% !important; }
	.hv2f .hv2f-news-form input.wpcf7-submit { width: 100% !important; }
}
/* El sistema de inputs del tema hijo (style.css, «INPUTS — Sistema unificado») pisa con !important y más
 * especificidad, pero lee variables: se redefinen dentro del footer y el formulario toma el diseño. */
.hv2f { --la-input-radius: 999px; --la-input-height: 48px; --la-input-padding: 0 18px; --la-input-border: 0 solid transparent; --la-input-color: #1a2744; }
/* Lugar para el «Volver al inicio» del tema, que es fijo abajo a la derecha. */
@media (min-width: 992px) { .hv2f .hv2f-pie { padding-bottom: 72px; } }

/* Newsletter en el celular: campos y botón a lo ancho, sin espacios de más. */
.hv2f .hv2f-news-form .wpcf7-form-control-wrap { display: block; margin: 0 !important; }
@media (max-width: 991px) { .hv2f .hv2f-news-form .boton-submit p { width: 100%; } }

/* Paneles "Agenda" y "Ciclo de charlas" */
.hv2 .hv2-mega--agenda, .hv2 .hv2-mega--ciclo { grid-template-columns: 240px minmax(0, 1fr); }
.hv2 .hv2-mega-nota { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--gris); max-width: 220px; }
.hv2 .hv2-ev { max-width: 760px; min-width: 0; }
.hv2 .hv2-ev-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 4px; }
.hv2 .hv2-ev-lista a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; margin: -10px; border-radius: 14px; }
.hv2 .hv2-ev-lista a:hover { background: var(--suave); }
.hv2 .hv2-ev-lista img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 10px; display: block; box-shadow: 0 10px 18px -12px rgba(26,39,68,.6); }
.hv2 .hv2-ev-lista b { display: block; font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--azul); margin-bottom: 4px; }
.hv2 .hv2-ev-lista strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 700 15px/1.25 var(--body); color: var(--tinta); }
.hv2 .hv2-ev-lista small { display: block; margin-top: 4px; font-size: 13px; color: var(--gris); }
.hv2 .hv2-ciclo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; min-width: 0; max-width: 860px; }
.hv2 .hv2-ciclo-prox { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: 16px; background: var(--celeste); }
.hv2 .hv2-ciclo-prox--pronto { grid-template-columns: 1fr; }
.hv2 .hv2-ciclo-prox img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; }
.hv2 .hv2-ciclo-prox > span { display: flex; flex-direction: column; gap: 4px; }
.hv2 .hv2-ciclo-prox .hv2-k { margin: 0; color: var(--tinta-media); }
.hv2 .hv2-ciclo-prox strong { font: 800 22px/1.02 var(--display); letter-spacing: -.03em; color: var(--tinta); }
.hv2 .hv2-ciclo-prox small { font-size: 13px; color: var(--gris); }
.hv2 .hv2-ciclo-prox em { align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #fff; font: 700 13px/1.4 var(--body); font-style: normal; color: var(--tinta); }
.hv2 .hv2-ciclo-prox .hv2-btn { align-self: flex-start; margin-top: 8px; }
.hv2 .hv2-ciclo-vid ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.hv2 .hv2-ciclo-vid a { display: flex; flex-direction: column; gap: 4px; }
.hv2 .hv2-vid { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 4px; }
.hv2 .hv2-vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv2 .hv2-vid i { position: absolute; left: 50%; top: 50%; width: 42px; height: 30px; margin: -15px 0 0 -21px; border-radius: 9px; background: #f00; }
.hv2 .hv2-vid i::after { content: ""; position: absolute; left: 17px; top: 9px; border-left: 11px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hv2 .hv2-ciclo-vid strong { font: 700 14px/1.25 var(--body); color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv2 .hv2-ciclo-vid small { font-size: 13px; color: var(--gris); }
.hv2 .hv2-ciclo-vid a:hover strong, .hv2 .hv2-ev-lista a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
/* Las tarjetas de los paneles no heredan el "display: block" de los enlaces de lista del menú. */
.hv2 .hv2-mega .hv2-ev-lista li a { display: grid; padding: 10px; font-size: inherit; }
.hv2 .hv2-mega .hv2-ciclo-vid li a, .hv2 .hv2-mega .hv2-tapas-lista li a { display: flex; padding: 0; font-size: inherit; }

/* Panel Blog: categorías con cantidad + últimas 3 notas (mismos colores de chip que blog.css). */
.hv2 .hv2-mega--blog { grid-template-columns: 240px minmax(0, 1fr); }
.hv2 .hv2-n { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--suave); font: 700 12px/20px var(--mono); color: var(--azul); text-align: center; }
.hv2 .hv2-blog { max-width: 860px; min-width: 0; }
.hv2 .hv2-blog ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 4px; }
.hv2 .hv2-mega .hv2-blog li a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; font-size: inherit; }
.hv2 .hv2-blog-img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--suave); margin-bottom: 2px; }
.hv2 .hv2-blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hv2 .hv2-blog a:hover .hv2-blog-img img { transform: scale(1.03); }
.hv2 .hv2-blog strong { font: 700 15px/1.25 var(--body); color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hv2 .hv2-blog a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hv2 .hv2-blog small { font-size: 13px; color: var(--gris); }
.hv2 .hv2-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--suave); font: 700 12px/1.3 var(--body); color: var(--tinta); }
.hv2 .hv2-chip--entrevista { background: #FFE8D6; color: #7A3410; }
.hv2 .hv2-chip--opinion { background: #E6E3FF; color: #3B2E8F; }
.hv2 .hv2-chip--literatura-y-redes { background: #FFF3C4; color: #6B4E00; }
.hv2 .hv2-chip--tendencias { background: #D9F5E6; color: #145234; }
.hv2 .hv2-chip--universos-posibles { background: #DCF2FF; color: #1a2744; }
