/*
Theme Name: Adigitalgo
Theme URI: https://adigitalgo.com
Author: Andrea Fidalgo
Author URI: https://adigitalgo.com
Description: Tema FSE personalizado para el blog de marketing digital Adigitalgo.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adigitalgo3
*/

/* ═══════════════════════════════════════════
   HTML/BODY — contención horizontal global
   overflow-x en ambos niveles: html previene scroll en Chrome/Firefox,
   body lo previene en iOS Safari
═══════════════════════════════════════════ */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ═══════════════════════════════════════════
   BODY — offset por el header fijo + margen de respiración
═══════════════════════════════════════════ */
body {
  padding-top: calc(var(--wp--custom--header-h, 64px) + 15px) !important;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  body {
    padding-top: calc(var(--wp--custom--header-h, 64px) + 10px) !important;
  }
}

/* Cuando la barra de admin de WP está visible, sumamos su altura al offset del body */
.admin-bar body {
  padding-top: calc(var(--wp--custom--header-h, 64px) + 32px + 15px) !important;
}

@media screen and (max-width: 782px) {
  .admin-bar body {
    padding-top: calc(var(--wp--custom--header-h, 64px) + 46px + 10px) !important;
  }
}

/* ═══════════════════════════════════════════
   HEADER FIJO — glass effect
═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--wp--custom--header-h, 64px);
  background: rgba(20, 18, 16, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

/* Anula el max-width/padding del block group dentro del header */
.site-header > .wp-block-group__inner-container,
.site-header > .is-layout-constrained {
  height: 100%;
}

.site-header.scrolled {
  border-color: var(--wp--preset--color--subtle);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  background: rgba(20, 18, 16, 0.95);
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* Empuja el header por debajo de la barra de admin de WP */
.admin-bar .site-header {
  top: 32px;
}

/* Con admin-bar el translateY(-100%) no basta para salir del viewport:
   hay que compensar también el offset `top` de la barra de admin */
.admin-bar .site-header.hidden {
  transform: translateY(calc(-100% - 32px));
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .site-header.hidden {
    transform: translateY(calc(-100% - 46px));
  }
}

/* ── Inner flex container ── */
.header-inner {
  max-width: var(--wp--custom--w-wide, 860px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ═══════════════════════════════════════════
   LOGO — wp:site-title o wp:html
═══════════════════════════════════════════ */
.site-logo {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.85; }

.site-logo .logo-a {
  font-weight: 400;
  font-style: italic;
  color: var(--wp--preset--color--amber);
  margin-right: 0.04em;
  font-size: 2em;
  line-height: 0.85;
}
.site-logo .logo-rest {
  font-weight: 400;
  color: var(--wp--preset--color--ink);
}

/* ── wp:site-title fallback ── */
.wp-block-site-title {
  flex-shrink: 0;
  margin: 0 !important;
}
.wp-block-site-title a {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  transition: opacity 0.2s;
}
.wp-block-site-title a:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════
   NAVEGACIÓN DESKTOP
═══════════════════════════════════════════ */
.nav-desktop.wp-block-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-desktop .wp-block-navigation__container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: center;
}

.nav-desktop .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--wp--preset--color--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--ink);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Dropdown submenu ── */
/* Puente invisible que cubre el gap entre el trigger y el desplegable,
   evitando que el hover se pierda al mover el ratón hacia los items */
.nav-desktop .has-child {
  position: relative;
}
.nav-desktop .has-child::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(0.75rem + 6px);
}

.nav-desktop .has-child .wp-block-navigation__submenu-container {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 180px;
  background: rgba(30, 26, 22, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
}

.nav-desktop .has-child:hover > .wp-block-navigation__submenu-container,
.nav-desktop .has-child:focus-within > .wp-block-navigation__submenu-container {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-size: 0.8rem;
  color: var(--wp--preset--color--muted);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  background: none;
}

.nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--amber);
  background: rgba(196, 154, 60, 0.06);
}

/* Ocultar toggle button WP (usamos hover CSS) */
.nav-desktop .wp-block-navigation-submenu__toggle {
  display: none;
}

/* Indicador dropdown ▾ */
.nav-desktop .has-child > .wp-block-navigation-item__content::after {
  content: '▾';
  font-size: 0.6rem;
  color: var(--wp--preset--color--muted);
  margin-left: 0.3rem;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-desktop .has-child:hover > .wp-block-navigation-item__content::after {
  transform: rotate(180deg);
}

/* ── Item activo (página actual) — línea ámbar ── */
.nav-desktop .current-menu-item .wp-block-navigation-item__content {
  color: var(--wp--preset--color--ink);
}
.nav-desktop .current-menu-item:not(.has-child) .wp-block-navigation-item__content {
  position: relative;
}
.nav-desktop .current-menu-item:not(.has-child) .wp-block-navigation-item__content::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1.5px;
  background: var(--wp--preset--color--amber);
  border-radius: 2px;
}
/* Submenu: alinear a la izquierda con el texto */
.nav-desktop .wp-block-navigation__submenu-container .current-menu-item .wp-block-navigation-item__content::before {
  left: 0.85rem;
  transform: none;
}

/* ── CTA "Suscríbete" ── */
.nav-cta-wrap {
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.nav-cta-wrap .wp-block-button__link,
.nav-cta .wp-block-button__link {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta-wrap .wp-block-button__link:hover,
.nav-cta .wp-block-button__link:hover {
  background: var(--wp--preset--color--terracota-light) !important;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   THEME TOGGLE — sol / luna
═══════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 8px;
  cursor: pointer;
  color: var(--wp--preset--color--muted);
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--wp--preset--color--amber);
  border-color: var(--wp--preset--color--amber);
  background: rgba(196, 154, 60, 0.06);
}

/* Mostrar sol en dark (para pasar a light), luna en light (para pasar a dark) */
.theme-icon--moon { display: none; }
.theme-icon--sun  { display: block; }

html.light-mode .theme-icon--sun  { display: none; }
html.light-mode .theme-icon--moon { display: block; }

/* En móvil: layout explícito — logo ocupa el espacio libre,
   toggles quedan pegados en el extremo derecho.
   Ocultamos cualquier elemento extra que genere wp:navigation
   (overlay containers, responsive buttons, etc.). */
@media (max-width: 768px) {
  .header-inner {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .site-logo {
    flex: 1;
    margin-right: 0;
  }
  .theme-toggle { margin-left: unset; }
  /* Esconder todo lo que no sea logo, toggle de tema o hamburguesa */
  .header-inner > *:not(.site-logo):not(.theme-toggle):not(.nav-toggle) {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════
   HAMBURGER
═══════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.05); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--wp--preset--color--muted);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s, width 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   MENÚ MÓVIL OVERLAY
═══════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  top: var(--wp--custom--header-h, 64px);
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(14, 12, 10, 0.98);
  backdrop-filter: blur(24px);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.mobile-menu.open {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  padding: 2rem clamp(1.25rem, 5vw, 2rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(92, 82, 72, 0.2);
  text-decoration: none;
  color: var(--wp--preset--color--muted);
  font-size: 1.05rem;
  font-family: var(--wp--preset--font-family--body);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.2s, opacity 0.35s, transform 0.35s;
}

.mobile-menu.open .mobile-nav-item { opacity: 1; transform: none; }
.mobile-menu.open .mobile-nav-item:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-nav-item:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-nav-item:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu.open .mobile-nav-item:nth-child(4) { transition-delay: 0.18s; }

.mobile-nav-item:hover { color: var(--wp--preset--color--ink); }

.mobile-nav-item.mobile-nav-current {
  color: var(--wp--preset--color--ink);
  font-weight: 600;
}

.mobile-nav-item .arrow {
  font-size: 1rem;
  color: var(--wp--preset--color--subtle);
  transition: transform 0.2s, color 0.2s;
}
.mobile-nav-item:hover .arrow {
  transform: translateX(4px);
  color: var(--wp--preset--color--amber);
}

/* Toggle button: resetear defaults del browser que no hereda de .mobile-nav-item */
.mobile-nav-toggle {
  width: 100%;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  color: var(--wp--preset--color--muted);
  font-weight: 400;
  font-size: 1.05rem;
  font-family: var(--wp--preset--font-family--body);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.mobile-nav-toggle .arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.mobile-nav-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
  color: var(--wp--preset--color--amber);
}

/* Submenú desplegable */
.mobile-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-submenu.open {
  max-height: 400px;
}

.mobile-nav-subitem {
  padding-left: 1.25rem !important;
  font-size: 0.95rem !important;
  color: var(--wp--preset--color--subtle);
  border-bottom-color: rgba(92, 82, 72, 0.1) !important;
}
.mobile-nav-subitem:hover { color: var(--wp--preset--color--amber) !important; }

.mobile-menu-footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s 0.22s, transform 0.35s 0.22s;
}
.mobile-menu.open .mobile-menu-footer { opacity: 1; transform: none; }

.mobile-cta {
  display: block;
  text-align: center;
  background: var(--wp--preset--color--terracota);
  color: #fff;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.mobile-cta:hover { background: var(--wp--preset--color--terracota-light); }

/* Backdrop */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.menu-backdrop.show { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════
   BARRA DE PROGRESO DE LECTURA
═══════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: calc(var(--wp--custom--header-h, 64px) - 2px);
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--wp--preset--color--amber), var(--wp--preset--color--terracota));
  z-index: 201;
  transition: width 0.1s linear, top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-bar .reading-progress {
  top: calc(32px + var(--wp--custom--header-h, 64px) - 2px);
}

@media screen and (max-width: 782px) {
  .admin-bar .reading-progress {
    top: calc(46px + var(--wp--custom--header-h, 64px) - 2px);
  }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

.site-footer {
  border-top: 1px solid var(--wp--preset--color--subtle);
}

/* Newsletter strip */
.footer-newsletter.wp-block-columns {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  align-items: center;
}

/* Main strip */
.footer-main.wp-block-columns {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  align-items: start;
}

/* Logo + tagline en footer */
.footer-logo-block .wp-block-site-title a {
  font-size: 1.25rem;
}

.footer-tagline {
  font-size: 0.72rem;
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.05em;
  line-height: 1.5;
  max-width: 200px;
  margin-top: 0.4rem;
}

/* Nav central del footer */
.footer-nav.wp-block-navigation {
  text-align: center;
}
.footer-nav .wp-block-navigation__container {
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.footer-nav .wp-block-navigation-item__content {
  font-size: 0.83rem;
  color: var(--wp--preset--color--muted);
  text-align: center;
  transition: color 0.2s;
  padding: 0;
}
.footer-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--amber);
  background: none;
}

/* Social links */
.footer-social-col {
  display: flex;
  justify-content: flex-end;
}

.wp-block-social-links.footer-social {
  gap: 0.75rem;
}

.footer-social .wp-block-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--wp--preset--color--subtle);
  background: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social .wp-block-social-link:hover {
  border-color: var(--wp--preset--color--amber);
  background: rgba(196, 154, 60, 0.08);
}
.footer-social .wp-block-social-link a {
  color: var(--wp--preset--color--muted);
}
.footer-social .wp-block-social-link:hover a {
  color: var(--wp--preset--color--amber);
}

/* Legal strip */
.footer-legal {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.footer-legal.wp-block-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
}

.footer-legal-nav.wp-block-navigation .wp-block-navigation__container {
  flex-direction: row;
  gap: 1.5rem;
}
.footer-legal-nav .wp-block-navigation-item__content {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
  padding: 0;
  transition: color 0.2s;
}
.footer-legal-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--muted);
  background: none;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin-left: auto;
}
.newsletter-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--wp--preset--color--ink);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]::placeholder {
  color: var(--wp--preset--color--subtle);
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--wp--preset--color--amber);
}
.newsletter-form button {
  width: 100%;
  background: var(--wp--preset--color--terracota);
  color: var(--wp--preset--color--ink);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--wp--preset--color--terracota-light); }
.newsletter-disclaimer {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
  line-height: 1.5;
}

/* em cursiva en el h2 del newsletter → terracota */
.footer-newsletter .wp-block-heading em {
  font-style: italic;
  color: var(--wp--preset--color--terracota-light);
}

/* Newsletter eyebrow */
.newsletter-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════
   CARD LAYOUTS — equal-cards
