/*
 Theme Name:   Blocksy Tallamadera
 Description:  Child theme para Tallamadera.es — Cursos de talla y torno. Paleta Pfeiltools (marrón cálido, arena, gris), light/dark mode.
 Author:       Tallamadera / SomTIC
 Template:     blocksy
 Text Domain:  blocksy-tallamadera
 Version:      1.2.0
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* Paleta (light) */
  --tm-bg:            #f5f5f5;
  --tm-bg-alt:        #e6cdb4;
  --tm-bg-card:       #ffffff;
  --tm-text:          #191919;
  --tm-text-sec:      #666666;
  --tm-accent:        #6e463b;
  --tm-accent-hover:  #5a3a30;
  --tm-border:        #dddddd;
  --tm-on-dark:       #ffffff;
  --tm-on-accent:     #ffffff;
  /* Texto sobre superficies claras (botón blanco del CTA): oscuro SIEMPRE,
     no se invierte en dark (el fondo sigue siendo blanco). */
  --tm-on-light:      #191919;
  --tm-selection:     rgba(0, 0, 0, 0.15);

  /* Spacing */
  --tm-gap:           30px;
  --tm-section-py:    80px;
  --tm-section-px:    20px;
  --tm-max-w:         1200px;

  /* Radii */
  --tm-radius:        8px;
  --tm-radius-card:   16px;

  /* Transición de tema */
  --tm-theme-trans:   background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* --- Tokens del child theme --- */
    --tm-bg:            #191919;
    --tm-bg-alt:        #2a2a2a;
    --tm-bg-card:       #252525;
    --tm-text:          #f5f5f5;
    --tm-text-sec:      #a0a0a0;
    --tm-accent:        #e6cdb4;
    --tm-accent-hover:  #f0dcc8;
    --tm-border:        #333333;
    --tm-selection:     rgba(255, 255, 255, 0.15);
    /* Con el acento en arena (claro), el texto sobre el botón pasa a oscuro */
    --tm-on-accent:     #191919;

    /* --- Alineación con Blocksy --- */
    /* Blocksy no tiene dark mode nativo: cabecera, menú, enlaces y botones se
       pintan con --theme-palette-color-*, así que las invertimos aquí para que
       TODO el chrome siga el tema oscuro. Los derivados (--theme-text-color,
       --theme-link-*, --theme-border-color, --theme-headings-color,
       --theme-button-background-*) apuntan a la paleta y se actualizan solos. */
    --theme-palette-color-1: #e6cdb4;
    --theme-palette-color-2: #f0dcc8;
    --theme-palette-color-3: #f5f5f5;
    --theme-palette-color-4: #ffffff;
    --theme-palette-color-5: #333333;
    --theme-palette-color-6: #1f1f1f;
    --theme-palette-color-7: #2a2a2a;
    --theme-palette-color-8: #252525;

    /* Estos SÍ son literales en Blocksy: con el acento claro deben ir oscuros */
    --theme-button-text-initial-color: #191919;
    --theme-button-text-hover-color:   #191919;
    --theme-form-field-background-initial-color: #2a2a2a;
    --theme-form-field-background-focus-color:   #2a2a2a;
    --theme-selection-text-color: #191919;
  }

  /* Logo sobre cabecera oscura: variante con «Madera» en arena (el marrón
     desaparecía). Se sirve desde el propio tema, no depende de la librería.
     `height` es necesario: al reemplazar el contenido con `content: url()`,
     Chromium no deduce el ancho del logo (quedaba a 0 en el sticky). */
  .site-logo-container img {
    content: url(logo-claro.svg);
    width: auto;
    height: var(--logo-max-height, 40px);
  }
}

::selection {
  background: var(--tm-selection);
}

/* Anclas: que la sección destino no quede oculta bajo el header sticky */
[id] {
  scroll-margin-top: calc(var(--theme-header-sticky-height, 80px) + 8px);
}

/* Páginas que abren con un hero a sangre (home, cursos, taller): el hero pega
   a la cabecera sólida, sin el hueco del espaciado de contenido de Blocksy. */
.ct-container-full:has(article > .entry-content > :is(.wp-block-cover, .wp-block-group).alignfull:first-child) {
  padding-top: 0;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  background-color: var(--tm-bg);
  color: var(--tm-text);
  transition: var(--tm-theme-trans);
}

/* ==========================================================================
   3. Tipografía
   — Las familias y tamaños se configuran en el Customizer de Blocksy
     (rootTypography, h1Typography…h6Typography), NO aquí.
     Ver docs/blocksy-customizer-vs-childtheme.md
   ========================================================================== */

/* ==========================================================================
   4. Botones
   ========================================================================== */

