/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* Fuentes locales — archivos en la raíz de Uncode Child. */
@font-face {
  font-family: 'Gilroy';
  src: url('./Gilroy-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('./Gilroy-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('./Gilroy-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('./Gilroy-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('./Gilroy-Heavy.ttf') format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('./Satoshi-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('./Satoshi-VariableItalic.woff2') format('woff2');
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}

/* .leitmotiv — Blog V7. */
body .lm-blog-marquee, body .lm-blog-hero {
  --lm-blog-h1: clamp(112px, 7.8125vw, 150px);
  --lm-blog-marquee: clamp(135px, 9.375vw, 180px);
  --lm-blog-lead: clamp(27px, 1.875vw, 36px);
}
@media (max-width: 1439px) {
  body .lm-blog-marquee, body .lm-blog-hero {
    --lm-blog-h1: clamp(72px, calc(26.286px + 5.9524vw), 112px);
    --lm-blog-marquee: clamp(90px, calc(38.571px + 6.6964vw), 135px);
    --lm-blog-lead: clamp(22px, calc(16.286px + .74405vw), 27px);
  }
}
@media (max-width: 767px) {
  body .lm-blog-marquee, body .lm-blog-hero {
    --lm-blog-h1: clamp(48px, calc(23.238px + 6.3492vw), 72px);
    --lm-blog-marquee: clamp(60px, calc(29.048px + 7.9365vw), 90px);
    --lm-blog-lead: clamp(20px, calc(17.937px + .5291vw), 22px);
  }
}
/* Mantener el motor de marquesina nativo, cambiar únicamente su escala. */
body .lm-blog-marquee .heading-text,
body .lm-blog-marquee .heading-text > *,
body .lm-blog-marquee .heading-text .h1,
body .lm-blog-marquee .heading-text .h2 {
  font-size: var(--lm-blog-marquee) !important;
  line-height: 1.05 !important;
}
body .lm-blog-hero {
  position: relative;
  z-index: 2;
  margin-top: calc((var(--lm-blog-marquee) + var(--lm-blog-h1)) * -0.525) !important;
}
body .lm-blog-hero h1 {
  position: relative;
  top: auto !important;
  font-size: var(--lm-blog-h1) !important;
  line-height: 1.05 !important;
}
body .lm-blog-hero p {
  font-size: var(--lm-blog-lead) !important;
  line-height: 1.45 !important;
  max-width: 1050px;
}
/* Conservar los ajustes no relacionados con la cabecera de V4. */
.lm-blog-cta .btn { color: #ee6f79 !important; max-width: 100%; }
@media (max-width: 767px) {
  .lm-blog-featured [id^="index-lm-blog-"] { max-width: 240px; margin-left: auto; margin-right: auto; }
  .lm-blog-cta .btn { width: auto !important; padding-left: 18px; padding-right: 18px; white-space: normal; }
}

/* V6: ajustes editoriales, sin alterar la cabecera. */
.lm-blog-featured .t-entry-date, .lm-blog-featured .t-entry-date a,
.lm-blog-featured time { color: #b7cbff !important; font-size: 14px !important; line-height: 1.5; }
.lm-blog-categories sup { color: #b7cbff !important; }
.lm-blog-categories .t-entry-title { line-height: 1.4 !important; }
.lm-blog-tips .t-entry-title, .lm-blog-tips .t-entry-title a { font-size: 18px !important; line-height: 1.5; }
.lm-blog-tips .t-entry-date, .lm-blog-tips time { color: #b7cbff !important; font-size: 16px !important; }
.lm-blog-cta .btn { font-size: 16px !important; line-height: 1.4 !important; }
@media (max-width: 767px) {
  .lm-blog-tips .t-entry-title, .lm-blog-tips .t-entry-title a { font-size: 16px !important; }
  .lm-blog-cta .btn { width: auto !important; min-width: 0; }
}

/* V7: retícula responsive de destacados. Mantener escritorio intacto. */
@media (max-width: 959px) {
  .lm-blog-featured .row-inner:has(> .lm-blog-card),
  .lm-blog-featured .row-inner:has(> :has(#index-lm-blog-1)):has(> :has(#index-lm-blog-0)):has(> :has(#index-lm-blog-2)) {
    display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px;
  }
  .lm-blog-featured .row-inner > .lm-blog-card,
  .lm-blog-featured .row-inner > :is(:has(#index-lm-blog-0),:has(#index-lm-blog-1),:has(#index-lm-blog-2)) {
    display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0; padding: 0 !important;
  }
  .lm-blog-featured .row-inner > .lm-blog-card-main,
  .lm-blog-featured .row-inner > :has(#index-lm-blog-1) { grid-column: 1 / -1; grid-row: 1; }
  .lm-blog-featured #index-lm-blog-1 { max-width: 400px; margin-inline: auto; }
  .lm-blog-featured #index-lm-blog-0, .lm-blog-featured #index-lm-blog-2 { max-width: 280px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .lm-blog-featured .row-inner:has(> .lm-blog-card),
  .lm-blog-featured .row-inner:has(> :has(#index-lm-blog-1)):has(> :has(#index-lm-blog-0)):has(> :has(#index-lm-blog-2)) { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .lm-blog-featured #index-lm-blog-0, .lm-blog-featured #index-lm-blog-1, .lm-blog-featured #index-lm-blog-2 { max-width: 240px; margin-inline: auto; }
}
.lm-blog-categories .t-entry-title { line-height: 1.5 !important; }
.lm-blog-tips [class*="t-entry-"] { font-size: 18px; line-height: 1.5; }
.lm-blog-tips .t-entry-date { white-space: nowrap; }
.lm-blog-cta .btn { min-height: 48px; padding-block: 14px !important; }
@media (max-width: 767px) {
  .lm-blog-tips [class*="t-entry-"] { font-size: 16px; }
  .lm-blog-cta .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .lm-blog-marquee *, .lm-blog-marquee *::before, .lm-blog-marquee *::after { animation-play-state: paused !important; transition: none !important; }
}


/* V9 — Cabecera corporativa: retícula común con el blog.
   Medición DevTools: 1920 px de contenedor, 108 px de margen editorial. */
@media (min-width: 960px) {
  body .menu-wrapper .menu-container .row-menu.limit-width {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1920px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }
  body .menu-wrapper .menu-container .row-menu.limit-width .row-menu-inner {
    box-sizing: border-box;
    width: 100%;
    padding-inline: clamp(36px, calc(7.5vw - 36px), 108px) !important;
  }
}
/* Mantener la navegación móvil nativa y los skins globales. */

/* Footer corporativo — Content Block con clase lm-footer. */
.lm-footer { color: #fff; }
.lm-footer .heading-text, .lm-footer .heading-text > * { font-family: 'Gilroy', Arial, sans-serif; }
.lm-footer p { font-family: 'Satoshi', Arial, sans-serif; font-size: 16px; line-height: 1.55; }
.lm-footer a { text-underline-offset: .18em; }
.lm-footer a:hover { text-decoration: underline; }
.lm-footer a:focus-visible { outline: 2px solid #FF929B; outline-offset: 4px; }
.lm-footer .lm-footer-legal { color: #B7CBFF; font-size: 14px; line-height: 1.6; }
@media (max-width: 767px) {
  .lm-footer p { font-size: 16px; }
  .lm-footer .heading-text > h2 { font-size: clamp(28px, 7vw, 40px) !important; }
}


/* Footer V7 — marco exclusivo del footer. Body Frame global desactivado. */
body .lm-footer-v4 { color: #fff; background-color: #03329e !important; --lm-footer-frame: 40px; --lm-footer-inset: clamp(36px, calc(7.5vw - 36px), 108px); }
/* Desactivar la limitación y el espaciado de los wrappers de esta fila únicamente. */
body .lm-footer-v4 .row,
body .lm-footer-v4 .row-inner {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}
body .lm-footer-v4 .row-inner > .wpb_column,
body .lm-footer-v4 .row-inner > .wpb_column > .uncol,
body .lm-footer-v4 .row-inner > .wpb_column > .uncol > .uncoltable > .uncell,
body .lm-footer-v4 .row-inner > .wpb_column .uncont,
body .lm-footer-v4 .wpb_text_column,
body .lm-footer-v4 .wpb_text_column > .wpb_wrapper {
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  max-width: none !important;
}
body .lm-footer-v4 .row-inner > .wpb_column { width: 100% !important; }
body .lm-footer-v4 { width: 100% !important; max-width: none !important; padding-inline: 0 !important; }
body .lm-footer-v4 .lm-footer-frame { box-sizing: border-box; margin: 0 var(--lm-footer-frame) var(--lm-footer-frame) !important; background: #000b67; display: flow-root; }
.lm-footer-v4 .lm-footer-panel {
  box-sizing: border-box;
  width: calc(100% - 2 * max(16px, calc(var(--lm-footer-inset) - var(--lm-footer-frame))));
  max-width: calc(1920px - 2 * var(--lm-footer-inset));
  margin-inline: auto;
  padding: clamp(40px, 5vw, 96px) 0 clamp(28px, 3vw, 56px);
  background: #000b67;
  color: #fff;
  font-family: 'Satoshi', Arial, sans-serif;
}
.lm-footer-v4 .lm-footer-top,
.lm-footer-v4 .lm-footer-bottom,
.lm-footer-v4 .lm-footer-meta { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; }
.lm-footer-v4 .lm-footer-panel .lm-footer-headline {
  margin: 0; max-width: 900px; color: #fff;
  font-family: 'Satoshi', Arial, sans-serif !important;
  font-size: clamp(32px, 2.5vw, 48px) !important;
  font-weight: 300 !important; line-height: 1.2 !important;
  letter-spacing: -.02em;
}
.lm-footer-v4 .lm-footer-headline strong { color: #ee6f79; font-weight: 700; }
.lm-footer-v4 .lm-footer-contact { margin-top: 40px; max-width: 820px; }
.lm-footer-v4 .lm-footer-panel p { margin: 0; color: #e2ebff; font-size: 20px; line-height: 1.55; font-weight: 400; }
.lm-footer-v4 .lm-footer-contact p + p { margin-top: 20px; }
.lm-footer-v4 .lm-footer-panel a { color: #ff929b; text-underline-offset: .18em; }
.lm-footer-v4 .lm-footer-panel a:hover { text-decoration: underline; }
.lm-footer-v4 .lm-footer-panel a:focus-visible { outline: 2px solid #ff929b; outline-offset: 4px; }
.lm-footer-v4 .lm-footer-services { justify-self: end; min-width: 0; }
.lm-footer-v4 .lm-footer-panel .lm-footer-services p { font-size: 18px; line-height: 1.65; }
.lm-footer-v4 .lm-footer-services-title { margin-bottom: 8px !important; font-weight: 500 !important; }
.lm-footer-v4 .lm-footer-bottom { margin-top: clamp(48px, 7vw, 128px); align-items: center; }
.lm-footer-v4 .lm-footer-panel .lm-footer-talk { margin: 0; font-family: 'Gilroy', Arial, sans-serif; font-size: clamp(42px, 4vw, 76px); font-weight: 700; line-height: 1.1; }
.lm-footer-v4 .lm-footer-talk a { color: #ee6f79; }
.lm-footer-v4 .lm-footer-panel .lm-footer-social { color: #ff929b; text-align: right; font-size: 18px; }
.lm-footer-v4 .lm-footer-meta { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(183,203,255,.35); align-items: baseline; }
.lm-footer-v4 .lm-footer-panel .lm-footer-meta p { color: #b7cbff; font-size: 16px; line-height: 1.6; }
.lm-footer-v4 .lm-footer-meta .lm-footer-copyright { text-align: right; }
@media (max-width: 959px) {
  body .lm-footer-v4 { --lm-footer-frame: 24px; --lm-footer-inset: 48px; }
  .lm-footer-v4 .lm-footer-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .lm-footer-v4 .lm-footer-headline br { display: none; }
  .lm-footer-v4 .lm-footer-panel p { font-size: 16px; }
}
@media (max-width: 767px) {
  body .lm-footer-v4 { --lm-footer-frame: 16px; --lm-footer-inset: 40px; }
  .lm-footer-v4 .lm-footer-top, .lm-footer-v4 .lm-footer-bottom, .lm-footer-v4 .lm-footer-meta { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lm-footer-v4 .lm-footer-services { justify-self: start; }
  .lm-footer-v4 .lm-footer-panel .lm-footer-social, .lm-footer-v4 .lm-footer-meta .lm-footer-copyright { text-align: left; }
  .lm-footer-v4 .lm-footer-contact { margin-top: 28px; }
  .lm-footer-v4 .lm-footer-meta { margin-top: 32px; }
}

/* El espacio inferior del marco queda dentro del fondo azul de la fila. */
body .lm-footer-v4 .wpb_text_column > .wpb_wrapper { display: flow-root; }

/* .leitmotiv — plantilla individual V2. Solo entradas. */
body.single-post .lm-post-marquee .heading-text,
body.single-post .lm-post-marquee .heading-text > * { font-size: clamp(60px, 9.375vw, 180px) !important; line-height: 1.05 !important; }
body.single-post .lm-post-header { position: relative; z-index: 2; margin-top: clamp(-120px, -6vw, -45px) !important; background: transparent !important; }
body.single-post .lm-post-header > .row { padding-top: 0 !important; padding-bottom: clamp(16px, 1.5vw, 28px) !important; }
body.single-post .lm-post-header .lm-post-image { max-width: 360px; margin-inline: auto; }
body.single-post .lm-post-header .lm-post-header-text h1,
body.single-post .lm-post-header .lm-post-header-text h1 > * { font-family: Gilroy, Arial, sans-serif !important; font-weight: 700 !important; font-size: clamp(36px, 3.4vw, 66px) !important; line-height: 1.12 !important; color: #fff !important; }
body.single-post .lm-post-header .lm-post-header-text .heading-text { max-width: 1100px; }
body.single-post .lm-post-header .lm-post-excerpt,
body.single-post .lm-post-header .lm-post-excerpt p { font-family: Satoshi, Arial, sans-serif !important; font-size: clamp(20px, 1.25vw, 24px) !important; line-height: 1.5 !important; color: #e2ebff !important; max-width: 1000px; }
body.single-post .lm-post-header .uncode-info-box { color: #b7cbff; font-size: 16px; }
body.single-post .lm-post-body .lm-post-reading .uncont { max-width: 1000px; }
body.single-post .lm-post-body .lm-post-reading,
body.single-post .lm-post-body .lm-post-reading p,
body.single-post .lm-post-body .lm-post-reading li { font-family: Satoshi, Arial, sans-serif !important; color: #fff; font-size: 18px !important; line-height: 1.65 !important; }
body.single-post .lm-post-body .lm-post-reading h2,
body.single-post .lm-post-body .lm-post-reading h3 { font-family: Gilroy, Arial, sans-serif !important; color: #ff929b !important; line-height: 1.25 !important; font-weight: 700 !important; margin-top: 1.5em; }
body.single-post .lm-post-body .lm-post-reading h2 { font-size: clamp(24px,1.67vw,32px) !important; }
body.single-post .lm-post-body .lm-post-reading h3 { font-size: clamp(20px,1.25vw,24px) !important; }
body.single-post .lm-post-body .lm-post-reading a { color: #ff929b; text-decoration: underline; }
/* Reticula: selectores comprobados en DevTools; neutraliza spans de Uncode. */
body.single-post #index-lm-post-related .cssgrid-container { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; grid-auto-rows: auto !important; gap: 18px !important; max-width: 1400px; margin-inline: auto !important; align-items: stretch; }
body.single-post #index-lm-post-related .cssgrid-container > .tmb { grid-column: auto !important; grid-row: auto !important; width: auto !important; max-width: none !important; min-width: 0; margin: 0 !important; padding: 0 !important; position: relative !important; inset: auto !important; transform: none !important; }
body.single-post #index-lm-post-related .tmb > .t-inside { box-sizing: border-box; height: 100%; background: #d6e37a !important; border-radius: 50% 50% 6px 6px / min(22vw, 230px) min(22vw, 230px) 6px 6px; padding: clamp(18px,2vw,36px) !important; overflow: hidden; border: 0 !important; box-shadow: none !important; }
body.single-post #index-lm-post-related .t-entry-visual-overlay-in { opacity: 0 !important; }
body.single-post #index-lm-post-related .t-entry-visual-cont { border-radius: 50%; overflow: hidden; }
body.single-post #index-lm-post-related .t-entry-text { background: transparent !important; padding: 24px 0 0 !important; }
body.single-post #index-lm-post-related .t-entry-title,
body.single-post #index-lm-post-related .t-entry-title a { font-family: Gilroy, Arial, sans-serif !important; font-size: clamp(18px,1.25vw,24px) !important; font-weight: 700 !important; line-height: 1.25 !important; color: #03329e !important; }
body.single-post #index-lm-post-related .t-entry-date,
body.single-post #index-lm-post-related .t-entry-date a { color: #293d61 !important; font-size: 14px !important; }
body.single-post #index-lm-post-related a:focus-visible { outline: 2px solid #03329e; outline-offset: -3px; }
@media(max-width:959px) {
 body.single-post .lm-post-header .lm-post-image { max-width: 200px; }
 body.single-post .lm-post-body .lm-post-reading p, body.single-post .lm-post-body .lm-post-reading li { font-size: 17px !important; }
 body.single-post #index-lm-post-related .cssgrid-container { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
 body.single-post #index-lm-post-related .tmb > .t-inside { border-radius: 50% 50% 6px 6px / min(28vw, 210px) min(28vw, 210px) 6px 6px; }
}
@media(max-width:767px) {
 body.single-post .lm-post-header { margin-top: 0 !important; }
 body.single-post .lm-post-header .lm-post-image { max-width: 160px; }
 body.single-post .lm-post-header .lm-post-header-text h1, body.single-post .lm-post-header .lm-post-header-text h1 > * { font-size: 32px !important; }
 body.single-post .lm-post-aside { display: none !important; }
 body.single-post .lm-post-body .lm-post-reading p, body.single-post .lm-post-body .lm-post-reading li { font-size: 16px !important; }
 body.single-post #index-lm-post-related .cssgrid-container { grid-template-columns: minmax(0,1fr) !important; max-width: 340px; }
 body.single-post #index-lm-post-related .tmb > .t-inside { border-radius: 50% 50% 6px 6px / 170px 170px 6px 6px; }
}
@media(prefers-reduced-motion:reduce) { .lm-post-marquee *, .lm-post-marquee *::before, .lm-post-marquee *::after { animation-play-state: paused !important; transition: none !important; } }

/* .leitmotiv — Post V3: ajustes exclusivos de la plantilla individual. */
body.single-post #page-header,
body.single-post #page-header .header-uncode-block { background-color: #03329e !important; }
/* Mantener transparente la fila solapada para que se vea la marquesina. */
body.single-post #page-header .lm-post-header,
body.single-post #page-header .lm-post-header > .row { background-color: transparent !important; }
/* La columna de lectura arranca en la misma posición que el título. */
body.single-post .lm-post-body .lm-post-reading .uncont { margin-left: 0 !important; margin-right: auto !important; width: 100%; max-width: 1000px; }
body.single-post .lm-post-body .lm-post-reading .lm-post-copy,
body.single-post .lm-post-body .lm-post-reading .lm-post-copy > .wpb_wrapper { margin-left: 0 !important; margin-right: auto !important; max-width: 100%; }
/* Centrar dos o tres tarjetas conservando el ancho de una tarjeta de la retícula. */
body.single-post #index-lm-post-related .cssgrid-container { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: stretch; }
body.single-post #index-lm-post-related .cssgrid-container > .tmb { flex: 0 0 calc((100% - 36px) / 3); }
/* Recortar también el enlace y la imagen: Uncode puede sobreescribir el radio del contenedor. */
body.single-post #index-lm-post-related .t-entry-visual,
body.single-post #index-lm-post-related .t-entry-visual-tc,
body.single-post #index-lm-post-related .t-entry-visual-cont { border-radius: 50% !important; overflow: hidden !important; }
body.single-post #index-lm-post-related .t-entry-visual-cont { aspect-ratio: 1 / 1; clip-path: circle(50% at 50% 50%); }
body.single-post #index-lm-post-related .t-entry-visual-cont > a,
body.single-post #index-lm-post-related .t-entry-visual-cont img { border-radius: 50% !important; }
body.single-post #index-lm-post-related .t-entry-visual-cont img { object-fit: cover; }
@media (max-width: 959px) {
 body.single-post #index-lm-post-related .cssgrid-container > .tmb { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 767px) {
 body.single-post #index-lm-post-related .cssgrid-container > .tmb { flex-basis: 100%; }
}

/* .leitmotiv — Post V4: cabecera fluida y separador. */
body.single-post #page-header .lm-post-header > .row,
body.single-post #page-header .lm-post-header .row-inner,
body.single-post #page-header .lm-post-header-text,
body.single-post #page-header .lm-post-excerpt {
  min-height: 0 !important;
  height: auto !important;
}
body.single-post #page-header .lm-post-excerpt:empty,
body.single-post #page-header .lm-post-excerpt:has(> .wpb_wrapper:empty),
body.single-post #page-header .lm-post-excerpt:has(> .wpb_wrapper > p:only-child:empty) {
  display: none !important;
}
body.single-post #page-header .lm-post-header-text .divider-wrapper {
  margin-top: clamp(20px, 2vw, 40px) !important;
}
body.single-post #page-header .lm-post-header-text .divider-wrapper hr,
body.single-post #page-header .lm-post-header-text hr {
  border: 0 !important;
  height: 1px !important;
  background-color: rgba(183, 203, 255, .45) !important;
  opacity: 1 !important;
}

/* .leitmotiv — Post V5: la imagen lateral no impone la altura de la cabecera. */
@media (min-width: 960px) {
  body.single-post #page-header .lm-post-header > .row > .row-inner {
    position: relative;
    display: block !important;
  }
  body.single-post #page-header .lm-post-header .row-inner > .lm-post-image-col {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 25% !important;
    height: auto !important;
  }
  body.single-post #page-header .lm-post-header .row-inner > .lm-post-header-text {
    display: block !important;
    float: none !important;
    width: 75% !important;
    margin-left: 25% !important;
  }
  body.single-post #page-header .lm-post-header > .row {
    padding-bottom: 0 !important;
  }
  body.single-post .lm-post-body > .row {
    padding-top: clamp(24px, 2vw, 40px) !important;
  }
  body.single-post .lm-post-body .lm-post-reading .lm-post-copy > .wpb_wrapper > :first-child {
    margin-top: 0 !important;
  }
}

/* .leitmotiv — Post V6: permitir el desbordamiento vertical de la imagen destacada. */
@media (min-width: 960px) {
  body.single-post #page-header,
  body.single-post #page-header .header-uncode-block,
  body.single-post #page-header .lm-post-header,
  body.single-post #page-header .lm-post-header > .row,
  body.single-post #page-header .lm-post-header > .row > .row-inner,
  body.single-post #page-header .lm-post-header .lm-post-image-col {
    overflow: visible !important;
  }
  body.single-post #page-header {
    position: relative;
    z-index: 3;
  }
  /* La marquesina sigue recortada en los extremos de la pantalla. */
  body.single-post #page-header .lm-post-marquee {
    overflow: hidden !important;
  }
}


/* .leitmotiv — Post V7: ajustes responsive, sin modificar escritorio. */
@media (max-width: 1024px) {
  /* Relacionados: reducir el relleno y aprovechar el ancho disponible. */
  body.single-post #index-lm-post-related .cssgrid-container {
    gap: 16px !important;
    max-width: 680px;
  }
  body.single-post #index-lm-post-related .cssgrid-container > .tmb {
    flex-basis: calc((100% - 16px) / 2);
  }
  body.single-post #index-lm-post-related .tmb > .t-inside {
    padding: clamp(12px, 1.8vw, 18px) !important;
    border-radius: 50% 50% 6px 6px / min(23vw, 170px) min(23vw, 170px) 6px 6px;
  }
  body.single-post #index-lm-post-related .t-entry-text {
    padding: 16px 0 0 !important;
  }
  body.single-post #index-lm-post-related .t-entry-text-tc {
    padding: 0 !important;
  }
}
@media (max-width: 768px) {
  /* Ocultar la columna decorativa completa, incluido Empty Space. */
  body.single-post .lm-post-body .lm-post-aside {
    display: none !important;
  }
  body.single-post .lm-post-body .row-inner > .lm-post-reading {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }
  body.single-post #page-header .lm-post-header > .row {
    padding-bottom: 0 !important;
  }
  body.single-post #page-header .lm-post-header-text .divider-wrapper {
    margin-top: 18px !important;
  }
  body.single-post .lm-post-body > .row {
    padding-top: 24px !important;
  }
  body.single-post .lm-post-body .lm-post-reading .lm-post-copy {
    margin-top: 0 !important;
  }
  body.single-post .lm-post-body .lm-post-reading .lm-post-copy > .wpb_wrapper > :first-child {
    margin-top: 0 !important;
  }
  /* Footer corporativo: una columna tambien a 768 px. */
  .lm-footer-v4 .lm-footer-top,
  .lm-footer-v4 .lm-footer-bottom,
  .lm-footer-v4 .lm-footer-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .lm-footer-v4 .lm-footer-services { justify-self: start; }
  .lm-footer-v4 .lm-footer-panel .lm-footer-social,
  .lm-footer-v4 .lm-footer-meta .lm-footer-copyright { text-align: left; }
  .lm-footer-v4 .lm-footer-contact { margin-top: 28px; }
  .lm-footer-v4 .lm-footer-meta { margin-top: 32px; }
}
@media (max-width: 767px) {
  body.single-post #index-lm-post-related .cssgrid-container {
    max-width: 340px;
    gap: 16px !important;
  }
  body.single-post #index-lm-post-related .cssgrid-container > .tmb {
    flex-basis: 100%;
  }
  body.single-post #index-lm-post-related .tmb > .t-inside {
    border-radius: 50% 50% 6px 6px / 170px 170px 6px 6px;
  }
  /* Categorias: conservar una zona de pulsacion de al menos 24 px. */
  body.single-post #index-lm-post-categories .t-entry-title {
    margin-block: 0 !important;
    line-height: 1.35 !important;
  }
  body.single-post #index-lm-post-categories .t-entry-title a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
  }
  body.single-post #index-lm-post-categories .tmb {
    margin-block: 0 !important;
    padding-block: 2px !important;
  }
}

/* .leitmotiv — Post V8: protagonismo de la imagen destacada en tablet vertical y movil. */
@media (max-width: 768px) {
  body.single-post #page-header .lm-post-header .lm-post-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }
  body.single-post #page-header .lm-post-header .lm-post-image img {
    width: 100% !important;
    height: auto;
  }
  body.single-post #page-header .lm-post-header .row-inner > .lm-post-image-col,
  body.single-post #page-header .lm-post-header .row-inner > .lm-post-header-text {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
  body.single-post #index-lm-post-related .t-entry-text {
    padding-bottom: 12px !important;
  }
}
@media (max-width: 767px) {
  /* Permitir saltos de linea entre categorias, sin reducir el area de pulsacion. */
  body.single-post #index-lm-post-categories .tmb {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
    margin-inline: 0 10px !important;
    padding-block: 0 !important;
  }
  body.single-post #index-lm-post-categories .tmb:has(.t-entry-title) {
    vertical-align: top;
  }
}