═══════════════════════════════════════════ */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   POST CARDS
═══════════════════════════════════════════ */
.post-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}
.post-card:hover {
  border-color: rgba(196, 154, 60, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

/* Imagen de tarjeta — el wrapper siempre tiene altura y el gradiente como fondo */
.post-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  padding: 0 !important;
  /* Gradiente visible siempre, la imagen real lo cubre cuando existe.
     --card-accent se inyecta por PHP desde el meta del post. */
  background: radial-gradient(ellipse 90% 90% at 30% 40%, var(--card-accent, #2a1e0c) 0%, #1a1208 100%);
}
/* La imagen ocupa todo el wrapper con posición absoluta */
.post-card .card-img-wrap .wp-block-post-featured-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: none;
  margin: 0 !important;
}
.post-card .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.post-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* Badge posicionado SOBRE la imagen */
.post-card .cat-badge-img {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  pointer-events: none;
}
.post-card .cat-badge-img .wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.post-card .cat-badge-img .wp-block-post-terms__separator {
  display: none;
}
/* ═══════════════════════════════════════════
   SISTEMA DE TAGS — base compartida
   Aplica a: post-card imagen, featured post,
   cat-badge inline, post-tag-list en single
═══════════════════════════════════════════ */
.post-card .cat-badge-img a,
.featured-img-cats a,
.cat-badge a,
.cat-badge .wp-block-post-terms a,
.post-tag-list a,
a.keyword {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(8px);
  /* Fallback: tono salvia */
  color: #0A1410;
  background: rgba(107, 127, 106, 0.22);
  border: 1px solid rgba(107, 127, 106, 0.70);
  transition: background 0.2s, border-color 0.2s;
}
.post-card .cat-badge-img a { pointer-events: auto; }
.post-card .cat-badge-img a:hover,
.featured-img-cats a:hover,
.cat-badge a:hover,
.cat-badge .wp-block-post-terms a:hover,
.post-tag-list a:hover,
a.keyword:hover {
  background: rgba(107, 127, 106, 0.35);
}

/* ── Colores per-tag: generados dinámicamente desde badge_color del tag admin ── */

/* Anular block gap de WordPress entre imagen y cuerpo */
.post-card > .wp-block-group {
  margin-block-start: 0 !important;
}

/* Inner card body — ocupa el espacio restante */
.post-card .post-card-body,
.post-card > .wp-block-group:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 0.6rem;
  margin-top: 0 !important;
}

/* Meta row: fecha + tiempo de lectura */
.post-card .card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--wp--preset--color--subtle);
}
.post-card .card-meta *,
.post-card .card-meta .wp-block-post-date,
.post-card .card-meta .wp-block-paragraph,
.post-card .card-meta .wp-block-shortcode {
  font-family: var(--wp--preset--font-family--body) !important;
  font-size: 0.7rem !important;
  font-weight: 300 !important;
  color: var(--wp--preset--color--subtle) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4;
}
.post-card .card-meta p {
  margin: 0;
  padding: 0;
}

/* Título de tarjeta usando display-title block */
.post-card .featured-title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transition: color 0.2s;
}
.post-card .featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.post-card:hover .featured-title,
.post-card:hover .featured-title a {
  color: var(--wp--preset--color--amber-light) !important;
}

/* Título de tarjeta — ámbar en hover (fallback wp:post-title) */
.post-card:hover .wp-block-post-title a,
.post-card:hover .wp-block-post-title {
  color: var(--wp--preset--color--amber-light) !important;
}

/* Título base */
.post-card .wp-block-post-title,
.post-card .wp-block-post-title a {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  transition: color 0.2s;
}

/* Excerpt */
.post-card .wp-block-post-excerpt__excerpt {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--wp--preset--color--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Subtítulo en tarjetas de post */
.card-excerpt {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--wp--preset--color--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
  font-style: normal;
}
.post-card .wp-block-post-excerpt__more-link {
  display: none;
}

/* Badges de tags (cat-badge) — separador oculto */
.cat-badge .wp-block-post-terms__separator {
  display: none;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .propuesta-layout.wp-block-columns { grid-template-columns: 280px 1fr !important; }
  .pilares-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .featured-card { grid-template-columns: 1fr !important; }
  .featured-img-wrap { height: 220px; }
  /* Posts grid: 2 col en tablet */
  .posts-section .wp-block-post-template.is-flex-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .nav-desktop  { display: none !important; }
  .nav-cta-wrap { display: none !important; }
  .nav-toggle   { display: flex !important; }
  .menu-backdrop { display: block; }

  /* En móvil: alinear desde arriba y dar espacio explícito al hero */
  .hero-section {
    align-items: flex-start;
    padding-top: 3rem;
  }
  .hero-inner {
    padding-top: 0 !important;
  }

  .propuesta-layout.wp-block-columns { grid-template-columns: 1fr !important; }
  .sobre-cols.wp-block-columns { grid-template-columns: 1fr !important; }
  .sobre-photo { max-width: 280px; margin: 0 auto; }
  .cat-banner { flex: 0 0 260px !important; height: 360px !important; }
  /* Posts grid: 1 col en mobile */
  .posts-section .wp-block-post-template.is-flex-container {
    grid-template-columns: 1fr !important;
  }

  .footer-newsletter.wp-block-columns,
  .footer-main.wp-block-columns,
  .footer-legal.wp-block-group {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .footer-newsletter.wp-block-columns {
    flex-direction: column;
  }
  .footer-main.wp-block-columns {
    flex-direction: column;
  }
  .footer-social-col {
    justify-content: center !important;
    align-items: center;
  }
  .footer-social-col .wp-block-social-links {
    justify-content: center !important;
  }
  .footer-nav-col.wp-block-column {
    justify-content: flex-start !important;
  }
  .footer-nav .wp-block-navigation__container {
    align-items: flex-start;
    justify-content: flex-start !important;
  }
  .footer-nav .wp-block-navigation-item__content {
    text-align: left !important;
  }
  .footer-legal.wp-block-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-form {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .pilares-grid { grid-template-columns: 1fr !important; }
  .cat-banner { flex: 0 0 80vw !important; height: 340px !important; }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 0.5rem;
  }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(196, 154, 60, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(176, 92, 58, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--wp--preset--color--amber);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--wp--preset--color--ink);
  max-width: 14ch;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--terracota-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--wp--preset--color--muted);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.32s forwards;
}
.hero-subtitle strong { font-weight: 500; color: var(--wp--preset--color--ink); }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.42s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(92, 82, 72, 0.3);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.52s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--wp--preset--font-family--display);
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--wp--preset--color--amber);
}

.stat-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--muted);
  text-transform: uppercase;
}

/* ── Terracota buttons (WP block + hero pattern) ── */
.wp-block-button__link.has-terracota-background-color:hover,
.wp-element-button.has-terracota-background-color:hover,
.hero-ctas .wp-element-button:hover {
  background-color: var(--wp--preset--color--terracota-light) !important;
  transform: translateY(-2px);
}

/* ── Ghost button ── */
.btn-ghost .wp-block-button__link,
a.btn-ghost {
  background: transparent !important;
  color: var(--wp--preset--color--muted) !important;
  border: 1px solid var(--wp--preset--color--subtle) !important;
  border-radius: 7px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
}
.btn-ghost .wp-block-button__link:hover,
a.btn-ghost:hover {
  border-color: var(--wp--preset--color--muted) !important;
  color: var(--wp--preset--color--ink) !important;
}

/* ═══════════════════════════════════════════
   POSTS GRID — "Últimos artículos"
═══════════════════════════════════════════ */
.posts-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.posts-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.posts-section-header h2,
.posts-section-header .wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  margin: 0;
}

/* Constraintde ancho al query grid */
.posts-section > .wp-block-query,
.posts-section .wp-block-query {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* El ul del post-template puede heredar list-style */
.posts-section .wp-block-post-template {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.posts-section .wp-block-post-template li,
.wp-block-post-template li {
  list-style: none !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.posts-section .wp-block-post-template li > .wp-block-group,
.posts-section .wp-block-post-template li .post-card,
.wp-block-post-template li > .wp-block-group,
.wp-block-post-template li .post-card {
  height: 100%;
  flex: 1;
}

.ver-todos {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.85rem;
  color: var(--wp--preset--color--amber);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
  white-space: nowrap;
}
.ver-todos:hover { gap: 0.5rem; color: var(--wp--preset--color--amber-light); }

.card-footer-row {
  border-top: 1px solid rgba(92, 82, 72, 0.3);
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Fecha y read-more en el footer de la tarjeta */
.card-footer-row .wp-block-post-date {
  font-size: 0.7rem;
  color: var(--wp--preset--color--subtle);
}
.card-footer-row .wp-block-post-author-name,
.card-footer-row .wp-block-post-author-name a {
  font-size: 0.72rem;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  font-weight: 400;
}
.card-footer-row .wp-block-read-more {
  font-size: 0.7rem;
  color: var(--wp--preset--color--amber);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}
.post-card:hover .card-footer-row .wp-block-read-more { gap: 0.45rem; }

/* ═══════════════════════════════════════════
   NEWSLETTER SECTION (homepage / sobre-mi)
═══════════════════════════════════════════ */
.newsletter-section {
  background: var(--wp--preset--color--surface);
  border-top: 1px solid var(--wp--preset--color--subtle);
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.nl-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 1rem;
}

.nl-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--wp--preset--color--amber);
  flex-shrink: 0;
}

.newsletter-section .wp-block-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1rem;
}

.newsletter-section .wp-block-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--terracota-light);
}

.nl-description {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--wp--preset--color--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.nl-description strong { font-weight: 500; color: var(--wp--preset--color--ink); }

.nl-promises {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nl-promises li {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.85rem;
  color: var(--wp--preset--color--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nl-promises li::before {
  content: '—';
  color: var(--wp--preset--color--terracota);
  flex-shrink: 0;
}

/* Right column: form card */
.nl-form-card {
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: var(--wp--custom--radius, 14px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.nl-form-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.4rem;
}

.nl-form-sub {
  font-size: 0.82rem;
  color: var(--wp--preset--color--muted);
  margin-bottom: 1.5rem;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nl-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--wp--preset--color--ink);
  outline: none;
  transition: border-color 0.2s;
}
.nl-input::placeholder { color: var(--wp--preset--color--subtle); }
.nl-input:focus { border-color: var(--wp--preset--color--amber); }

.nl-hp { display: none !important; }

.nl-btn {
  width: 100%;
  background: var(--wp--preset--color--terracota);
  color: var(--wp--preset--color--ink);
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.nl-btn:hover { background: var(--wp--preset--color--terracota-light); }

.nl-legal {
  font-size: 0.7rem;
  color: var(--wp--preset--color--subtle);
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Social proof avatars */
.nl-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(92, 82, 72, 0.3);
}

.nl-avatars {
  display: flex;
}

.nl-avatars span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--wp--preset--color--surface-2);
  background: var(--wp--preset--color--surface);
  font-size: 0.7rem;
  color: var(--wp--preset--color--muted);
  margin-right: -8px;
  font-family: var(--wp--preset--font-family--body);
}

.nl-proof-text {
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.4;
  margin-left: 16px;
}

.nl-proof-text strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   PROPUESTA — "Qué encontrarás aquí"
═══════════════════════════════════════════ */
.propuesta {
  border-top: 1px solid rgba(92, 82, 72, 0.2);
  border-bottom: 1px solid rgba(92, 82, 72, 0.2);
}

.propuesta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.propuesta-layout.wp-block-columns {
  display: grid !important;
  grid-template-columns: 340px 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: 3.5rem;
  flex-wrap: unset !important;
}

.propuesta-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
}

.propuesta-photo img,
.propuesta-photo .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.05);
  display: block;
}

.propuesta-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #1a1510 0%, #252018 100%);
}

.propuesta-photo-placeholder .ph-letter {
  font-family: var(--wp--preset--font-family--display);
  font-size: 6rem;
  font-weight: 900;
  font-style: italic;
  color: var(--wp--preset--color--amber);
  opacity: 0.25;
  line-height: 1;
}

.propuesta-photo-placeholder .ph-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
}

.propuesta-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 0.75rem;
}

.propuesta-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1.25rem;
}

.propuesta-title em {
  font-style: italic;
  color: var(--wp--preset--color--terracota-light);
}

.propuesta-intro {
  font-size: 0.95rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.8;
}
.propuesta-intro strong { font-weight: 500; color: var(--wp--preset--color--ink); }

/* Pilares 4 col */
.pilares-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: transparent;
  border: 1px solid rgba(92, 82, 72, 0.2);
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  margin-top: 3.5rem !important;
}