.wp-block-buttons .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-height: 44px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--tm-radius);
  cursor: pointer;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-buttons .wp-block-button__link:focus {
  outline: 2px solid var(--tm-accent);
  outline-offset: 2px;
}

/* Primario — accent (marrón cálido en light, arena en dark) */
.wp-block-button.tm-btn-primary .wp-block-button__link,
.tm-btn-primary .wp-block-button__link {
  background-color: var(--tm-accent);
  color: var(--tm-on-accent);
}

.wp-block-button.tm-btn-primary .wp-block-button__link:hover,
.tm-btn-primary .wp-block-button__link:hover {
  background-color: var(--tm-accent-hover);
}

/* Secundario — borde, texto accent */
.wp-block-button.tm-btn-secondary .wp-block-button__link,
.tm-btn-secondary .wp-block-button__link {
  background-color: transparent;
  color: var(--tm-accent);
  border-color: var(--tm-accent);
}

.wp-block-button.tm-btn-secondary .wp-block-button__link:hover,
.tm-btn-secondary .wp-block-button__link:hover {
  background-color: var(--tm-accent);
  color: var(--tm-on-accent);
}

/* Secundario sobre fondo oscuro (hero) */
.tm-hero .tm-btn-secondary .wp-block-button__link {
  color: var(--tm-on-dark);
  border-color: rgba(255, 255, 255, 0.6);
}

.tm-hero .tm-btn-secondary .wp-block-button__link:hover {
  background-color: var(--tm-on-dark);
  color: var(--tm-on-light);
  border-color: var(--tm-on-dark);
}

/* Sobre fondo oscuro — blanco. El texto del botón es oscuro SIEMPRE (el fondo
   es blanco en ambos modos); en dark, `--tm-text` se volvía claro y el texto
   desaparecía. */
.wp-block-button.tm-btn-on-dark .wp-block-button__link,
.tm-btn-on-dark .wp-block-button__link {
  background-color: var(--tm-on-dark);
  color: var(--tm-on-light);
}

.wp-block-button.tm-btn-on-dark .wp-block-button__link:hover,
.tm-btn-on-dark .wp-block-button__link:hover {
  background-color: var(--tm-accent);
  color: var(--tm-on-accent);
}

/* Enlace-botón standalone (shortcode de cursos) */
a.tm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 32px;
  background-color: var(--tm-accent);
  color: var(--tm-on-accent);
  border-radius: var(--tm-radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

a.tm-btn-primary:hover {
  background-color: var(--tm-accent-hover);
  color: var(--tm-on-accent);
}

/* Enlace discreto con flecha */
.tm-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--tm-text);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.tm-link-arrow:hover {
  color: var(--tm-accent);
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.tm-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

/* Overlay suave (la foto manda; el contraste lo da el panel .tm-panel) */
.tm-hero .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.18) 100%) !important;
  opacity: 1 !important;
}

/* Panel translúcido para el texto sobre fotografía */
.tm-panel {
  background: rgba(25, 25, 25, 0.78);
  border-radius: var(--tm-radius-card);
  padding: 40px;
  max-width: 720px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.tm-panel > *:first-child {
  margin-top: 0;
}

.tm-panel > *:last-child {
  margin-bottom: 0;
}

.tm-hero .wp-block-cover__inner-container {
  width: 100%;
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: 120px var(--tm-section-px);
  text-align: left;
}

/* El cover centra sus hijos (layout constrained); los alineamos a la izquierda */
.tm-hero .wp-block-cover__inner-container > *,
.tm-hero .tm-panel > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
}

.tm-hero-eyebrow {
  display: inline-block;
  color: var(--tm-on-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.tm-hero-title {
  color: var(--tm-on-dark);
  font-size: 52px;
  line-height: 1.1;
  max-width: 720px;
  margin: 0 0 20px;
}

.tm-hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  max-width: 560px;
  margin: 0 0 32px;
}

.tm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

/* ==========================================================================
   6. Benefits
   ========================================================================== */

.tm-benefits {
  background-color: var(--tm-bg-card);
  padding: 40px var(--tm-section-px);
  border-bottom: 1px solid var(--tm-border);
  transition: var(--tm-theme-trans);
}

.tm-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tm-gap);
  max-width: var(--tm-max-w);
  margin: 0 auto;
}

.tm-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tm-benefit__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--tm-bg-alt);
  color: var(--tm-accent);
}

.tm-benefit__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tm-benefit__title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--tm-text);
  margin-bottom: 2px;
}

.tm-benefit__text {
  display: block;
  font-size: 13px;
  color: var(--tm-text-sec);
  line-height: 1.5;
}

/* ==========================================================================
   7. Cursos
   ========================================================================== */

.tm-courses {
  padding: var(--tm-section-py) var(--tm-section-px);
  max-width: var(--tm-max-w);
  margin: 0 auto;
}

.tm-courses-header {
  text-align: left;
  margin-bottom: 48px;
}

.tm-courses-eyebrow {
  display: block;
  color: var(--tm-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tm-courses-title {
  font-size: 36px;
  margin: 0;
}

.tm-courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tm-gap);
  align-items: stretch;
}

/* Variante vertical (3 cursos) */
.tm-courses-grid--vertical {
  grid-template-columns: repeat(3, 1fr);
}

.tm-courses-grid--vertical .tm-course-card {
  flex-direction: column;
}

.tm-courses-grid--vertical .tm-course-img-link {
  position: relative;
  flex: 0 0 auto;
}

.tm-courses-grid--vertical .tm-course-img {
  height: 0;
  padding-top: 62.5%;
  min-height: 0;
  aspect-ratio: auto;
  width: 100%;
}

.tm-course-card {
  display: flex;
  flex-direction: row;
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-card);
  overflow: hidden;
  transition: var(--tm-theme-trans), transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tm-course-img-link {
  display: block;
  flex: 0 0 42%;
}

.tm-course-img {
  flex: none;
  width: 100%;
  min-height: 240px;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tm-course-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 28px;
}

.tm-course-title {
  font-size: 24px;
  margin: 0 0 10px;
}

.tm-course-title a {
  color: inherit;
  text-decoration: none;
}

.tm-course-title a:hover {
  color: var(--tm-accent);
}

.tm-course-desc {
  font-size: 15px;
  color: var(--tm-text-sec);
  margin: 0 0 16px;
}

.tm-course-meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--tm-text-sec);
}

.tm-course-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-course-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--tm-text);
  margin: 0 0 20px;
}

.tm-course-cta {
  margin-top: auto;
}

/* Badge "¡Completo!" */
.tm-badge-completo {
  display: inline-block;
  background: #b23a2e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.tm-course-card--completo .tm-course-img {
  filter: grayscale(0.5);
}

/* ==========================================================================
   8. CTA band
   ========================================================================== */

.tm-cta-band {
  position: relative;
  color: var(--tm-on-dark);
}

/* Overlay para la imagen de fondo (core/cover) */
.tm-cta-band .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.22) 60%, rgba(0, 0, 0, 0.35) 100%) !important;
  opacity: 1 !important;
}

.tm-cta-band .wp-block-cover__inner-container {
  width: 100%;
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: var(--tm-section-py) var(--tm-section-px);
}

/* Panel único: el texto y el botón van dentro del mismo marco translúcido */
.tm-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: rgba(25, 25, 25, 0.72);
  border-radius: var(--tm-radius-card);
  padding: 28px 32px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.tm-cta-band__inner > .wp-block-group {
  flex: 1 1 auto;
  min-width: 0;
}

.tm-cta-band-title {
  color: var(--tm-on-dark);
  font-size: 40px;
  margin: 0 0 8px;
}

.tm-cta-band-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin: 0;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.tm-footer {
  background-color: var(--tm-bg-card);
  border-top: 1px solid var(--tm-border);
  padding: 48px var(--tm-section-px);
  transition: var(--tm-theme-trans);
}

.tm-footer__inner {
  max-width: var(--tm-max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.tm-footer__tagline {
  font-size: 14px;
  color: var(--tm-text-sec);
  max-width: 340px;
}

.tm-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.tm-footer__links a {
  color: var(--tm-text-sec);
  text-decoration: none;
}

.tm-footer__links a:hover {
  color: var(--tm-accent);
}

.tm-footer__legal {
  max-width: var(--tm-max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--tm-border);
  font-size: 13px;
  color: var(--tm-text-sec);
}

/* ==========================================================================
   10. Header (solo limpieza; el resto va en el Customizer)
   ========================================================================== */

/* Ocultar elementos demo de Blocksy (no son ajustes de diseño) */
.ct-header-wishlist,
.ct-header-compare,
.ct-header-account {
  display: none !important;
}

.site-title,
.site-title-container {
  display: none !important;
}

/* Menú: Blocksy aplica `width:100%` + `display:flex` al enlace dentro de
   columnas `auto`, lo que provoca un colapso circular (los items se solapan),
   sobre todo en el ítem con hijos. Con `display:inline-flex` + `width:auto`
   el ancho es el del contenido y la flecha queda en línea, justo tras la
   palabra (no debajo). Las columnas siguen en el Customizer. */
#header nav[class*="menu"] .menu > li > .ct-menu-link {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  position: relative;
}

/* La flecha del desplegable: absoluta a la derecha del enlace, pegada al
   texto y centrada verticalmente. Fuera del flujo para que no descoloque el
   ancho del ítem (Blocksy mete el ancho de la flecha en el cálculo y rompe
   la columna `auto`). */
#header nav[class*="menu"] .ct-toggle-dropdown-desktop {
  position: absolute !important;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

/* El botón "ghost" de Blocksy (abre el desplegable) debe ser absoluto; si no,
   rompe el ancho del item padre con hijos. */
#header nav[class*="menu"] .ct-toggle-dropdown-desktop-ghost {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
}