.pilar {
  background: var(--wp--preset--color--background, #141210);
  padding: 2rem 1.75rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.pilares-grid > .wp-block-group.pilar:not(:last-child) {
  border-right: 1px solid rgba(92, 82, 72, 0.2);
}

.pilar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  transition: width 0.35s ease;
}

.pilares-grid > .wp-block-group:nth-child(1).pilar::after { background: var(--wp--preset--color--amber); }
.pilares-grid > .wp-block-group:nth-child(2).pilar::after { background: var(--wp--preset--color--terracota); }
.pilares-grid > .wp-block-group:nth-child(3).pilar::after { background: var(--wp--preset--color--sage); }
.pilares-grid > .wp-block-group:nth-child(4).pilar::after { background: var(--wp--preset--color--amber); }

.pilar:hover { background: var(--wp--preset--color--surface); }
.pilar:hover::after { width: 100%; }

.pilar-num {
  font-family: var(--wp--preset--font-family--display);
  font-size: 2.8rem;
  font-weight: 900;
  font-style: italic;
  color: var(--wp--preset--color--amber);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pilar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.pilar-desc {
  font-size: 0.8rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   ARTÍCULO DESTACADO
═══════════════════════════════════════════ */
.featured-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.featured-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.featured-label::before { content: '✦'; font-size: 0.5rem; }
.featured-label::after { content: ''; flex: 1; height: 1px; background: rgba(196, 154, 60, 0.2); }

.featured-section .wp-block-post-template {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.featured-section .wp-block-post {
  list-style: none !important;
}

.featured-card {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  min-height: 360px;
  transition: border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.featured-card:hover {
  border-color: rgba(196, 154, 60, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.featured-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--wp--preset--color--surface-2);
}
.featured-img-wrap .wp-block-post-featured-image {
  height: 100%;
}
.featured-img-wrap .wp-block-post-featured-image a,
.featured-img-wrap .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.featured-card:hover .featured-img-wrap .wp-block-post-featured-image img {
  transform: scale(1.04);
}

/* Badges de tags sobre la imagen del artículo destacado */
.featured-img-cats {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
  flex-wrap: wrap;
}
.featured-img-cats .wp-block-post-terms__separator {
  display: none;
}

.featured-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-tag {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 1rem;
}

.featured-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1rem;
  transition: color 0.2s;
}
/* El título es un enlace — asegurar color blanco por defecto, ámbar en hover */
.featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.featured-card:hover .featured-title,
.featured-card:hover .featured-title a { color: var(--wp--preset--color--amber-light); }
.featured-title em { font-style: italic; font-weight: 400; color: var(--wp--preset--color--terracota-light); }

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-excerpt {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--wp--preset--color--muted);
  margin-top: 0.75rem;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(92, 82, 72, 0.3);
}
.featured-meta {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.featured-meta > * { margin: 0 !important; }
.featured-meta .wp-block-shortcode {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
}
.featured-author {
  font-size: 0.72rem;
  color: var(--wp--preset--color--muted);
}
.featured-read {
  font-size: 0.78rem;
  color: var(--wp--preset--color--amber);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.featured-card:hover .featured-read { gap: 0.5rem; }

/* ═══════════════════════════════════════════
   CARRUSEL DE CATEGORÍAS
═══════════════════════════════════════════ */
.cats-section {
  border-top: 1px solid rgba(92, 82, 72, 0.2);
  border-bottom: 1px solid rgba(92, 82, 72, 0.2);
}

.cats-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.cats-header { margin-bottom: 1.75rem; }
.cats-header-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
}

.cats-track-wrap { position: relative; }
.cats-track-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 1rem;
  width: 100px;
  background: linear-gradient(to right, transparent, var(--wp--preset--color--background, #141210));
  pointer-events: none;
  z-index: 2;
}

.cats-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  cursor: grab;
}
.cats-track:active { cursor: grabbing; }
.cats-track::-webkit-scrollbar { display: none; }

.cat-banner {
  flex: 0 0 340px;
  scroll-snap-align: start;
  position: relative;
  height: 420px;
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.cat-banner-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cat-banner:hover .cat-banner-bg { transform: scale(1.06); }

.cat-banner.estrategia .cat-banner-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196, 154, 60, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(176, 92, 58, 0.1) 0%, transparent 60%),
    linear-gradient(160deg, #1a1208 0%, #251a08 50%, #1a1208 100%);
}
.cat-banner.captacion .cat-banner-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(176, 92, 58, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(196, 154, 60, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, #1c0e07 0%, #2a1408 50%, #1c0e07 100%);
}
.cat-banner.conversion .cat-banner-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(107, 127, 106, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(142, 160, 141, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0c1410 0%, #141f14 50%, #0c1410 100%);
}
.cat-banner.analitica .cat-banner-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(120, 110, 180, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(160, 158, 204, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0e0c18 0%, #181528 50%, #0e0c18 100%);
}

.cat-banner-letter {
  position: absolute;
  right: -0.1em; bottom: -0.2em;
  font-family: var(--wp--preset--font-family--display);
  font-size: 14rem; font-weight: 900; font-style: italic;
  line-height: 1; user-select: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
  opacity: 0.055;
}
.cat-banner.estrategia .cat-banner-letter { color: var(--wp--preset--color--amber); }
.cat-banner.captacion  .cat-banner-letter { color: var(--wp--preset--color--terracota); }
.cat-banner.conversion .cat-banner-letter { color: var(--wp--preset--color--sage); }
.cat-banner.analitica  .cat-banner-letter { color: #9890d0; }
.cat-banner:hover .cat-banner-letter { transform: scale(1.08) translateY(-2%); opacity: 0.09; }

.cat-banner-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.cat-banner.estrategia .cat-banner-line { background: linear-gradient(90deg, var(--wp--preset--color--amber), transparent); }
.cat-banner.captacion  .cat-banner-line { background: linear-gradient(90deg, var(--wp--preset--color--terracota), transparent); }
.cat-banner.conversion .cat-banner-line { background: linear-gradient(90deg, var(--wp--preset--color--sage), transparent); }
.cat-banner.analitica  .cat-banner-line { background: linear-gradient(90deg, #9890d0, transparent); }

.cat-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 65%;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.9) 0%, rgba(10, 8, 6, 0.5) 50%, transparent 100%);
  pointer-events: none;
}

.cat-banner-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.75rem;
  z-index: 2;
  transform: translateY(4px);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cat-banner:hover .cat-banner-content { transform: translateY(0); }

.cat-banner-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cat-banner-eyebrow::before { content: ''; width: 16px; height: 1px; display: inline-block; }
.cat-banner.estrategia .cat-banner-eyebrow { color: var(--wp--preset--color--amber-light); }
.cat-banner.estrategia .cat-banner-eyebrow::before { background: var(--wp--preset--color--amber-light); }
.cat-banner.captacion  .cat-banner-eyebrow { color: var(--wp--preset--color--terracota-light); }
.cat-banner.captacion  .cat-banner-eyebrow::before { background: var(--wp--preset--color--terracota-light); }
.cat-banner.conversion .cat-banner-eyebrow { color: var(--wp--preset--color--sage-light); }
.cat-banner.conversion .cat-banner-eyebrow::before { background: var(--wp--preset--color--sage-light); }
.cat-banner.analitica  .cat-banner-eyebrow { color: #c0bce8; }
.cat-banner.analitica  .cat-banner-eyebrow::before { background: #c0bce8; }

.cat-banner-name {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.cat-banner-desc {
  font-size: 0.8rem;
  color: rgba(237, 232, 223, 0.65);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s;
  opacity: 0;
  margin-bottom: 0;
}
.cat-banner:hover .cat-banner-desc {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 1rem;
}

.cat-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid;
  transition: background 0.25s, color 0.25s, gap 0.2s;
}
.cat-banner.estrategia .cat-banner-cta { color: var(--wp--preset--color--amber-light); border-color: rgba(196, 154, 60, 0.35); }
.cat-banner.estrategia .cat-banner-cta:hover { background: rgba(196, 154, 60, 0.12); gap: 0.55rem; }
.cat-banner.captacion  .cat-banner-cta { color: var(--wp--preset--color--terracota-light); border-color: rgba(176, 92, 58, 0.35); }
.cat-banner.captacion  .cat-banner-cta:hover { background: rgba(176, 92, 58, 0.12); gap: 0.55rem; }
.cat-banner.conversion .cat-banner-cta { color: var(--wp--preset--color--sage-light); border-color: rgba(107, 127, 106, 0.35); }
.cat-banner.conversion .cat-banner-cta:hover { background: rgba(107, 127, 106, 0.12); gap: 0.55rem; }
.cat-banner.analitica  .cat-banner-cta { color: #c0bce8; border-color: rgba(120, 110, 180, 0.35); }
.cat-banner.analitica  .cat-banner-cta:hover { background: rgba(120, 110, 180, 0.12); gap: 0.55rem; }

.cats-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.cats-dot {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--wp--preset--color--subtle);
  cursor: pointer;
  transition: background 0.2s, width 0.25s;
}
.cats-dot.active { background: var(--wp--preset--color--amber); width: 40px; }

/* ═══════════════════════════════════════════
   SOBRE MÍ PREVIEW (homepage)
═══════════════════════════════════════════ */
.sobre-section {
  border-top: 1px solid rgba(92, 82, 72, 0.2);
}

.sobre-cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 280px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  flex-wrap: unset !important;
}

.sobre-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sobre-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--wp--preset--color--subtle);
  display: inline-block;
  flex-shrink: 0;
}

.sobre-name {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.sobre-bio {
  font-size: 0.95rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.sobre-bio strong { font-weight: 500; color: var(--wp--preset--color--ink); }

.sobre-link {
  font-size: 0.85rem;
  color: var(--wp--preset--color--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
  border-bottom: 1px solid rgba(196, 154, 60, 0.3);
  padding-bottom: 1px;
  text-decoration: none;
}
.sobre-link:hover { gap: 0.5rem; border-color: var(--wp--preset--color--amber); }

.sobre-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.sobre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(10%);
}

.sobre-photo-ph-a {
  font-family: var(--wp--preset--font-family--display);
  font-size: 5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--wp--preset--color--amber);
  opacity: 0.35;
  line-height: 1;
}

.sobre-photo-ph-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
}

/* Newsletter responsive */
@media (max-width: 768px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 1.5rem;
  }
}

/* ═══════════════════════════════════════════
   SINGLE POST — Hero
═══════════════════════════════════════════ */

/* Categoría: eyebrow amber sobre el título */
.post-cat-badge .wp-block-post-terms__separator {
  color: var(--wp--preset--color--amber);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  margin: 0 0.25em;
}
.post-cat-badge a {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}
.post-cat-badge a:hover {
  color: var(--wp--preset--color--amber-light);
}

/* Título principal H1: Playfair Display, em → terracota */
.post-display-title.wp-block-post-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1.25rem;
  margin-top: 0;
}
.post-display-title.wp-block-post-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--terracota-light);
}

/* Subtítulo del post: Instrument Serif italic */
p.post-excerpt-editorial {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

/* Meta line: autor · fecha · lectura */
.post-meta-line {
  border-top: 1px solid var(--wp--preset--color--subtle);
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  gap: 0.75rem;
  margin-bottom: 0;
}
.post-meta-line .wp-block-post-author-name,
.post-meta-line .wp-block-post-author-name a {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  margin: 0;
}
.post-meta-line .meta-sep {
  font-size: 0.7rem;
  color: var(--wp--preset--color--subtle);
  margin: 0;
  padding: 0;
  line-height: 1;
}
.post-meta-line .meta-date.wp-block-post-date,
.post-meta-line .wp-block-post-date {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  margin: 0;
}
.post-meta-line .wp-block-shortcode {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  margin: 0;
}
.post-meta-line .wp-block-shortcode p {
  margin: 0;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
}
.meta-read {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--wp--preset--color--muted);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Imagen destacada
═══════════════════════════════════════════ */
.post-feat-img-wrap {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.post-feat-img-wrap .wp-block-post-featured-image {
  border-top: 1px solid var(--wp--preset--color--subtle);
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  overflow: hidden;
}
.post-feat-img-wrap .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  max-height: 460px;
  height: auto;
  object-fit: cover;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Cuerpo del artículo
   Scoped a .post-article para no afectar otros templates
═══════════════════════════════════════════ */
/* Padding lateral para el artículo — compensa la ausencia de useRootPaddingAwareAlignments.
   Se usa padding-left/right con !important porque WordPress genera margin: 0 auto !important
   en los hijos de bloques constrained, lo que puede neutralizar padding-inline lógico. */
.post-hero-inner,
.post-tags-section,
.post-article .wp-block-post-content {
  padding-left: clamp(1.25rem, 5vw, 2.5rem) !important;
  padding-right: clamp(1.25rem, 5vw, 2.5rem) !important;
  box-sizing: border-box;
}

.post-article .wp-block-post-content {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Párrafos */
.post-article .wp-block-post-content p {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--wp--preset--color--muted);
  margin-bottom: 1.75rem;
}
.post-article .wp-block-post-content p:last-child {
  margin-bottom: 0;
}
.post-article .wp-block-post-content p strong {
  font-weight: 500;
  color: var(--wp--preset--color--ink);
}
.post-article .wp-block-post-content p a {
  color: var(--wp--preset--color--amber);
  text-decoration: underline;
  text-decoration-color: rgba(196, 154, 60, 0.35);
}

/* H1 — Playfair Display 600 */
.post-article .wp-block-post-content h1.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--ink);
  margin-top: 4rem;
  margin-bottom: 1.25rem;
}
.post-article .wp-block-post-content h1.wp-block-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--terracota-light);
}

/* H2 — Playfair Display 400 italic terracota */
.post-article .wp-block-post-content h2.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--wp--preset--color--terracota-light);
  letter-spacing: 0;
  margin-top: 4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.post-article .wp-block-post-content h2.wp-block-heading em {
  color: var(--wp--preset--color--terracota-light);
}