/* Trigger (hamburguesa) móvil: garantizar visibilidad y tamaño táctil */
@media (max-width: 1023px) {
  #header .ct-header-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    color: var(--tm-text);
  }
  #header .ct-header-trigger .ct-icon {
    display: block;
    fill: currentColor;
  }
}

/* Logo: consume la variable del Customizer de Blocksy.
   Blocksy delega en `height: inherit`, que falla en este setup; aquí
   reaplicamos el valor del Customizer (--logo-max-height), sin hardcodear.
   El tamaño por dispositivo se configura en el Customizer
   (header_placements → logo → Logo Max Height). */
.site-logo-container img {
  max-height: var(--logo-max-height, 50px);
  width: auto;
}

/* Nota: logo, tamaño del logo, cabecera sticky, botón del header y
   visibilidad del título de página se configuran en el Customizer de
   Blocksy (header_placements). NO se sobreescriben con CSS.
   Ver docs/blocksy-customizer-vs-childtheme.md */

/* ==========================================================================
   11. Utilidades
   ========================================================================== */

.tm-hidden {
  display: none;
}

.tm-text-center {
  text-align: center;
}

/* ==========================================================================
   12. Responsive (mobile-first)
   ========================================================================== */

/* Tablet */
@media (max-width: 1023px) {
  :root {
    --tm-section-py: 64px;
  }

  .tm-hero-title { font-size: 40px; }
  .tm-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-courses-grid--vertical { grid-template-columns: repeat(2, 1fr); }
}

/* Móvil */
@media (max-width: 767px) {
  :root {
    --tm-section-py: 48px;
    --tm-gap: 20px;
  }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .tm-hero {
    min-height: 100vh;
  }

  .tm-hero .wp-block-cover__inner-container {
    padding-bottom: 48px;
  }

  .tm-hero-title { font-size: 34px; }
  .tm-hero-subtitle { font-size: 16px; }

  .tm-benefits-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Ventajas: icono a la izquierda y título sobre texto (consistente) */
  .tm-benefit {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }

  .tm-benefit__icon {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .tm-benefit__title,
  .tm-benefit__text {
    grid-column: 2;
  }

  .tm-benefit__title {
    margin-bottom: 0;
  }

  .tm-course-card { flex-direction: column; }
  .tm-course-img { flex: none; aspect-ratio: 16 / 10; }

  .tm-courses-grid { grid-template-columns: 1fr; }

  .tm-courses-title { font-size: 26px; }

  .tm-cta-band-title { font-size: 28px; }
  .tm-cta-band__inner { flex-direction: column; align-items: flex-start; }

  .wp-block-buttons .wp-block-button__link {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Pantallas pequeñas: el H1 del hero no necesita ser tan grande */
@media (max-width: 540px) {
  .tm-hero-title { font-size: 30px; }
}

/* ==========================================================================
   13. Ficha de curso (single)
   ========================================================================== */

.tm-course-hero {
  position: relative;
  background-color: #191919;
  color: var(--tm-on-dark);
  padding: var(--tm-section-py) var(--tm-section-px);
  overflow: hidden;
  transition: var(--tm-theme-trans);
}

.tm-course-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.tm-course-hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0.22) 100%);
}

.tm-course-hero__intro {
  background: rgba(25, 25, 25, 0.78);
  border-radius: var(--tm-radius-card);
  padding: 36px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.tm-course-hero__inner {
  position: relative;
  max-width: var(--tm-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.tm-course-hero__eyebrow {
  display: block;
  color: var(--tm-on-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 12px;
}

.tm-course-hero__title {
  color: var(--tm-on-dark);
  margin: 0 0 16px;
}

.tm-course-hero__desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  max-width: 560px;
  margin: 0;
}

.tm-course-hero__card {
  background: var(--tm-bg-card);
  color: var(--tm-text);
  border-radius: var(--tm-radius-card);
  padding: 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.tm-course-hero__meta {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tm-course-hero__meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--tm-border);
  padding-bottom: 10px;
}

.tm-course-hero__meta li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tm-course-hero__meta li span {
  color: var(--tm-text-sec);
}

.tm-course-hero__price {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 16px;
}

.tm-course-hero__price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--tm-text-sec);
}

.tm-course-hero__card .tm-btn-primary,
.tm-course-hero__card .tm-badge-completo {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Contenido del curso */
.tm-course-hero + h2,
.tm-course-hero + h3 {
  margin-top: var(--tm-section-py);
}

/* "Otros cursos" al final de cada curso */
.tm-other-courses {
  margin-top: var(--tm-section-py);
  padding-top: var(--tm-section-py);
  border-top: 1px solid var(--tm-border);
}

.tm-other-courses .tm-courses-eyebrow {
  margin-bottom: 8px;
}

.tm-other-courses .tm-courses-title {
  margin: 0 0 32px;
}

/* Ubicación (cursos y «El taller») */
.tm-ubicacion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: var(--tm-section-py);
  padding-top: var(--tm-section-py);
  border-top: 1px solid var(--tm-border);
}

.tm-ubicacion__intro {
  font-size: 16px;
  margin: 0 0 20px;
}

.tm-ubicacion__meta {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.tm-ubicacion__meta li {
  font-size: 15px;
}

.tm-ubicacion__meta li > strong:first-child {
  display: block;
  color: var(--tm-text-sec);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tm-ubicacion__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--tm-radius-card);
  display: block;
}

/* Enlace-botón secundario standalone */
a.tm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 32px;
  background-color: transparent;
  color: var(--tm-accent);
  border: 2px solid var(--tm-accent);
  border-radius: var(--tm-radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.tm-btn-secondary:hover {
  background-color: var(--tm-accent);
  color: var(--tm-on-dark);
}

@media (max-width: 1023px) {
  .tm-ubicacion {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Imágenes de apoyo dentro de las descripciones de curso */
.tm-course-img-inline {
  margin: 32px 0;
}

.tm-course-img-inline img {
  width: 100%;
  height: auto;
  border-radius: var(--tm-radius-card);
  display: block;
}

/* Sección a 2 columnas: texto a la izquierda, imagen a la derecha */
.tm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 0;
}

.tm-split + .tm-split,
.tm-split + p,
p + .tm-split {
  margin-top: var(--tm-gap);
}

.tm-split__title {
  margin: 0 0 12px;
}

.tm-split__text > *:last-child {
  margin-bottom: 0;
}

.tm-split__media {
  height: 0;
  padding-top: 72%;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--tm-radius-card);
}

@media (max-width: 1023px) {
  .tm-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Artículos destacados (home) */
.tm-articles {
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: var(--tm-section-py) var(--tm-section-px);
}

.tm-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tm-gap);
}

.tm-article-card {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-card);
  overflow: hidden;
  transition: var(--tm-theme-trans), transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tm-article-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tm-article-card__img {
  height: 0;
  padding-top: 56%;
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tm-article-card__body {
  padding: 22px 24px 26px;
}

.tm-article-card__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tm-accent);
  margin: 0 0 8px;
}

.tm-article-card__title {
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 1023px) {
  .tm-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .tm-articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .tm-course-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tm-course-hero__desc {
    max-width: none;
  }
}