/* H3 — Epilogue 600 ink */
.post-article .wp-block-post-content h3.wp-block-heading {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* H4 — Epilogue 600 ink, más pequeño */
.post-article .wp-block-post-content h4.wp-block-heading {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

/* H5 — eyebrow amber uppercase */
.post-article .wp-block-post-content h5.wp-block-heading {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--wp--preset--color--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* H6 — mono sage-light uppercase */
.post-article .wp-block-post-content h6.wp-block-heading {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--wp--preset--color--sage-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Listas no ordenadas — bullet redondo terracota */
.post-article .wp-block-post-content ul,
.post-article .wp-block-post-content .wp-block-list:not(.is-style-numbered) {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.post-article .wp-block-post-content ul li,
.post-article .wp-block-post-content .wp-block-list:not(.is-style-numbered) > li {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
  padding-left: 1.5rem;
  position: relative;
}
.post-article .wp-block-post-content ul li::before,
.post-article .wp-block-post-content .wp-block-list:not(.is-style-numbered) > li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wp--preset--color--terracota);
}

/* Listas ordenadas — numeración mono ámbar */
.post-article .wp-block-post-content ol,
.post-article .wp-block-post-content .wp-block-list.is-style-numbered {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  counter-reset: list-counter;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.post-article .wp-block-post-content ol > li,
.post-article .wp-block-post-content .wp-block-list.is-style-numbered > li {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
  padding-left: 1.9rem;
  position: relative;
  counter-increment: list-counter;
}
.post-article .wp-block-post-content ol > li::before,
.post-article .wp-block-post-content .wp-block-list.is-style-numbered > li::before {
  content: counter(list-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.45em;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.72rem;
  color: var(--wp--preset--color--amber);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Sublistas — guion sutil */
.post-article .wp-block-post-content ul ul li,
.post-article .wp-block-post-content ul ul li::before {
  padding-left: 1.25rem;
}
.post-article .wp-block-post-content ul ul li::before {
  content: '—';
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  color: var(--wp--preset--color--subtle);
  font-weight: 400;
  left: 0;
  top: 0;
  font-size: 1em;
  line-height: inherit;
}

/* Strong en listas */
.post-article .wp-block-post-content li strong { color: var(--wp--preset--color--ink); font-weight: 500; }

/* Pull quote: borde izquierdo terracota */
.post-article .wp-block-post-content .wp-block-pullquote {
  border-left: 2px solid var(--wp--preset--color--terracota);
  border-top: none;
  border-bottom: none;
  border-right: none;
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2.5rem 0;
  text-align: left;
}
.post-article .wp-block-post-content .wp-block-pullquote blockquote p,
.post-article .wp-block-post-content .wp-block-pullquote p {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--wp--preset--color--ink);
  line-height: 1.45;
  margin-bottom: 0;
}

/* Separador hr */
.post-article .wp-block-post-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--wp--preset--color--subtle);
  margin: 3.5rem 0;
}

/* Tabla — estilos base (movidos a sección unificada más abajo) */

/* ═══════════════════════════════════════════
   SINGLE POST — Tags
═══════════════════════════════════════════ */
.post-tags-section {
  border-top: 1px solid var(--wp--preset--color--subtle);
}
.post-tags-inner {
  gap: 0.5rem;
}
.tags-label-text {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
  margin: 0;
  margin-right: 0.25rem;
}
.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.post-tag-list .wp-block-post-terms__separator {
  display: none;
}
/* .post-tag-list a — estilos en bloque SISTEMA DE TAGS (línea ~867) */

/* ═══════════════════════════════════════════
   SINGLE POST — Posts relacionados
═══════════════════════════════════════════ */
.related-section {
  border-top: 1px solid var(--wp--preset--color--subtle);
  margin-top: 5rem;
  padding-top: 3rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1200px;
  margin-inline: auto;
}
.related-header {
  margin-bottom: 2rem;
}
.related-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
  margin: 0 0 0.4rem;
}
.related-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  margin: 0;
}
.related-posts-query .wp-block-post-template {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.related-posts-query .wp-block-post-template li {
  list-style: none !important;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Responsive
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .related-posts-query .wp-block-post-template.is-flex-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .related-posts-query .wp-block-post-template.is-flex-container {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════
   SOBRE MÍ — página completa (sm- prefix)
═══════════════════════════════════════════ */

/* Inner container compartido */
.sm-section-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}
.sm-section-inner--last {
  border-bottom: none;
}

/* Eyebrow compartido */
.sm-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Hero ── */
.sm-hero-cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
  align-items: center;
}

.sm-eyebrow-tag {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  border: 1px solid rgba(196, 154, 60, 0.3);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}

.sm-hero-h1.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1.25rem;
}
.sm-hero-h1.wp-block-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--terracota);
}

.sm-hero-lead {
  font-family: var(--wp--preset--font-family--editorial);
  font-size: 1.15rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.sm-hero-body {
  font-size: 0.95rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.sm-hero-body strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

.sm-hero-actions {
  margin-top: 1.75rem;
}

/* Photo column */
.sm-hero-photo-col {
  position: relative;
}

.sm-photo-wrapper {
  position: relative;
  padding-bottom: 1.5rem;
}

.sm-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: var(--wp--custom--radius, 14px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.sm-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176, 92, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.sm-photo-placeholder {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
  margin: 0;
  position: relative;
  z-index: 1;
}

.sm-photo-badge {
  position: absolute;
  bottom: 0;
  left: -1rem;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  display: flex !important;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 2;
}

.sm-badge-num {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wp--preset--color--amber);
  line-height: 1;
  margin: 0;
}

.sm-badge-label {
  font-size: 0.68rem;
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── Stats ── */
.sm-stats-section {
  background: transparent;
}

.sm-stats-grid.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  background: transparent;
  border: 1px solid rgba(92, 82, 72, 0.2);
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  margin-top: 1.5rem;
}
.sm-stats-grid > .wp-block-column {
  flex-basis: auto !important;
}
.sm-stat-item {
  background: var(--wp--preset--color--background, #141210);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.sm-stats-grid > .wp-block-column.sm-stat-item:not(:last-child) {
  border-right: 1px solid rgba(92, 82, 72, 0.2);
}
.sm-stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--wp--preset--color--amber);
  transition: width 0.35s ease;
}
.sm-stat-item:hover { background: var(--wp--preset--color--surface); }
.sm-stat-item:hover::after { width: 100%; }

.sm-stat-num {
  font-family: var(--wp--preset--font-family--display);
  font-size: 2.8rem;
  font-weight: 900;
  font-style: italic;
  color: var(--wp--preset--color--amber);
  opacity: 0.25;
  line-height: 1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.sm-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.sm-stat-note {
  font-size: 0.8rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Trayectoria ── */
.sm-tray-cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: start;
}

.sm-col-title.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}

.sm-exp-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sm-exp-item:last-child { border-bottom: none; }

.sm-exp-period {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin: 0;
}

.sm-exp-role {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  line-height: 1.25;
  margin: 0;
}

.sm-exp-company {
  font-size: 0.82rem;
  color: var(--wp--preset--color--muted);
  margin: 0;
}

.sm-exp-desc {
  font-size: 0.82rem;
  color: var(--wp--preset--color--subtle);
  line-height: 1.6;
  margin: 0.15rem 0 0;
}

/* Education items */
.sm-edu-item {
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  align-items: flex-start;
}
.sm-edu-item:last-child { border-bottom: none; }

.sm-edu-logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sm-edu-logo--analytics { border-color: rgba(227, 116, 0, 0.3); }
.sm-edu-logo--meta      { border-color: rgba(0, 130, 251, 0.3); }
.sm-edu-logo--hubspot   { border-color: rgba(255, 122, 89, 0.3); }

.sm-edu-logo figure,
.sm-edu-logo .wp-block-image {
  width: 44px;
  height: 44px;
  margin: 0;
  line-height: 0;
}
.sm-edu-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.sm-edu-logo-letter {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wp--preset--color--muted);
  line-height: 1;
  margin: 0;
}
.sm-edu-logo--analytics .sm-edu-logo-letter { color: #E37400; }
.sm-edu-logo--meta .sm-edu-logo-letter      { color: #0082FB; }
.sm-edu-logo--hubspot .sm-edu-logo-letter   { color: #FF7A59; }

.sm-edu-info {
  flex: 1;
  min-width: 0;
  --wp--style--block-gap: 0;
}

.sm-edu-degree {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  line-height: 1.3;
  margin: 0;
}

.sm-edu-school {
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  margin: 0.2rem 0 0;
}

.sm-edu-year {
  font-size: 0.68rem;
  color: var(--wp--preset--color--subtle);
  letter-spacing: 0.08em;
  margin: 0;
}

/* ── Timeline ── */
.sm-timeline-section {
  background: var(--wp--preset--color--surface);
}

.sm-timeline-heading.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  line-height: 1.2;
  margin-bottom: 3rem;
}
.sm-timeline-heading.wp-block-heading em {
  font-style: italic;
  color: var(--wp--preset--color--muted);
}

.sm-timeline-accordion {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2rem;
}
.sm-timeline-accordion::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--wp--preset--color--amber),
    var(--wp--preset--color--subtle) 80%,
    transparent
  );
}

.sm-tl-item {
  position: relative;
}
.sm-tl-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.15rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wp--preset--color--background, #141210);
  border: 2px solid var(--wp--preset--color--subtle);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  z-index: 1;
}
.sm-tl-item.sm-highlight::before,
.sm-tl-item.sm-open::before {
  border-color: var(--wp--preset--color--amber);
  background: var(--wp--preset--color--amber);
  box-shadow: 0 0 0 4px rgba(196, 154, 60, 0.15);
}

.sm-tl-trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.sm-tl-trigger:hover { background: rgba(255, 255, 255, 0.02); }

.sm-tl-year {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  min-width: 42px;
  flex-shrink: 0;
}

.sm-tl-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  flex: 1;
  line-height: 1.25;
}

.sm-tl-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--sage-light, #8EA08D);
  border: 1px solid rgba(107, 127, 106, 0.3);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
}

.sm-tl-chevron {
  color: var(--wp--preset--color--subtle);
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.sm-tl-item.sm-open .sm-tl-chevron {
  transform: rotate(180deg);
  color: var(--wp--preset--color--amber);
}

.sm-tl-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0;
}
.sm-tl-item.sm-open .sm-tl-panel {
  max-height: 300px;
  opacity: 1;
}

.sm-tl-panel-inner {
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid rgba(92, 82, 72, 0.4);
}
.sm-tl-item:last-child .sm-tl-trigger { border-bottom: none; }
.sm-tl-item.sm-open:last-child .sm-tl-trigger { border-bottom: 1px solid var(--wp--preset--color--subtle); }
.sm-tl-item:last-child .sm-tl-panel-inner { border-bottom: none; }

.sm-tl-desc {
  font-size: 0.88rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0;
}

/* ── Bloque Honesto ── */
.sm-honest-cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important;
  gap: clamp(2rem, 6vw, 6rem) !important;
  align-items: start;
}

.sm-honest-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  padding-top: 0.3rem;
  position: sticky;
  top: calc(64px + 2rem);
  margin: 0;
}

.sm-honest-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sm-honest-p {
  font-size: 1.05rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.85;
  margin: 0;
}
.sm-honest-p strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}
.sm-honest-p em {
  font-style: italic;
  color: var(--wp--preset--color--terracota-light);
}

.sm-linkedin-link {
  color: var(--wp--preset--color--amber);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(196, 154, 60, 0.3);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}
.sm-linkedin-link:hover {
  color: var(--wp--preset--color--amber-light, #D9B35A);
  border-color: var(--wp--preset--color--amber-light, #D9B35A);
}

/* ── Datos Curiosos ── */
.sm-curiosos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: transparent;
  border: 1px solid rgba(92, 82, 72, 0.2);
  border-radius: var(--wp--custom--radius, 14px);
  overflow: hidden;
  margin-top: 1rem;
}

.sm-curiosos-grid > .wp-block-group.sm-curioso-item:not(:last-child) {
  border-right: 1px solid rgba(92, 82, 72, 0.2);
}

.sm-curioso-item {
  background: var(--wp--preset--color--background, #141210);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.sm-curioso-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--wp--preset--color--amber);
  transition: width 0.35s ease;
}

.sm-curioso-item:hover {
  background: var(--wp--preset--color--surface);
}

.sm-curioso-item:hover::after {
  width: 100%;
}

.sm-curioso-emoji {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.sm-curioso-dato {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  line-height: 1.25;
}

.sm-curioso-sub {
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
}

/* ── Projects Accordion ── */
.sm-projects-header {
  margin-bottom: 2.5rem;
}

.sm-projects-h2.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  line-height: 1.15;
}
.sm-projects-h2.wp-block-heading em {
  font-style: italic;
  color: var(--wp--preset--color--muted);
}

.sm-projects-count {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
  margin: 0;
  flex-shrink: 0;
}

.sm-project-accordion {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: clamp(2rem, 5vw, 4rem);
}
.sm-project-accordion::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--wp--preset--color--amber) 0%,
    var(--wp--preset--color--subtle) 60%,
    transparent 100%
  );
}