/* Botón de WhatsApp — contacto directo en las páginas de curso */
a.tm-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  margin-top: 10px;
  background-color: transparent;
  color: var(--tm-accent);
  border: 1px solid var(--tm-accent);
  border-radius: var(--tm-radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.tm-btn-whatsapp:hover {
  background-color: var(--tm-accent);
  color: var(--tm-on-dark);
}

/* ==========================================================================
   17. Mautic form (inscription)
   ========================================================================== */

.mauticform_wrapper {
  max-width: 100% !important;
  margin: 2rem auto !important;
  padding: 2rem !important;
  background: var(--tm-bg-card) !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: var(--tm-radius-card) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mauticform-name {
  font-family: inherit !important;
  font-size: 1.4em !important;
  font-weight: 700 !important;
  color: var(--tm-text) !important;
  margin-bottom: 0.5rem !important;
}

.mauticform-description {
  color: var(--tm-text-sec) !important;
  margin-bottom: 1rem !important;
}

.mauticform-row {
  margin-bottom: 1.25rem !important;
}

.mauticform-label {
  font-family: inherit !important;
  font-size: 0.95em !important;
  font-weight: 600 !important;
  color: var(--tm-text) !important;
  margin-bottom: 0.4rem !important;
}

.mauticform-input,
.mauticform-selectbox,
.mauticform-textarea {
  width: 100% !important;
  padding: 0.7em 0.8em !important;
  font-family: inherit !important;
  font-size: 1em !important;
  color: var(--tm-text) !important;
  background: var(--tm-bg) !important;
  border: 1px solid var(--tm-border) !important;
  border-radius: var(--tm-radius) !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

.mauticform-input:focus,
.mauticform-selectbox:focus,
.mauticform-textarea:focus {
  border-color: var(--tm-accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(110, 70, 59, 0.15) !important;
}

/* Focus visible real (WCAG 2.4.7): no basta con box-shadow sutil. */
.mauticform-input:focus-visible,
.mauticform-selectbox:focus-visible,
.mauticform-textarea:focus-visible,
.mauticform-button:focus-visible {
  outline: 2px solid var(--tm-accent) !important;
  outline-offset: 2px;
}

/* Checkboxes */
.mauticform-checkboxgrp-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.mauticform-checkboxgrp-label {
  font-family: inherit !important;
  font-size: 0.95em !important;
  color: var(--tm-text) !important;
  cursor: pointer !important;
}

.mauticform-checkboxgrp-checkbox {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  accent-color: var(--tm-accent) !important;
  cursor: pointer !important;
}

/* Help message */
.mauticform-helpmessage {
  display: block !important;
  font-size: 0.85em !important;
  color: var(--tm-text-sec) !important;
  margin-top: 0.3rem !important;
}

/* Error message — NO forzar display: Mautic lo muestra/oculta por JS. Si se
   fuerza `block !important`, los errores aparecen en reposo y el formulario
   parece roto antes de que el usuario haga nada. */
.mauticform-errormsg {
  font-size: 0.85em !important;
  color: #d32f2f !important;
  margin-top: 0.3rem !important;
}

/* Submit button */
.mauticform-button.btn-ghost,
.mauticform-button {
  display: inline-block !important;
  padding: 0.75em 2em !important;
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  color: var(--tm-on-accent) !important;
  background: var(--tm-accent) !important;
  border: none !important;
  border-radius: var(--tm-radius) !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.mauticform-button.btn-ghost:hover,
.mauticform-button:hover {
  background: var(--tm-accent-hover) !important;
  transform: translateY(-1px) !important;
}

/* Success message — solo visible cuando tiene contenido (Mautic lo oculta nativamente si está vacío) */
.mauticform-message:not(:empty) {
  padding: 1rem !important;
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
  border-radius: var(--tm-radius) !important;
  font-weight: 600 !important;
}

/* El honeypot (captcha) no debe mostrar label visible ni ocupar espacio. */
.mauticform-honeypot,
.mauticform-honeypot * {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   Sección del formulario de inscripción (envuelve el shortcode de Mautic en
   los singles de curso). Le da identidad: eyebrow, título, microcopy, ancho.
   ========================================================================== */
.tm-form-section {
  max-width: 640px;
  margin: 72px auto 0 !important;
  padding-top: 40px;
  border-top: 1px solid var(--tm-border);
}

.tm-form-section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tm-accent);
  margin: 0 0 8px;
}

.tm-form-section__title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.tm-form-section__intro {
  color: var(--tm-text-sec);
  font-size: 16px;
  margin: 0 0 28px;
}

.tm-form-section .mauticform_wrapper {
  max-width: 100% !important;
}

/* Dentro de un bloque columns, el form no necesita margen superior ni borde */
.wp-block-columns .tm-form-section {
  margin-top: 0 !important;
  border-top: none;
  padding-top: 0;
}

/* Sección de contacto: texto a la izquierda, formulario a la derecha */
.tm-contact__cols {
  align-items: flex-start;
  gap: 56px;
}

@media (max-width: 781px) {
  .tm-contact__cols {
    gap: 40px;
  }
}

/* Hero de contacto: foto de fondo + overlay, contenido en flujo normal */
.tm-contact__hero {
  background: linear-gradient(rgba(25, 25, 25, 0.55), rgba(25, 25, 25, 0.55)),
    url("https://tallamadera.es/wp-content/uploads/2025/03/virutas15_v1.webp") center / cover no-repeat;
  padding: 120px var(--tm-section-px);
}

@media (max-width: 768px) {
  .tm-contact__hero {
    padding: 80px var(--tm-section-px);
  }
}

/* Contacto: el hero llega hasta el footer (sin banda blanca inferior) */
.page-id-14416 :is(.entry-content, .ct-container-full, main.site-main, article.page) {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.page-id-14416 .tm-contact__hero {
  margin-bottom: 0 !important;
}

/* Legales: ancho de lectura cómodo */
.page-id-14422 .entry-content,
.page-id-14423 .entry-content,
.page-id-14424 .entry-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Panel único: texto y formulario comparten el mismo fondo translúcido */
.tm-contact__hero .tm-panel {
  max-width: var(--tm-max-w);
}

.tm-contact__hero .tm-panel :is(h1, h2, h3, a) {
  color: var(--tm-on-dark);
}

.tm-contact__hero .tm-panel p {
  color: rgba(255, 255, 255, 0.88);
}

.tm-contact__hero .tm-panel a {
  text-decoration: underline;
}

/* Formulario integrado en el panel (sin tarjeta propia) */
.tm-contact__hero .mauticform_wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9);
}

.tm-contact__hero .mauticform-label,
.tm-contact__hero .mauticform-description,
.tm-contact__hero .mauticform-checkboxgrp-label,
.tm-contact__hero .mauticform-helpmessage,
.tm-contact__hero .mauticform-errormsg {
  color: rgba(255, 255, 255, 0.92) !important;
}

.tm-contact__hero .mauticform-input,
.tm-contact__hero .mauticform-textarea,
.tm-contact__hero .mauticform-selectbox {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: var(--tm-text) !important;
}

/* Ubicación con mapa dentro del panel */
.tm-contact__hero .tm-ubicacion {
  display: block;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tm-contact__hero .tm-ubicacion__intro,
.tm-contact__hero .tm-ubicacion__meta li {
  color: rgba(255, 255, 255, 0.85);
}

.tm-contact__hero .tm-ubicacion__map {
  margin-top: 20px;
}

.tm-contact__hero .tm-ubicacion__map iframe {
  height: 220px;
  border-radius: var(--tm-radius);
}

/* Layout 2 columnas: texto + formulario en la página de curso */
.tm-two-col-form {
  display: flex !important;
  gap: 40px !important;
  margin: 72px 0 !important;
  align-items: flex-start;
}

.tm-two-col-form .wp-block-column {
  flex: 1 1 0 !important;
  min-width: 0;
}

@media (max-width: 768px) {
  .tm-two-col-form {
    flex-direction: column !important;
  }
}

.tm-form-section__note {
  font-size: 13px;
  color: var(--tm-text-sec);
  margin: 20px 0 0;
}

.tm-form-section__note a {
  color: var(--tm-text);
  text-decoration: underline;
}

/* Hub de técnica (/cursos/<tecnica>/) */
.tm-hub {
  padding: var(--tm-section-py) var(--tm-section-px);
  max-width: var(--tm-max-w);
  margin: 0 auto;
}

.tm-hub__hero {
  margin-bottom: 48px;
}

.tm-hub__intro {
  color: var(--tm-text-sec);
  max-width: 65ch;
}

.tm-hub__pais {
  margin-bottom: 56px;
}

.tm-hub__pais-title {
  font-size: 26px;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tm-border);
}

.tm-hub__ciudad-title {
  font-size: 15px;
  color: var(--tm-text-sec);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.tm-hub__body .tm-courses-grid--vertical {
  margin-bottom: 36px;
}

/* Migas de pan (fichas de curso y escuela) */
.tm-breadcrumbs {
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: 20px var(--tm-section-px) 0;
  font-size: 13px;
}

.tm-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--tm-text-sec);
}

.tm-breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--tm-border);
}

.tm-breadcrumbs a {
  color: var(--tm-text-sec);
  text-decoration: none;
}

.tm-breadcrumbs a:hover {
  text-decoration: underline;
}

.tm-breadcrumbs [aria-current] {
  color: var(--tm-text);
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  .mauticform_wrapper {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  }

  .mauticform-input:focus,
  .mauticform-selectbox:focus,
  .mauticform-textarea:focus {
    box-shadow: 0 0 0 2px rgba(230, 205, 180, 0.2) !important;
  }

  .mauticform-message:not(:empty) {
    background: #1b5e20 !important;
    color: #a5d6a7 !important;
  }
}

/* ==========================================================================
   Blog hub (/articulos/)
   ========================================================================== */

.tm-blog-hero {
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: var(--tm-section-py) var(--tm-section-px) 0;
}

.tm-blog-hero__intro {
  max-width: 62ch;
  color: var(--tm-text-sec);
}

.tm-blog-main {
  max-width: var(--tm-max-w);
  margin: 0 auto;
  padding: 40px var(--tm-section-px) var(--tm-section-py);
}

.tm-blog-main .wp-block-columns {
  gap: var(--tm-gap);
  align-items: flex-start;
}

.tm-blog-panel {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-card);
  padding: 26px 24px;
}

.tm-blog-panel__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tm-accent);
  margin: 0 0 12px;
}

.tm-blog-panel__title:not(:first-child) {
  margin-top: 28px;
}

.tm-blog-cats,
.tm-blog-tags {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-blog-cats__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--tm-border);
}

.tm-blog-cats__item--child {
  padding-left: 16px;
  font-size: 14px;
}