.sm-acc-item {
  position: relative;
  border-bottom: 1px solid rgba(92, 82, 72, 0.3);
}
.sm-acc-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(2rem, 5vw, 4rem) - 5px);
  top: 1.6rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wp--preset--color--background, #141210);
  border: 2px solid var(--wp--preset--color--subtle);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  z-index: 1;
}
.sm-acc-item.sm-highlight::before,
.sm-acc-item.sm-acc-open::before {
  border-color: var(--wp--preset--color--amber);
  background: var(--wp--preset--color--amber);
  box-shadow: 0 0 0 4px rgba(196, 154, 60, 0.15);
}
.sm-acc-item.sm-fracaso-item::before {
  border-color: var(--wp--preset--color--terracota);
}
.sm-acc-item.sm-fracaso-item.sm-acc-open::before {
  background: var(--wp--preset--color--terracota);
  box-shadow: 0 0 0 4px rgba(176, 92, 58, 0.15);
}

.sm-acc-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: background 0.15s;
}
.sm-acc-trigger:hover {
  background: rgba(255, 255, 255, 0.015);
}

.sm-acc-year {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  min-width: 38px;
  flex-shrink: 0;
}
.sm-acc-item.sm-fracaso-item .sm-acc-year {
  color: var(--wp--preset--color--terracota-light, #C97A55);
}

.sm-acc-title-text {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  flex: 1;
  line-height: 1.25;
}

.sm-acc-tag {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  flex-shrink: 0;
}
.sm-tag-fracaso {
  background: rgba(176, 92, 58, 0.12);
  color: var(--wp--preset--color--terracota-light, #C97A55);
  border: 1px solid rgba(176, 92, 58, 0.25);
}
.sm-tag-hito {
  background: rgba(196, 154, 60, 0.1);
  color: var(--wp--preset--color--amber-light, #D9B35A);
  border: 1px solid rgba(196, 154, 60, 0.25);
}
.sm-tag-proyecto {
  background: rgba(107, 127, 106, 0.1);
  color: var(--wp--preset--color--sage-light, #8EA08D);
  border: 1px solid rgba(107, 127, 106, 0.25);
}
.sm-tag-pivote {
  background: rgba(168, 158, 142, 0.08);
  color: var(--wp--preset--color--muted);
  border: 1px solid var(--wp--preset--color--subtle);
}

.sm-acc-chevron {
  color: var(--wp--preset--color--subtle);
  font-size: 0.7rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.sm-acc-item.sm-acc-open .sm-acc-chevron {
  transform: rotate(180deg);
  color: var(--wp--preset--color--amber);
}

.sm-acc-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
.sm-acc-item.sm-acc-open .sm-acc-panel {
  max-height: 700px;
  opacity: 1;
}

.sm-acc-panel-inner {
  padding: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sm-acc-subtitle {
  font-family: var(--wp--preset--font-family--editorial);
  font-size: 0.95rem;
  color: var(--wp--preset--color--terracota-light, #C97A55);
  font-style: italic;
}

.sm-acc-desc {
  font-size: 0.9rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.85;
  max-width: 560px;
  margin: 0;
}
.sm-acc-desc strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

.sm-acc-lesson {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: var(--wp--custom--radius, 14px);
  border-left: 3px solid var(--wp--preset--color--amber);
  margin-top: 0.25rem;
}
.sm-acc-lesson.sm-fracaso-lesson {
  border-left-color: var(--wp--preset--color--terracota);
}

.sm-acc-lesson-icon {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  padding-top: 0.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.sm-acc-lesson.sm-fracaso-lesson .sm-acc-lesson-icon {
  color: var(--wp--preset--color--terracota-light, #C97A55);
}

.sm-acc-lesson p {
  font-size: 0.83rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* ── Formation standalone ── */
.sm-formation-cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important;
  gap: clamp(2rem, 6vw, 6rem) !important;
  align-items: start;
}

.sm-formation-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  padding-top: 0.3rem;
  position: sticky;
  top: calc(64px + 2rem);
  margin: 0;
}

.sm-formation-grid {
  display: flex;
  flex-direction: column;
}

/* ── Contacto ── */
.sm-contact-cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
  align-items: start;
}

.sm-contact-h2.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.75rem;
}

.sm-contact-body {
  font-size: 0.9rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.sm-contact-body strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

/* Contact form */
.sm-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sm-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sm-form-field label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
}

.sm-form-field input,
.sm-form-field textarea {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--wp--preset--color--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.sm-form-field input::placeholder,
.sm-form-field textarea::placeholder { color: var(--wp--preset--color--subtle); }
.sm-form-field input:focus,
.sm-form-field textarea:focus { border-color: var(--wp--preset--color--amber); }
.sm-form-field textarea { min-height: 120px; }

.sm-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.sm-form-note {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
}

.sm-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wp--preset--color--terracota);
  color: var(--wp--preset--color--ink);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.sm-submit-btn:hover {
  background: var(--wp--preset--color--terracota-light);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sm-hero-cols.wp-block-columns {
    grid-template-columns: 1fr !important;
  }
  .sm-hero-photo-col {
    max-width: 320px;
  }
  .sm-stats-grid.wp-block-columns {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sm-tray-cols.wp-block-columns {
    grid-template-columns: 1fr !important;
  }
  .sm-contact-cols.wp-block-columns {
    grid-template-columns: 1fr !important;
  }
  .sm-honest-cols.wp-block-columns {
    grid-template-columns: 1fr !important;
  }
  .sm-honest-label {
    position: static;
  }
  .sm-formation-cols.wp-block-columns {
    grid-template-columns: 1fr !important;
  }
  .sm-formation-label {
    position: static;
  }
}

@media (max-width: 768px) {
  .sm-acc-tag {
    display: none;
  }
  .sm-project-accordion {
    padding-left: 2rem;
  }
}

@media (max-width: 600px) {
  .sm-stats-grid.wp-block-columns {
    grid-template-columns: 1fr 1fr !important;
  }
  .sm-form-row {
    grid-template-columns: 1fr;
  }
  .sm-tl-tag {
    display: none;
  }
  .sm-photo-badge {
    left: 0;
  }
  .sm-curiosos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sm-curiosos-grid > .wp-block-group.sm-curioso-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(92, 82, 72, 0.2);
  }
  .sm-curiosos-grid > .wp-block-group.sm-curioso-item:nth-child(odd):not(:last-child) {
    border-right: 1px solid rgba(92, 82, 72, 0.2);
  }
}

/* ═══════════════════════════════════════════
   PÁGINA DE CONTACTO
═══════════════════════════════════════════ */
.sm-cp-cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(2.5rem, 6vw, 6rem) !important;
  align-items: start;
}

.sm-cp-h1.wp-block-heading {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1rem;
}

/* Lista de motivos de contacto */
.sm-cp-trust {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sm-cp-trust-item.wp-block-group {
  gap: 0.65rem !important;
}
.sm-cp-trust-icon {
  color: var(--wp--preset--color--amber);
  font-size: 0.65rem;
  margin: 0;
  flex-shrink: 0;
  line-height: 1.6;
}
.sm-cp-trust-text {
  font-size: 0.85rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.5;
  margin: 0;
}

/* Foto */
.sm-cp-photo.wp-block-image {
  margin-top: 0.5rem;
  border-radius: 14px;
  overflow: hidden;
}
.sm-cp-photo.wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 14px;
}

/* Tarjeta del formulario */
.sm-cf7-card.wp-block-group {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: sticky;
  top: 2rem;
}

/* ── CF7 form styles ── */
.sm-cf7-card .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.sm-cf7-card .wpcf7-form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sm-cf7-card .wpcf7-form label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.sm-cf7-card .wpcf7-form input[type="text"],
.sm-cf7-card .wpcf7-form input[type="email"],
.sm-cf7-card .wpcf7-form input[type="tel"],
.sm-cf7-card .wpcf7-form textarea {
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--wp--preset--color--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.sm-cf7-card .wpcf7-form input::placeholder,
.sm-cf7-card .wpcf7-form textarea::placeholder {
  color: var(--wp--preset--color--muted);
}
.sm-cf7-card .wpcf7-form input:focus,
.sm-cf7-card .wpcf7-form textarea:focus {
  border-color: var(--wp--preset--color--amber);
}
.sm-cf7-card .wpcf7-form textarea {
  min-height: 130px;
}
.sm-cf7-card .wpcf7-form input[type="submit"] {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  background: var(--wp--preset--color--terracota);
  color: var(--wp--preset--color--ink);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: auto;
}
.sm-cf7-card .wpcf7-form input[type="submit"]:hover {
  background: var(--wp--preset--color--terracota-light);
  transform: translateY(-1px);
}

/* Mensajes de validación y respuesta */
.sm-cf7-card .wpcf7-not-valid-tip {
  font-size: 0.7rem;
  color: #c0392b;
  margin-top: 0.2rem;
}
.sm-cf7-card .wpcf7-response-output {
  font-size: 0.8rem;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border: 1px solid var(--wp--preset--color--subtle);
  color: var(--wp--preset--color--muted);
}
.sm-cf7-card .wpcf7-response-output.wpcf7-mail-sent-ok {
  border-color: rgba(196, 154, 60, 0.4);
  background: rgba(196, 154, 60, 0.06);
  color: var(--wp--preset--color--ink);
}
.sm-cf7-card .wpcf7-response-output.wpcf7-validation-errors,
.sm-cf7-card .wpcf7-response-output.wpcf7-mail-sent-ng {
  border-color: rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.04);
  color: #c0392b;
}

/* Responsive */
@media (max-width: 900px) {
  .sm-cp-cols.wp-block-columns {
    grid-template-columns: 1fr !important;
  }
  .sm-cf7-card.wp-block-group {
    position: static;
  }
  .sm-cp-photo.wp-block-image img {
    aspect-ratio: 16 / 9;
  }
}

/* ═══════════════════════════════════════════
   PAGINA DE CATEGORIA — cat-hero
═══════════════════════════════════════════ */
.cat-hero-section {
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}

.cat-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

.cat-hero-cols.wp-block-columns,
.cat-hero-cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.cat-hero-left.wp-block-column,
.cat-hero-right.wp-block-column,
.cat-hero-left,
.cat-hero-right {
  flex-basis: unset !important;
  width: unset !important;
}

.cat-eyebrow {
  font-size: 0.62rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber) !important;
  margin-bottom: 0.75rem !important;
}

.cat-page-title.wp-block-query-title,
.cat-page-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1.25rem;
}

.cat-page-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--terracota);
}

.cat-description.wp-block-term-description,
.cat-description.wp-block-term-description p,
.cat-description,
.cat-description p {
  font-size: 1rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.cat-description strong,
.cat-description p strong {
  font-weight: 600;
  color: var(--wp--preset--color--ink);
}

.cat-stats {
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--wp--preset--color--subtle);
}

.cat-stat {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}

.cat-stat-num {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.6rem !important;
  font-weight: 400;
  color: var(--wp--preset--color--ink) !important;
  margin: 0 !important;
  line-height: 1;
}

.cat-stat-label {
  font-size: 0.72rem !important;
  color: var(--wp--preset--color--subtle) !important;
  letter-spacing: 0.05em;
  margin: 0 !important;
}

/* ── Cat hero right ── */
.cat-hero-right {
  padding-top: 0.5rem;
}

.keywords-label {
  font-size: 0.6rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle) !important;
  margin-bottom: 1rem !important;
  display: block;
}

.keywords-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}


.keyword {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(92, 82, 72, 0.35);
  color: var(--wp--preset--color--muted);
  background: rgba(92, 82, 72, 0.12);
  cursor: default;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

/* Cuando .keyword es un <a> (tag cloud) */
a.keyword {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.cat-seo-note {
  font-size: 0.82rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
  padding: 1.25rem;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  border-left: 2px solid var(--wp--preset--color--sage);
  border-radius: 8px;
}

.cat-seo-note p {
  margin: 0 !important;
  font-size: 0.82rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
}

.cat-seo-note strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   PAGINA DE CATEGORIA — bloque guia
═══════════════════════════════════════════ */
.cat-guide-section {
  background: var(--wp--preset--color--background);
}

.cat-guide-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3rem);
}

.cat-guide-block {
  background: var(--wp--preset--color--surface);
  border: 1px solid rgba(196, 154, 60, 0.25);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cat-guide-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(196, 154, 60, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cat-guide-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-guide-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--wp--preset--color--amber);
}

.cat-guide-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--wp--preset--color--ink);
  margin-bottom: 0.6rem;
}

.cat-guide-title em {
  font-style: italic;
  color: var(--wp--preset--color--terracota);
}

.cat-guide-desc {
  font-size: 0.88rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 1.25rem;
}

.cat-guide-desc strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

.cat-guide-features {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cat-guide-feature {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-guide-feature::before {
  content: '\2713';
  color: var(--wp--preset--color--sage-light);
  font-size: 0.7rem;
  font-weight: 500;
}

.cat-guide-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.cat-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--background);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
}

.cat-guide-btn:hover {
  background: var(--wp--preset--color--amber-light);
  color: var(--wp--preset--color--background);
}

.cat-guide-note {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
}

.cat-guide-visual {
  width: 160px;
  height: 200px;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  padding: 1rem;
  overflow: hidden;
}

.cat-guide-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.cat-guide-visual-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--wp--preset--color--amber);
  position: absolute;
  bottom: 0.75rem;
  text-align: center;
}

/* ═══════════════════════════════════════════
   PAGINA DE CATEGORIA — artículo destacado
═══════════════════════════════════════════ */
.cat-featured-section {
  background: var(--wp--preset--color--background);
  border-top: 1px solid rgba(196, 154, 60, 0.15);
}

.cat-featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3rem);
}

.cat-featured-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-featured-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--wp--preset--color--amber);
}

.cat-featured-card {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 2.5rem;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.cat-featured-card:hover {
  border-color: rgba(196, 154, 60, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cat-featured-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.cat-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cat-featured-card:hover .cat-featured-img {
  transform: scale(1.03);
}

.cat-featured-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--wp--preset--color--surface-2);
}

.cat-featured-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--background);
  padding: 0.3em 0.7em;
  border-radius: 4px;
  font-weight: 600;
}

.cat-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 2.5rem 2rem 0;
}

.cat-featured-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--wp--preset--color--ink);
  margin: 0;
}

.cat-featured-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
}

.cat-featured-sep {
  opacity: 0.5;
}

.cat-featured-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--wp--preset--color--amber);
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  transition: gap 0.2s;
}

/* ═══════════════════════════════════════════
   PAGINA DE CATEGORIA — grid de posts
═══════════════════════════════════════════ */
/* ── Archive hero (taxonomy archives) ── */
.archive-hero {
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}

.archive-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

.archive-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.1 !important;
  margin: 0 0 0.75rem !important;
}

.archive-hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem) !important;
  color: var(--wp--preset--color--subtle) !important;
  max-width: 60ch;
  margin: 0 !important;
}

.cat-posts-section {
  background: var(--wp--preset--color--background);
}

.cat-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}

.cat-posts-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  padding-bottom: 1rem;
}

.cat-posts-header-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1rem !important;
  font-weight: 400;
  color: var(--wp--preset--color--muted) !important;
  margin: 0 !important;
}

.cat-posts-count {
  font-size: 0.72rem !important;
  color: var(--wp--preset--color--subtle) !important;
  letter-spacing: 0.05em;
  margin: 0 !important;
}

/* ── Paginacion ── */
.cat-posts-section .wp-block-query-pagination {
  border-top: 1px solid var(--wp--preset--color--subtle);
  padding-top: 2rem;
  gap: 0.4rem;
}

.cat-posts-section .wp-block-query-pagination-numbers a,
.cat-posts-section .wp-block-query-pagination-numbers span,
.cat-posts-section .wp-block-query-pagination-previous a,
.cat-posts-section .wp-block-query-pagination-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--wp--preset--color--subtle);
  background: transparent;
  color: var(--wp--preset--color--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cat-posts-section .wp-block-query-pagination-numbers a:hover,
.cat-posts-section .wp-block-query-pagination-previous a:hover,
.cat-posts-section .wp-block-query-pagination-next a:hover {
  border-color: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--amber);
}

.cat-posts-section .wp-block-query-pagination-numbers .current {
  background: var(--wp--preset--color--amber);
  border-color: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--background);
  font-weight: 600;
}

/* ── Responsive categoria ── */
@media (max-width: 768px) {
  .cat-hero-cols.wp-block-columns {
    grid-template-columns: 1fr !important;
  }

  .cat-guide-block {
    grid-template-columns: 1fr;
  }

  .cat-guide-visual {
    display: none;
  }

  .cat-featured-card {
    grid-template-columns: 1fr;
  }

  .cat-featured-img-wrap {
    aspect-ratio: 16 / 9;
    min-height: unset;
  }

  .cat-featured-body {
    padding: 1.5rem;
  }
}

/* ═══════════════════════════════════════════
   BLOG — ÚLTIMAS ENTRADAS (page-ultimas-entradas)
═══════════════════════════════════════════ */

/* ── Hero ── */
.diary-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem) clamp(1rem, 2vw, 1.5rem);
}

.diary-hero-cols.wp-block-columns {
  margin-bottom: 2rem;
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem) !important;
}
.diary-hero-cols .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.diary-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 1rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.diary-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--wp--preset--color--amber);
}

.diary-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.4rem, 6vw, 3.8rem) !important;
  font-weight: 400;
  line-height: 1.05;
  color: var(--wp--preset--color--ink);
  letter-spacing: -0.02em;
}
.diary-title em {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--wp--preset--color--terracota-light);
  letter-spacing: 0;
}

.diary-lead {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--wp--preset--color--muted);
}
.diary-lead strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

/* ── Filtros ── */
.diary-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(92, 82, 72, 0.4);
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--subtle);
  margin-right: 0.5rem;
}

.chip {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  border: 1px solid var(--wp--preset--color--subtle);
  background: transparent;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chip:hover {
  border-color: var(--wp--preset--color--muted);
  color: var(--wp--preset--color--ink);
}
.chip.active {
  border-color: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--amber);
  background: rgba(196, 154, 60, 0.08);
}
.chip .count {
  font-size: 0.65rem;
  color: var(--wp--preset--color--subtle);
  font-variant-numeric: tabular-nums;
}
.chip.active .count {
  color: var(--wp--preset--color--amber);
  opacity: 0.7;
}

.diary-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  transition: border-color 0.2s;
  min-width: 220px;
}
.diary-search-form:focus-within {
  border-color: var(--wp--preset--color--amber);
}
.diary-search-form svg {
  width: 14px;
  height: 14px;
  stroke: var(--wp--preset--color--subtle);
  flex-shrink: 0;
}
.diary-search-form input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8rem;
  color: var(--wp--preset--color--ink);
  width: 100%;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.diary-search-form input::placeholder {
  color: var(--wp--preset--color--subtle);
}

/* ── Sección destacado ── */
.diary-featured-section {
  padding: 0;
}

.diary-featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

/* ── Layout principal: listado + sidebar ── */
.diary-layout-section {
  padding: 0;
}

.diary-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

/* ── Columna principal ── */
.diary-main-col {
  min-width: 0;
}

.diary-section-header.wp-block-group {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}

.diary-section-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.05rem !important;
  font-weight: 400;
  color: var(--wp--preset--color--muted);
}

.diary-section-meta {
  font-size: 0.7rem;
  color: var(--wp--preset--color--subtle);
  letter-spacing: 0.05em;
  margin: 0 !important;
}

/* ── Paginación ── */
.diary-pagination.wp-block-query-pagination {
  border-top: 1px solid var(--wp--preset--color--subtle);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.diary-pagination .wp-block-query-pagination-numbers a,
.diary-pagination .wp-block-query-pagination-numbers span,
.diary-pagination .wp-block-query-pagination-previous a,
.diary-pagination .wp-block-query-pagination-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--wp--preset--color--subtle);
  background: transparent;
  color: var(--wp--preset--color--muted);
  font-size: 0.82rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.diary-pagination .wp-block-query-pagination-numbers a:hover,
.diary-pagination .wp-block-query-pagination-previous a:hover,
.diary-pagination .wp-block-query-pagination-next a:hover {
  border-color: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--amber);
}

.diary-pagination .wp-block-query-pagination-numbers .current {
  background: var(--wp--preset--color--amber);
  border-color: var(--wp--preset--color--amber);
  color: var(--wp--preset--color--background);
  font-weight: 600;
}

/* ── Sidebar ── */
.diary-sidebar {
  position: sticky;
  top: calc(64px + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-self: start;
  max-height: calc(100vh - 64px - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wp--preset--color--subtle) transparent;
  padding-right: 4px;
}
.diary-sidebar::-webkit-scrollbar { width: 4px; }
.diary-sidebar::-webkit-scrollbar-track { background: transparent; }
.diary-sidebar::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--subtle);
  border-radius: 2px;
}

.diary-sidebar--empty {
  position: static;
}

.diary-sidebar-hint {
  font-size: 0.8rem;
  color: var(--wp--preset--color--subtle);
  background: var(--wp--preset--color--surface);
  border: 1px dashed var(--wp--preset--color--subtle);
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.6;
}
.diary-sidebar-hint a {
  color: var(--wp--preset--color--amber);
}

/* Widgets genéricos dentro de la sidebar */
.diary-sidebar .widget {
  background: transparent;
}

.diary-sidebar .widget-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.diary-sidebar .widget-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--wp--preset--color--amber);
}

.diary-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.diary-sidebar .widget ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(92, 82, 72, 0.25);
  text-decoration: none;
  color: var(--wp--preset--color--muted);
  font-size: 0.85rem;
  transition: color 0.2s, padding-left 0.2s;
}
.diary-sidebar .widget ul li:last-child a {
  border-bottom: none;
}
.diary-sidebar .widget ul li a:hover {
  color: var(--wp--preset--color--ink);
  padding-left: 0.4rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .diary-layout {
    grid-template-columns: 1fr;
  }
  .diary-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .diary-hero-cols.wp-block-columns {
    flex-direction: column;
  }
  .diary-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .diary-search-form {
    min-width: auto;
    width: 100%;
  }
  .diary-main-col .wp-block-post-template.is-flex-container {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .diary-main-col .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════
   PREFERS-REDUCED-MOTION — obligatorio
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   SIDEBAR — side-block base (compartido por todos los widgets)
═══════════════════════════════════════════ */
.side-block {
  background: transparent;
  padding: 0;
}
.side-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}
.side-block-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.side-block-eyebrow .num {
  font-family: var(--wp--preset--font-family--display);
  font-style: italic;
  color: var(--wp--preset--color--subtle);
  font-size: 0.8rem;
  letter-spacing: 0;
}
.side-block-action {
  font-size: 0.66rem;
  color: var(--wp--preset--color--subtle);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.side-block-action:hover { color: var(--wp--preset--color--amber); }

/* ═══════════════════════════════════════════
   IMPRESCINDIBLES — lista numerada en sidebar
═══════════════════════════════════════════ */
.imprescindibles {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.imp-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(92, 82, 72, 0.25);
  text-decoration: none;
  color: inherit;
  align-items: start;
  transition: padding 0.2s;
}
.imp-item:last-child { border-bottom: none; }
.imp-item:hover { padding-left: 0.4rem; }
.imp-num {
  font-family: var(--wp--preset--font-family--display);
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--wp--preset--color--subtle);
  line-height: 1;
  min-width: 26px;
  transition: color 0.2s;
}
.imp-item:hover .imp-num { color: var(--wp--preset--color--amber); }
.imp-content { min-width: 0; }
.imp-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--ink);
  margin: 0 0 0.3rem;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}
.imp-title em {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  color: var(--wp--preset--color--terracota-light);
  font-weight: 400;
}
.imp-item:hover .imp-title { color: var(--wp--preset--color--amber); }
.imp-meta {
  font-size: 0.65rem;
  color: var(--wp--preset--color--subtle);
  letter-spacing: 0.04em;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.imp-meta .imp-cat {
  color: var(--wp--preset--color--muted);
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}


/* ════════════════════════════════════════
   SIDEBAR — Guía Gratuita
   Bloque: adigitalgo3/sidebar-guia
════════════════════════════════════════ */
.side-guide {
  background: linear-gradient(135deg, rgba(196,154,60,0.08), rgba(176,92,58,0.08) 70%);
  border: 1px solid rgba(196,154,60,0.2);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.side-guide--empty {
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
}

.side-guide-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
}

.side-guide-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--wp--preset--color--ink);
  margin: 0;
}

.side-guide-title em {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  color: var(--wp--preset--color--terracota-light);
  font-weight: 400;
}

.side-guide-desc {
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.side-guide-desc strong {
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

.side-guide-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.side-guide-feature {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--muted);
  background: rgba(92,82,72,0.25);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
}

.side-guide-cta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.side-guide-btn {
  flex-shrink: 0;
  background: var(--wp--preset--color--terracota);
  color: var(--wp--preset--color--ink);
  border: none;
  border-radius: 7px;
  padding: 0.6rem 1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.side-guide-btn:hover {
  background: var(--wp--preset--color--terracota-lt);
}

.side-guide-note {
  font-size: 0.66rem;
  color: var(--wp--preset--color--subtle);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   COMENTARIOS — formulario + lista
═══════════════════════════════════════════ */
.post-comments-section {
  border-top: 1px solid var(--wp--preset--color--subtle);
  padding-left: clamp(1.25rem, 5vw, 2.5rem) !important;
  padding-right: clamp(1.25rem, 5vw, 2.5rem) !important;
  box-sizing: border-box;
}

.comments-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Título de la lista de comentarios ── */
.comments-list-heading,
.comments-wrapper .wp-block-comments-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  margin: 0;
}

/* ── Lista de comentarios ── */
.comments-list ol,
.wp-block-comment-template ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(92, 82, 72, 0.2);
}

.comment-item:first-child {
  border-top: 1px solid rgba(92, 82, 72, 0.2);
}

/* ── Meta: autor + fecha ── */
.comment-meta-row {
  margin-bottom: 0.6rem;
}

.comment-author-name,
.wp-block-comment-author-name {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
}

.comment-author-name a,
.wp-block-comment-author-name a {
  color: inherit;
  text-decoration: none;
}

.comment-date,
.wp-block-comment-date {
  font-size: 0.72rem;
  color: var(--wp--preset--color--muted);
}

.comment-date a,
.wp-block-comment-date a {
  color: inherit;
  text-decoration: none;
}

/* ── Cuerpo del comentario ── */
.comment-body,
.wp-block-comment-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--wp--preset--color--muted);
  margin: 0 0 0.75rem;
}