.tm-blog-cats__item a {
  color: var(--tm-text);
  text-decoration: none;
}

.tm-blog-cats__item a:hover {
  color: var(--tm-accent);
}

.tm-blog-cats__count {
  color: var(--tm-text-sec);
  font-size: 13px;
}

.tm-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-blog-tags__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--tm-border);
  color: var(--tm-text-sec);
  text-decoration: none;
  font-size: 13px;
}

.tm-blog-tags__tag:hover {
  border-color: var(--tm-accent);
  color: var(--tm-accent);
}

.tm-articles-grid--blog {
  grid-template-columns: repeat(2, 1fr);
}

.tm-articles-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  justify-content: center;
}

.tm-articles-pagination a,
.tm-articles-pagination span.current {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--tm-border);
  text-decoration: none;
  color: var(--tm-text);
}

.tm-articles-pagination span.current {
  background: var(--tm-accent);
  color: var(--tm-on-accent);
  border-color: var(--tm-accent);
}

.tm-article-card__date {
  font-size: 12px;
  color: var(--tm-text-sec);
  margin: 6px 0 0;
}

.tm-article-card__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tm-text-sec);
  margin: 8px 0 0;
}

.tm-articles-more {
  text-align: center;
  margin: 36px 0 0;
}

.tm-articles-more a {
  color: var(--tm-accent);
  font-weight: 600;
  text-decoration: none;
}

.tm-articles-more a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Single de artículo: lectura limpia
   ========================================================================== */

.single-post .hero-section .page-title,
.single-post .hero-section .page-title a {
  color: var(--tm-text) !important;
}

.single-post .hero-section .entry-meta,
.single-post .hero-section .entry-meta a,
.single-post .hero-section .breadcrumbs,
.single-post .hero-section .breadcrumbs a {
  color: var(--tm-text-sec) !important;
}

.single-post .hero-section .breadcrumbs a:hover {
  color: var(--tm-accent);
}

.single-post .entry-content {
  max-width: 760px;
  margin-inline: auto;
}

.tm-article-body {
  max-width: 760px;
  margin-inline: auto;
}

.tm-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tm-radius);
}

.tm-quote-author {
  text-align: right;
  font-style: italic;
  color: var(--tm-text-sec);
}

/* Hilo de foro: cabecera de autor por mensaje */
.tm-foro-meta {
  margin: 28px 0 6px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--tm-text-sec);
}

.tm-foro-meta strong {
  color: var(--tm-accent);
}

.tm-foro .wp-block-quote {
  border-left: 0;
  padding-left: 0;
}

/* ==========================================================================
   Contenido heredado (Joomla) dentro del artículo — normalización
   ========================================================================== */

/* Imágenes: nunca a tamaño original, y nada de floats en móvil */
.single-post .entry-content img {
  max-width: 100%;
  height: auto;
}

.single-post .entry-content img.alignleft {
  float: left;
  max-width: 46%;
  margin: 0.25rem 1.5rem 1rem 0;
}

.single-post .entry-content img.alignright {
  float: right;
  max-width: 46%;
  margin: 0.25rem 0 1rem 1.5rem;
}

.single-post .entry-content img.aligncenter {
  display: block;
  margin: 0 auto 1.25rem;
}

.single-post .entry-content p {
  overflow-wrap: break-word;
}

/* Foco visible en enlaces de contenido (WCAG 2.4.7) */
.single-post .entry-content a:focus-visible,
.tm-blog-panel a:focus-visible,
.tm-articles-grid a:focus-visible {
  outline: 2px solid var(--tm-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Migas de pan: el ítem actual debe leerse */
.single-post .hero-section .breadcrumbs .last-item,
.single-post .hero-section .ct-breadcrumbs .last-item {
  color: var(--tm-text) !important;
}

@media (max-width: 767px) {
  .single-post .entry-content img,
  .single-post .entry-content img.alignleft,
  .single-post .entry-content img.alignright,
  .single-post .entry-content img.aligncenter {
    float: none !important;
    display: block;
    width: 100%;
    margin: 0 auto 1.25rem !important;
  }

  .single-post .entry-content iframe,
  .single-post .entry-content table {
    max-width: 100%;
  }
}

/* Objetivo táctil ≥44px para el CTA de cabecera en táctil (norma del sitio) */
@media (max-width: 1023px) {
  .ct-header-cta .ct-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
  }
}

.tm-article-portrait {
  max-width: 420px;
  margin: 0 auto 36px;
}

.tm-article-portrait img {
  border-radius: var(--tm-radius-card);
}

.tm-article-portrait figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--tm-text-sec);
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .tm-articles-grid--blog {
    grid-template-columns: 1fr;
  }
}