.comment-body p,
.wp-block-comment-content p {
  margin: 0 0 0.5rem;
}

/* ── Enlace de respuesta ── */
.comment-reply-link a,
.wp-block-comment-reply-link a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wp--preset--color--amber);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.comment-reply-link a:hover,
.wp-block-comment-reply-link a:hover {
  color: var(--wp--preset--color--amber-light);
}

/* Comentarios anidados */
.wp-block-comment-template ol ol {
  margin-left: 1.5rem;
  border-left: 2px solid rgba(92, 82, 72, 0.25);
  padding-left: 1.25rem;
}

/* ── Paginación de comentarios ── */
.comments-nav .wp-block-comments-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
}

.wp-block-comments-pagination-previous a,
.wp-block-comments-pagination-next a {
  color: var(--wp--preset--color--amber);
  text-decoration: none;
  transition: color 0.2s;
}

.wp-block-comments-pagination-previous a:hover,
.wp-block-comments-pagination-next a:hover {
  color: var(--wp--preset--color--amber-light);
}

/* ── Formulario de comentario ── */
#respond {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#respond h3#reply-title,
#respond .comment-reply-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  margin: 0;
}

#respond .comment-reply-title small a {
  font-size: 0.75rem;
  font-family: var(--wp--preset--font-family--body);
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  margin-left: 0.75rem;
  font-weight: 400;
}

#respond .comment-reply-title small a:hover {
  color: var(--wp--preset--color--amber);
}

/* Formulario: layout grid */
#commentform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#commentform .comment-form-comment {
  grid-column: 1 / -1;
}

#commentform .comment-form-author,
#commentform .comment-form-email {
  grid-column: span 1;
}

#commentform .comment-form-url {
  display: none;
}

#commentform .form-submit {
  grid-column: 1 / -1;
}

/* Labels */
#commentform label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* Inputs y textarea */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.88rem;
  color: var(--wp--preset--color--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

#commentform input[type="text"]::placeholder,
#commentform input[type="email"]::placeholder,
#commentform textarea::placeholder {
  color: var(--wp--preset--color--subtle);
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
  border-color: var(--wp--preset--color--amber);
  box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.12);
}

#commentform textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Nota de privacidad / cookies */
#commentform .comment-notes,
#commentform .comment-form-cookies-consent {
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
  grid-column: 1 / -1;
  line-height: 1.5;
}

#commentform .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

#commentform .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 2px;
  width: auto;
  flex-shrink: 0;
  accent-color: var(--wp--preset--color--amber);
}

/* Botón enviar */
#commentform #submit,
#commentform .submit {
  background: var(--wp--preset--color--terracota);
  color: var(--wp--preset--color--ink);
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.75rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

#commentform #submit:hover,
#commentform .submit:hover {
  background: var(--wp--preset--color--terracota-light);
  transform: translateY(-1px);
}

/* Aviso "Tu comentario está pendiente de moderación" */
.comment-awaiting-moderation {
  font-size: 0.75rem;
  color: var(--wp--preset--color--amber);
  margin-top: 0.4rem;
}

/* Responsive: una columna en móvil */
@media (max-width: 560px) {
  #commentform {
    grid-template-columns: 1fr;
  }
  #commentform .comment-form-author,
  #commentform .comment-form-email {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════
   SINGLE POST — Inline text formatting
═══════════════════════════════════════════ */
.post-article .wp-block-post-content p em,
.post-article .wp-block-post-content li em {
  font-style: italic;
  color: var(--wp--preset--color--terracota-light);
}
.post-article .wp-block-post-content p a,
.post-article .wp-block-post-content li a {
  color: var(--wp--preset--color--amber);
  text-decoration: underline;
  text-decoration-color: rgba(196, 154, 60, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.post-article .wp-block-post-content p a:hover,
.post-article .wp-block-post-content li a:hover {
  color: var(--wp--preset--color--amber-light);
  text-decoration-color: var(--wp--preset--color--amber-light);
}
.post-article .wp-block-post-content mark {
  background: rgba(196, 154, 60, 0.18);
  color: var(--wp--preset--color--ink);
  padding: 0.05em 0.25em;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 rgba(196, 154, 60, 0.35);
}
.post-article .wp-block-post-content code {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.9em;
  color: var(--wp--preset--color--sage-light);
  background: rgba(107, 127, 106, 0.1);
  border: 1px solid rgba(107, 127, 106, 0.2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}
.post-article .wp-block-post-content kbd {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.78em;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  border-bottom-width: 2px;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.post-article .wp-block-post-content abbr {
  text-decoration: underline dotted var(--wp--preset--color--subtle);
  text-underline-offset: 3px;
  cursor: help;
}
.post-article .wp-block-post-content small {
  font-size: 0.82em;
  color: var(--wp--preset--color--subtle);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Quote (blockquote)
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-quote,
.post-article .wp-block-post-content blockquote {
  border-left: 2px solid var(--wp--preset--color--sage);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  background: rgba(107, 127, 106, 0.04);
  border-radius: 0 6px 6px 0;
}
.post-article .wp-block-post-content .wp-block-quote p,
.post-article .wp-block-post-content blockquote p {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  font-size: 1.15rem !important;
  color: var(--wp--preset--color--ink) !important;
  line-height: 1.55 !important;
  margin-bottom: 0.75rem !important;
}
.post-article .wp-block-post-content .wp-block-quote p:last-of-type { margin-bottom: 0 !important; }
.post-article .wp-block-post-content .wp-block-quote cite,
.post-article .wp-block-post-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--wp--preset--font-family--body);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.04em;
}
.post-article .wp-block-post-content .wp-block-quote cite::before,
.post-article .wp-block-post-content blockquote cite::before {
  content: '— ';
  color: var(--wp--preset--color--subtle);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Pullquote (actualizado)
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-pullquote {
  border-left: 2px solid var(--wp--preset--color--terracota);
  border-top: none;
  border-bottom: none;
  border-right: none;
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.5rem 0;
  background: transparent;
  text-align: left;
}
.post-article .wp-block-post-content .wp-block-pullquote blockquote p,
.post-article .wp-block-post-content .wp-block-pullquote p {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  font-size: 1.5rem !important;
  color: var(--wp--preset--color--ink) !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
  font-weight: 400;
}
.post-article .wp-block-post-content .wp-block-pullquote cite {
  font-family: var(--wp--preset--font-family--body);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--wp--preset--color--terracota-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Code block
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-code,
.post-article .wp-block-post-content pre.wp-block-code {
  background: #0D0B09;
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.82rem;
  color: var(--wp--preset--color--ink);
  line-height: 1.75;
  overflow-x: auto;
  margin: 2.5rem 0;
  position: relative;
}
.post-article .wp-block-post-content .wp-block-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--wp--preset--color--amber);
  border-radius: 10px 0 0 10px;
}
.post-article .wp-block-post-content .wp-block-code code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Preformatted
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-preformatted {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.85rem;
  color: var(--wp--preset--color--muted);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  white-space: pre;
  line-height: 1.7;
  overflow-x: auto;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Verse
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-verse {
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.85;
  white-space: pre-wrap;
  border-left: 1px solid var(--wp--preset--color--subtle);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2.5rem 0;
}
.post-article .wp-block-post-content .wp-block-verse em {
  color: var(--wp--preset--color--terracota-light);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Details / Disclosure
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-details {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 0;
  margin: 2.5rem 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.post-article .wp-block-post-content .wp-block-details:hover {
  border-color: rgba(196, 154, 60, 0.4);
}
.post-article .wp-block-post-content .wp-block-details summary {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  user-select: none;
}
.post-article .wp-block-post-content .wp-block-details summary::-webkit-details-marker { display: none; }
.post-article .wp-block-post-content .wp-block-details summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--wp--preset--color--amber);
  border-bottom: 1.5px solid var(--wp--preset--color--amber);
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.15rem;
}
.post-article .wp-block-post-content .wp-block-details[open] > summary::before {
  transform: rotate(45deg);
}
.post-article .wp-block-post-content .wp-block-details[open] > summary {
  border-bottom: 1px solid var(--wp--preset--color--subtle);
  color: var(--wp--preset--color--amber);
}
.post-article .wp-block-post-content .wp-block-details > *:not(summary) {
  padding: 1rem 1.25rem 1.25rem;
}
.post-article .wp-block-post-content .wp-block-details > p {
  color: var(--wp--preset--color--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Imagen
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-image {
  margin: 2.5rem 0;
}
.post-article .wp-block-post-content .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.post-article .wp-block-post-content .wp-block-image figcaption {
  margin-top: 0.75rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--wp--preset--color--subtle);
  line-height: 1.55;
  border-left: 1px solid var(--wp--preset--color--subtle);
  padding-left: 0.75rem;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Galería
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-gallery {
  margin: 2.5rem 0;
}
.post-article .wp-block-post-content .wp-block-gallery .wp-block-image img {
  border-radius: 6px;
  margin: 0;
}
.post-article .wp-block-post-content .wp-block-gallery figure {
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s;
}
.post-article .wp-block-post-content .wp-block-gallery figure:hover {
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Embed / Video
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-embed,
.post-article .wp-block-post-content .wp-block-video {
  margin: 2.5rem 0;
}
.post-article .wp-block-post-content .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  overflow: hidden;
}
.post-article .wp-block-post-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.post-article .wp-block-post-content .wp-block-video video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--wp--preset--color--subtle);
}
.post-article .wp-block-post-content .wp-block-embed figcaption,
.post-article .wp-block-post-content .wp-block-video figcaption {
  margin-top: 0.65rem;
  font-family: var(--wp--preset--font-family--editorial);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--wp--preset--color--subtle);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Audio
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-audio {
  margin: 2.5rem 0;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.post-article .wp-block-post-content .wp-block-audio audio {
  width: 100%;
  height: 40px;
  accent-color: var(--wp--preset--color--amber);
}
.post-article .wp-block-post-content .wp-block-audio figcaption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--wp--preset--color--subtle);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Archivo descargable
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-file {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-left: 3px solid var(--wp--preset--color--sage);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: border-color 0.2s, background 0.2s;
}
.post-article .wp-block-post-content .wp-block-file:hover {
  background: var(--wp--preset--color--surface-2);
  border-color: var(--wp--preset--color--amber);
  border-left-color: var(--wp--preset--color--sage);
}
.post-article .wp-block-post-content .wp-block-file a:not(.wp-block-file__button) {
  flex: 1;
  font-size: 0.92rem;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  font-weight: 400;
}
.post-article .wp-block-post-content .wp-block-file .wp-block-file__button {
  background: var(--wp--preset--color--terracota);
  color: #fff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.post-article .wp-block-post-content .wp-block-file .wp-block-file__button:hover {
  background: var(--wp--preset--color--terracota-light);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Botones
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-buttons {
  display: flex;
  gap: 0.75rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  align-items: center;
}
.post-article .wp-block-post-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}
/* Primary — terracota relleno */
.post-article .wp-block-post-content .wp-block-button .wp-block-button__link,
.post-article .wp-block-post-content .wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--wp--preset--color--terracota);
  color: #fff;
  border-color: var(--wp--preset--color--terracota);
}
.post-article .wp-block-post-content .wp-block-button .wp-block-button__link:hover,
.post-article .wp-block-post-content .wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: #fff;
  color: var(--wp--preset--color--terracota);
  border-color: #fff;
  transform: translateY(-1px);
}
/* Outline — borde ámbar */
.post-article .wp-block-post-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--amber);
  border-color: var(--wp--preset--color--amber);
}
.post-article .wp-block-post-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(196, 154, 60, 0.1);
  color: var(--wp--preset--color--amber-light);
  border-color: var(--wp--preset--color--amber-light);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   SINGLE POST — Columnas
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-columns {
  gap: 2rem;
  margin: 2.5rem 0;
}
.post-article .wp-block-post-content .wp-block-column > *:first-child { margin-top: 0; }
.post-article .wp-block-post-content .wp-block-column > *:last-child { margin-bottom: 0; }
.post-article .wp-block-post-content .wp-block-column p { font-size: 0.95rem; }
@media (max-width: 680px) {
  .post-article .wp-block-post-content .wp-block-columns {
    gap: 1.25rem;
  }
}

/* ═══════════════════════════════════════════
   SINGLE POST — Separador (variantes)
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-separator {
  border: none;
  margin: 3.5rem 0;
  height: 1px;
  background: var(--wp--preset--color--subtle);
}
.post-article .wp-block-post-content .wp-block-separator.is-style-wide {
  height: 1px;
  background: var(--wp--preset--color--subtle);
}
.post-article .wp-block-post-content .wp-block-separator.is-style-dots {
  background: none;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 1em;
  line-height: 1;
  color: var(--wp--preset--color--subtle);
  height: auto;
}
.post-article .wp-block-post-content .wp-block-separator.is-style-dots::after {
  content: '· · ·';
}

/* ═══════════════════════════════════════════
   SINGLE POST — Tabla
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-table {
  margin: 2.5rem 0;
  overflow-x: auto;
  display: block;
}
.post-article .wp-block-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--wp--preset--color--subtle);
}
/* Cabeceras — visibles, uppercase, diferenciadas del contenido */
.post-article .wp-block-post-content .wp-block-table th {
  text-align: left;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--wp--preset--color--subtle);
  background: transparent;
}
/* Celdas — todas igual, sin destacar primera columna */
.post-article .wp-block-post-content .wp-block-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(92, 82, 72, 0.2);
  color: var(--wp--preset--color--muted);
  font-weight: 300;
  vertical-align: top;
  line-height: 1.55;
}
.post-article .wp-block-post-content .wp-block-table td:first-child {
  color: var(--wp--preset--color--muted);
  font-weight: 300;
}
.post-article .wp-block-post-content .wp-block-table tr:last-child td {
  border-bottom: none;
}
.post-article .wp-block-post-content .wp-block-table tbody tr {
  transition: background 0.2s;
}
.post-article .wp-block-post-content .wp-block-table tbody tr:hover td {
  background: var(--wp--preset--color--surface);
}
.post-article .wp-block-post-content .wp-block-table figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--wp--preset--color--subtle);
  font-style: italic;
  text-align: center;
}
/* Franjas — color opaco del tema, texto visible */
.post-article .wp-block-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
  background: var(--wp--preset--color--surface-2);
}
.post-article .wp-block-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
  background: transparent;
}

/* ═══════════════════════════════════════════
   SINGLE POST — Group con estilo tarjeta/highlight
═══════════════════════════════════════════ */
.post-article .wp-block-post-content .wp-block-group.is-style-card,
.post-article .wp-block-post-content .wp-block-group.has-background {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}
.post-article .wp-block-post-content .wp-block-group.is-style-card > *:first-child { margin-top: 0; }
.post-article .wp-block-post-content .wp-block-group.is-style-card > *:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   BLOQUES PERSONALIZADOS DEL TEMA
   (adigitalgo3/stat, callout, cta)
═══════════════════════════════════════════ */

/* ── STAT — cifra destacada ── */
.adi-stat {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.adi-stat-num {
  font-family: var(--wp--preset--font-family--display);
  font-size: 2.6rem;
  font-weight: 900;
  font-style: italic;
  color: var(--wp--preset--color--amber);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  min-width: 4rem;
}
.adi-stat-body {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.92rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.65;
  padding-top: 0.2rem;
}
.adi-stat-body strong { color: var(--wp--preset--color--ink); font-weight: 500; }
.adi-stat-source {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--wp--preset--color--subtle);
  font-style: italic;
}
@media (max-width: 480px) {
  .adi-stat { flex-direction: column; gap: 0.75rem; }
  .adi-stat-num { font-size: 2rem; }
}

/* ── CALLOUT ── */
.adi-callout {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-radius: 10px;
  padding: 1.1rem 1.35rem 1.1rem 3.25rem;
  margin: 2.5rem 0;
  position: relative;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--wp--preset--color--muted);
}
.adi-callout-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.adi-callout p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.adi-callout strong { color: var(--wp--preset--color--ink); font-weight: 500; }
.adi-callout::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 1.2rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  font-size: 0.78rem;
}
/* Nota (info) — salvia */
.adi-callout.is-note { border-left: 3px solid var(--wp--preset--color--sage); }
.adi-callout.is-note .adi-callout-label { color: var(--wp--preset--color--sage-light); }
.adi-callout.is-note::before {
  content: 'i';
  background: rgba(107, 127, 106, 0.18);
  color: var(--wp--preset--color--sage-light);
  border: 1px solid rgba(107, 127, 106, 0.4);
}
/* Consejo (tip) — ámbar */
.adi-callout.is-tip { border-left: 3px solid var(--wp--preset--color--amber); }
.adi-callout.is-tip .adi-callout-label { color: var(--wp--preset--color--amber); }
.adi-callout.is-tip::before {
  content: '✦';
  background: rgba(196, 154, 60, 0.18);
  color: var(--wp--preset--color--amber);
  border: 1px solid rgba(196, 154, 60, 0.4);
  font-size: 0.7rem;
}
/* Aviso (warning) — terracota */
.adi-callout.is-warning { border-left: 3px solid var(--wp--preset--color--terracota); }
.adi-callout.is-warning .adi-callout-label { color: var(--wp--preset--color--terracota-light); }
.adi-callout.is-warning::before {
  content: '!';
  background: rgba(176, 92, 58, 0.18);
  color: var(--wp--preset--color--terracota-light);
  border: 1px solid rgba(176, 92, 58, 0.4);
}
/* Destacado (highlight) — púrpura */
.adi-callout.is-highlight { border-left: 3px solid #786EB4; }
.adi-callout.is-highlight .adi-callout-label { color: #A89ECC; }
.adi-callout.is-highlight::before {
  content: '"';
  background: rgba(120, 110, 180, 0.18);
  color: #A89ECC;
  border: 1px solid rgba(120, 110, 180, 0.4);
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  font-style: italic;
}

/* ── CTA INLINE ── */
.adi-cta {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--subtle);
  border-left: 3px solid var(--wp--preset--color--amber);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.adi-cta-content { flex: 1; min-width: 200px; }
.adi-cta-eyebrow {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--amber);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.adi-cta-text {
  font-size: 0.92rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.55;
  margin: 0;
}
.adi-cta-text strong { color: var(--wp--preset--color--ink); font-weight: 500; }
.adi-cta-btn {
  display: inline-block;
  background: var(--wp--preset--color--terracota);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.adi-cta-btn:hover {
  background: var(--wp--preset--color--terracota-light);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE — html.light-mode
   Redefine los custom properties de WP para invertir la paleta.
   Todos los componentes que usan var(--wp--preset--color--*)
   cambian automáticamente sin tocar su CSS individual.
═══════════════════════════════════════════════════════════════ */
html.light-mode {
  /* ── Fondos ── */
  --wp--preset--color--background:  #F7F3EE;
  --wp--preset--color--surface:     #FFFFFF;
  --wp--preset--color--surface-2:   #EEEBE4;

  /* ── Texto ── */
  --wp--preset--color--ink:         #1E1A16;
  --wp--preset--color--muted:       #6B6359;
  --wp--preset--color--subtle:      #C0BAB0;

  /* ── Acentos con mayor contraste sobre fondo claro ── */
  --wp--preset--color--amber:        #8B6914;
  --wp--preset--color--amber-light:  #A07A20;
  --wp--preset--color--terracota:    #943D1E;
  --wp--preset--color--terracota-light: #B5512C;
  /* sage mantiene el tono original del dark mode */
  --wp--preset--color--sage:         #6B7F6A;
  --wp--preset--color--sage-light:   #8EA08D;
}

/* ── Header glass — adaptar fondo translúcido ── */
html.light-mode .site-header {
  background: rgba(247, 243, 238, 0.85);
}
html.light-mode .site-header.scrolled {
  background: rgba(247, 243, 238, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

/* ── Nav desktop: hover con tinte oscuro en vez de blanco ── */
html.light-mode .nav-desktop .wp-block-navigation-item__content:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ── Dropdown submenu ── */
html.light-mode .nav-desktop .has-child .wp-block-navigation__submenu-container {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
html.light-mode .nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: rgba(139, 105, 20, 0.06);
}

/* ── Hamburger spans ── */
html.light-mode .nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ── Theme toggle en light mode ── */
html.light-mode .theme-toggle:hover {
  background: rgba(139, 105, 20, 0.06);
}

/* ── Menú móvil overlay ── */
html.light-mode .mobile-menu {
  background: rgba(247, 243, 238, 0.98);
}

/* ── Post cards ── */
html.light-mode .post-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
html.light-mode .post-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
html.light-mode .post-card.minimal:hover {
  background: var(--wp--preset--color--surface);
}

/* ── Dropdown nav en light: texto oscuro ── */
html.light-mode .nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: var(--wp--preset--color--muted);
}

/* ── Barra de lectura: mantener gradiente visible ── */
html.light-mode .reading-progress {
  opacity: 0.8;
}

/* ── Footer: override del fondo hardcodeado en el HTML ── */
html.light-mode .site-footer {
  background-color: var(--wp--preset--color--surface) !important;
}

/* ── Bloque newsletter: override de los inline styles del render.php ── */
html.light-mode .newsletter-section {
  background-color: var(--wp--preset--color--surface) !important;
}
html.light-mode .nl-form-card {
  background-color: var(--wp--preset--color--surface-2) !important;
}
html.light-mode .nl-eyebrow {
  color: var(--wp--preset--color--amber) !important;
}
html.light-mode .newsletter-section .wp-block-heading,
html.light-mode .nl-form-title {
  color: var(--wp--preset--color--ink) !important;
}
html.light-mode .nl-description,
html.light-mode .nl-promises li,
html.light-mode .nl-form-sub,
html.light-mode .nl-legal,
html.light-mode .nl-proof-text {
  color: var(--wp--preset--color--muted) !important;
}
html.light-mode .nl-input {
  color: var(--wp--preset--color--ink) !important;
  border-color: var(--wp--preset--color--subtle) !important;
  background: var(--wp--preset--color--surface) !important;
}
html.light-mode .nl-btn {
  background-color: var(--wp--preset--color--terracota) !important;
  color: #FFFFFF !important;
}
html.light-mode .nl-avatars span {
  color: var(--wp--preset--color--amber) !important;
  border-color: var(--wp--preset--color--subtle) !important;
}

/* ── Hero de la página newsletter: override de inline styles ── */
html.light-mode .nl-page-hero {
  background-color: var(--wp--preset--color--background) !important;
}
html.light-mode .nl-page-hero h1,
html.light-mode .nl-page-hero h2 {
  color: var(--wp--preset--color--ink) !important;
}
/* eyebrow (primer párrafo) → amber; descripción (último párrafo) → muted */
html.light-mode .nl-page-hero-inner > p:first-child {
  color: var(--wp--preset--color--amber) !important;
}
html.light-mode .nl-page-hero-inner > p:last-child {
  color: var(--wp--preset--color--muted) !important;
}

/* ── Botones terracota: texto blanco para contraste en fondo claro ── */
html.light-mode .wp-block-button__link.has-terracota-background-color,
html.light-mode .nav-cta .wp-block-button__link,
html.light-mode .nav-cta-wrap .wp-block-button__link,
html.light-mode .newsletter-form button {
  color: #FFFFFF !important;
}

/* ── Transición suave al cambiar de tema ── */
body {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* ═══════════════════════════════════════════
   MODAL — Suscripción guía gratuita
═══════════════════════════════════════════ */
.adg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.adg-modal.is-open {
  display: flex;
}
.adg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.adg-modal-card {
  position: relative;
  z-index: 1;
  background: var(--wp--preset--color--surface);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: adgModalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes adgModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.adg-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wp--preset--color--muted);
  padding: 0.25rem;
  line-height: 0;
  transition: color 0.15s ease;
}
.adg-modal-close:hover { color: var(--wp--preset--color--ink); }

.adg-modal-title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--wp--preset--color--ink);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.adg-modal-sub {
  font-size: 0.9375rem;
  color: var(--wp--preset--color--muted);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* Honeypot — oculto para humanos, visible para bots */
.adg-hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.adg-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.adg-modal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.adg-modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--wp--preset--color--surface-2);
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.adg-modal-input:focus {
  outline: none;
  border-color: var(--wp--preset--color--terracota);
}
.adg-modal-input::placeholder { color: var(--wp--preset--color--subtle); }

.adg-modal-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: none;
  background: var(--wp--preset--color--terracota);
  color: #fff;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  position: relative;
}
.adg-modal-submit:hover:not(:disabled) { opacity: 0.88; }
.adg-modal-submit:disabled { opacity: 0.6; cursor: wait; }
.adg-modal-submit-loading { display: none; }
.adg-modal-submit.is-loading .adg-modal-submit-text    { display: none; }
.adg-modal-submit.is-loading .adg-modal-submit-loading { display: inline; }

.adg-modal-message {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25rem;
  color: var(--wp--preset--color--terracota);
}
.adg-modal-nota {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--subtle);
  text-align: center;
}

/* Estado éxito */
.adg-modal-success {
  text-align: center;
  padding: 1rem 0;
}
.adg-modal-success svg { margin-bottom: 1rem; }
.adg-modal-success-text {
  font-size: 1rem;
  color: var(--wp--preset--color--ink);
  font-weight: 500;
}

/* Light mode */
html.light-mode .adg-modal-input {
  background: #fff;
  border-color: #e2e8f0;
}
html.light-mode .adg-modal-card {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}
