/* 
TOUCHED 2026-03-28 11:15 AM - Sync 1320px Container and Grid Layout
Theme Name: Hatch Co - Soy.Marketing Migración
Theme URI: https://soy.marketing/
Description: Tema nativo optimizado para alto rendimiento (Anti-Elementor).
Author: Hatch Co
Version: 1.1.0
Text Domain: sm-theme-hatchco
*/

/* Declaración del Sistema de Diseño UX (Colors) */
:root {
    /* 🟠 Brand Colors (Identity) */
    --c-brand-primary:   #FF5100; /* Pantone Orange 021 C */
    --c-brand-hover:     #E64900;
    
    /* ⚫ Typography & Contrast (Identity) */
    --c-text-heading:    #020303; /* Pantone Black 6 C */
    --c-text-body:       #383838; /* Pantone Neutral Black C */
    --c-text-muted:      #7D7D7D; /* Pantone Grey 877 C */

    /* ⚪ UI Backgrounds & Borders (Derivados UX) */
    --c-bg-surface:      #ffffff;
    --c-bg-subtle:       #F7F7F7;
    --c-border-light:    #E2E8F0;
    --c-border-medium:   #CBD5E1;
}

/* Declaración de las fuentes */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* Aplicar la fuente globalmente: Ritmo Vertical UX */
body {
  font-family: "Montserrat", sans-serif;
  font-size: 18px; /* Óptimo para lectura larga en revistas */
  line-height: 1.6; /* WCAG AA: Mejora de escaneo ocular */
  color: var(--c-text-body); 
  background-color: var(--c-bg-surface); 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   UX TIPOGRAFÍA: ESCALA MUSICAL (Perfect Fourth Ratio)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--c-text-heading);
  margin-top: 1.5em; /* Separación estricta de la sección anterior */
  margin-bottom: 0.5em; /* Acercamiento al párrafo que introduce (Gestalt: Proximidad) */
  font-weight: 800;
}

/* Resetear el primer título de un contenedor para que no empuje hacia abajo inutilmente */
h1:first-child, h2:first-child, h3:first-child, h4:first-child, p:first-child {
  margin-top: 0;
}

/* --- H1 (Titulares Hero) --- */
h1 {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* --- H2 (Sub-Títulos Principales de Párrafo) --- */
h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.h-post-content-inner h2, .entry-content h2 {
  border-left: 4px solid var(--c-brand-primary);
  padding-left: 16px;
}

/* --- H3 (Secciones Menores) --- */
h3 {
  font-size: clamp(22px, 2.5vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* --- H4 (Meta tags o Widgets) --- */
h4 {
  font-size: 18px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-brand-primary);
}

/* ==========================================================================
   UX LECTURA: PÁRRAFOS Y LISTAS (Spacing & Bullets)
   ========================================================================== */
p {
  margin-top: 0;
  margin-bottom: 1.5rem; /* Exactamente una línea y media de aire entre párrafos */
}

/* Listas con aire para que los puntos ("bullets") sean fáciles de leer y scannear. Sólo dentro del contenido. */
.h-post-content-inner ul, .h-post-content-inner ol,
.entry-content ul, .entry-content ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.h-post-content-inner li, .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Estilo avanzado para viñetas (bullets) */
.h-post-content-inner ul:not(.hatch-toc-list),
.entry-content ul:not(.hatch-toc-list) {
  list-style-type: none;
}

.h-post-content-inner ul:not(.hatch-toc-list) li,
.entry-content ul:not(.hatch-toc-list) li {
  position: relative;
}

.h-post-content-inner ul:not(.hatch-toc-list) li::before,
.entry-content ul:not(.hatch-toc-list) li::before {
  content: "■"; /* Cuadrado sutil y moderno */
  color: var(--c-brand-primary);
  font-size: 10px;
  position: absolute;
  left: -18px;
  top: 6px;
}

/* Enlaces in-text */
a {
  color: var(--c-brand-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--c-text-body);
  text-decoration: none;
}

/* ==========================================================================
   PREMIUM HEADER & NAVIGATION (Editorial Style)
   ========================================================================== */
.h-site-header {
    width: 100%;
    background-color: #fff;
    z-index: 2000;
    position: relative;
}

/* 1. Top Bar (Meta & Search) */
.h-top-bar {
    background-color: var(--c-text-heading) !important;
    color: #fff !important;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
}

.h-top-bar .h-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-top-left .h-tagline {
    opacity: 0.9;
    color: #fff !important;
    /* Reset H1 sizing when used as tagline for SEO */
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.h-header-search .search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding-left: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.h-header-search .search-field {
    background: transparent;
    border: none;
    color: #fff !important;
    font-size: 11px;
    padding: 4px 8px;
    outline: none;
    width: 150px;
}

.h-header-search .search-submit {
    background: transparent;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.h-header-search .search-submit img {
    width: 16px;
    height: 16px;
    filter: invert(1) brightness(2);
    display: block;
}

/* 2. Main Branding Area */
.h-main-header-wrapper {
    padding: 30px 0; /* Increased by 15px to 30px */
    text-align: center;
    background-color: #fff;
    /* Reserve space so the page doesn't jump while the logo loads */
    min-height: 160px; /* Reserved space for logo + padding to avoid CLS */
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-main-header-wrapper .h-container {
    width: 100%;
}

.h-branding {
    max-width: 240px; /* Increased 20% from 200px */
    margin: 0 auto 10px;
    min-height: 48px; /* Increased 20% from 40px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-branding .custom-logo-link img {
    max-width: 100%;
    height: auto;
    display: block;
}

.h-logo-fallback {
    font-size: 32px;
    font-weight: 900;
    color: var(--c-text-heading);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.h-logo-fallback .dot {
    color: var(--c-brand-primary);
}

/* 3. Navigation Row */
.h-navigation-row {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: #fff;
}

/* Mobile Bottom Nav Bar */
.h-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100% !important;
    background: var(--c-brand-primary) !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 3000;
    padding: 8px 0;
}

.h-mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    transition: all 0.3s ease;
}

.mobile-nav-item.active {
    color: #ffffff;
}

.mobile-nav-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-item .icon svg {
    width: 24px;
    height: 24px;
}

/* Responsive Logic */
@media (min-width: 769px) {
    .h-mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .h-top-bar {
        display: none !important;
    }
    .h-navigation-row {
        display: none !important;
    }
    .h-mobile-bottom-nav {
        display: block !important;
    }
    .h-main-header-wrapper {
        padding: 30px 0; /* Increased to 30px for consistency */
    }
    .h-branding {
        max-width: 200px !important;
    }
}

/* Sticky Header Transitions */
.h-site-header {
    transition: all 0.3s ease-in-out;
    width: 100%;
}

.h-is-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    background-color: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    z-index: 9999 !important;
}

/* Ocultar top bar en sticky */
.h-is-sticky .h-top-bar {
    display: none !important;
}

/* Convertir el main-header en una sola fila horizontal */
.h-is-sticky .h-main-header-wrapper {
    padding: 8px 0 !important;
    min-height: auto !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Contenedor sticky: fila, contenido right-aligned, max 1280px */
.h-is-sticky .h-main-header-wrapper .h-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    max-width: 1280px !important;
    gap: 24px !important;
    padding: 0 20px !important;
}

/* Nav en línea, a la derecha */
.h-is-sticky .h-navigation-row {
    display: flex !important;
    padding: 0 !important;
    border-top: none !important;
    background: transparent !important;
    flex-shrink: 1 !important;
    order: 1;
}

/* Logo compacto, a la derecha del nav */
.h-is-sticky .h-branding {
    max-width: 130px !important;
    margin: 0 !important;
    min-height: auto !important;
    order: 2;
    flex-shrink: 0;
}

/* Transiciones suaves para el efecto de minimizado */
.h-main-header-wrapper,
.h-branding,
.h-navigation-row,
.h-branding img {
    transition: padding 0.2s ease, max-width 0.2s ease, margin 0.2s ease;
}

@media (max-width: 768px) {
    .h-is-sticky .h-main-header-wrapper {
        padding: 8px 0;
    }
}

/* Info Line Icons Fix */
.info-line img {
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block !important;
    border-radius: 0 !important;
}

/* Spotify & News Container Fix */
.image-container img, .last-episode img, .episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container Utility */
.h-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Mobile container reduces padding */
@media (max-width: 640px) {
    .h-container {
        padding: 0 14px;
    }

    /* Main content padding bottom for bottom nav bar */
    .h-home-main {
        padding-bottom: 0;
    }
}

@media (max-width: 375px) {
    .h-container {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .h-top-bar .h-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }
    .h-top-bar-title {
        font-size: 14px;
        text-align: center;
    }
}

/* SVG Icon resizing */
.post-meta svg, 
.meta-item svg, 
.noticia-date svg, 
.h-home-featured-meta svg {
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
    display: inline-block !important;
}

/* Target the new span wrapper for SVGs */
.hatch-icon-svg {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}
.hatch-icon-svg svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor;
    display: block;
}

/* Specific scale for desktop Featured section */
@media (min-width: 769px) {
    .h-home-destacadas .entry-meta .hatch-icon-svg svg {
        width: 11px !important;
        height: 11px !important;
        flex-shrink: 0;
    }
    .h-home-destacadas .entry-meta,
    .opinion-columnistas-container .post-meta {
        font-size: 13px;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    .h-home-destacadas .entry-meta a,
    .h-home-destacadas .entry-meta span,
    .opinion-columnistas-container .post-meta a,
    .opinion-columnistas-container .post-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    .h-home-destacadas .entry-meta a > span,
    .opinion-columnistas-container .post-meta a > span {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px; /* Arbitrary max width to allow date to fit. Adjust if needed */
        display: inline-block;
        vertical-align: middle;
    }
    .h-home-destacadas .entry-meta span.sep,
    .opinion-columnistas-container .post-meta span.sep {
        opacity: 0.7;
        flex-shrink: 0;
    }
}

/* Breadcrumbs (Ported) */
.custom-breadcrumbs {
    margin: 15px 0;
    font-size: 13px; /* Slightly larger for readability */
    color: #555555; /* WCAG AA contrast */
    font-family: inherit;
}
.custom-breadcrumbs ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.custom-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    color: #555555; /* WCAG contrast padding */
}
.custom-breadcrumbs li a {
    color: #1a1a1a; /* WCAG dark contrast for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.custom-breadcrumbs li a:hover {
    color: var(--c-brand-primary);
}
.custom-breadcrumbs .separator {
    color: #718096; /* Darker grey separator */
    font-size: 13px;
    margin: 0 4px;
}
.custom-breadcrumbs .current {
    color: #444444; /* WCAG contrast active item */
    font-weight: 400;
}

/* ==========================================================================
   STANDARDIZED POST META (Unified Icon Author | Icon Date)
   ========================================================================== */
.hatch-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Forced single line */
    gap: 8px;
    font-size: 11px; /* Smaller editorial font for metadata */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 16px 0; /* Increased margin for PageSpeed touch targets */
    padding: 2px 0;
    width: 100%;
    overflow: hidden; /* Safety for layout */
}

.hatch-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    min-width: 0; /* Important for flexbox ellipsis */
}

/* Author Truncation Logic */
.hatch-post-meta .author-item {
    flex-shrink: 1; /* Allow author to shrink first */
    overflow: hidden;
}

.hatch-post-meta .author-item a {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    overflow: hidden;
    width: 100%;
    padding: 10px 0; /* Increased padding to expand hit area to ~44px */
}

.hatch-post-meta .author-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hatch-post-meta .author-item a:hover {
    color: var(--c-brand-primary);
}

/* Date visibility */
.hatch-post-meta .date-item {
    flex-shrink: 0; /* Keep date fully visible if possible */
    display: flex;
    align-items: center;
    gap: 4px;
}

.hatch-post-meta .meta-separator {
    color: currentColor;
    opacity: 0.4;
    font-size: 0.9em;
    flex-shrink: 0;
}

.hatch-post-meta .hatch-icon-svg svg {
    width: 12px !important;
    height: 12px !important;
    display: block;
}

/* Themes */
.hatch-meta-theme-white {
    color: #ffffff;
}
.hatch-meta-theme-black {
    color: var(--c-text-body);
}

/* ==========================================================================
   STANDARDIZED RADII & IMAGE UTILITIES
   ========================================================================== */
.h-br-8 { border-radius: 8px !important; }
.h-br-6 { border-radius: 6px !important; }
.h-br-4 { border-radius: 4px !important; }

.h-img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile adjustments (maintain single line) */
@media (max-width: 600px) {
    .hatch-post-meta {
        font-size: 10px;
        gap: 6px;
    }
    .hatch-post-meta .author-item {
        max-width: 130px; /* Force ellipsis earlier on small screens */
    }
}

/* ============================================================
   MOBILE DRAWER (OFF-CANVAS)
   ============================================================ */

.h-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.h-mobile-drawer.active {
    transform: translateX(0);
}

.h-drawer-header {
    padding: 10px 15px; /* Reduced padding for space optimization */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

/* Drawer Search in Header */
.drawer-search-header {
    flex: 1;
}

.drawer-search-header form {
    position: relative;
}

.drawer-search-header input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f9f9f9;
    height: 40px;
}

.drawer-search-header button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
}

.drawer-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--c-text-body);
    flex-shrink: 0;
}

.h-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Drawer Search */
.drawer-search form {
    position: relative;
    margin-bottom: 30px;
}

.drawer-search input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #f9f9f9;
}

.drawer-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    color: var(--c-text-muted);
}

/* Drawer Nav */
.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-menu > li {
    border-bottom: 1px solid #f5f5f5;
}

.drawer-menu > li > a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-menu li .arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.drawer-menu li.active > .submenu-trigger .arrow {
    transform: rotate(180deg);
}

/* Accordion Submenu */
.drawer-submenu {
    list-style: none;
    padding: 0 0 15px 15px;
    margin: 0;
    display: none; /* Hidden by default */
}

.has-drawer-submenu.active .drawer-submenu {
    display: block;
}

.drawer-submenu li a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: #555;
    text-decoration: none;
}

/* Drawer Footer */
.h-drawer-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.drawer-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.drawer-socials a {
    color: var(--c-text-body);
    transition: color 0.2s;
}

.drawer-socials a:hover {
    color: var(--c-brand-primary);
}

/* Backdrop */
.h-drawer-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.h-drawer-overlay-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Lock body scroll when drawer open */
body.drawer-open {
    overflow: hidden;
}

/* ==========================================================================
   SINGLE POST LAYOUT & HERO (Editorial Magazine Style)
   ========================================================================== */

/* 1. Breadcrumbs path above Hero */
.h-breadcrumbs-outer {
    background-color: #fcfcfc;
    border-bottom: 1px solid var(--c-border-light);
    padding: 10px 0;
}

.h-breadcrumbs-outer .custom-breadcrumbs {
    margin: 0;
}

/* 2. Hero Section */
.h-post-hero {
    position: relative;
    width: 100%;
    height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0;
}

.h-breadcrumbs-wrapper {
    background-color: var(--c-bg-subtle);
    padding: 15px 0;
    width: 100%;
}

.h-breadcrumbs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.h-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.h-post-hero-boxed {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: end;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.h-post-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom of hero */
}

.h-post-hero-content {
    display: flex;
    flex-direction: column;
    gap: 0; /* Tags and title managed via margin-bottom on tags */
}

.h-post-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 30px;
}

.h-post-hero-right .hatch-post-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0px; /* Closed — author and date read as one unit */
}

.h-post-hero-right .author-item .author-name {
    font-size: 18px;
    font-weight: 700;
}

.h-post-hero-right .author-item svg {
    width: 18px;
    height: 18px;
}

.h-post-hero-right .date-item {
    font-size: 14px;
    opacity: 0.80;
}

.h-post-hero-right .date-item svg {
    width: 14px;
    height: 14px;
}

.h-post-hero-right .meta-separator {
    display: none !important;
}

.h-hero-category-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.22); /* Translucent — less heavy */
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.35);
    margin-bottom: 20px; /* 20px gap between tags and title */
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.h-hero-category-tag:hover {
    background-color: var(--c-brand-primary);
    color: #fff;
    border-color: var(--c-brand-primary);
}

.h-post-hero-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0 !important; /* Override global h1 margin (72px) */
    margin-bottom: 20px;
    color: #fff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    letter-spacing: -0.03em;
}

.h-post-hero-meta {
    display: flex;
    align-items: center;
}

/* 3. Main Single Post Layout (Container with Sidebar) */
.h-single-layout {
    display: grid;
    grid-template-columns: 1.15fr 340px; /* Better proportion for 1280px total */
    gap: 90px; /* Increased for premium editorial "air" */
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (max-width: 1200px) {
    .h-single-layout {
        gap: 60px;
    }
}

@media (max-width: 1100px) {
    .h-single-layout {
        grid-template-columns: 1.1fr 310px;
        gap: 40px;
    }
}

@media (max-width: 980px) {
    .h-single-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 40px;
    }
    
    .h-single-sidebar {
        max-width: 500px;
    }
}

.h-post-content-inner {
    font-size: 19px;
    line-height: 1.75;
    color: #222;
    max-width: 800px; /* Reading focus optimization */
}

.h-post-content-inner p {
    margin-bottom: 1.6em;
    color: #333333; /* Accessibility contrast base */
}

/* ── Accessibility: Post Content Contrast (WCAG AA) ────────── */
.h-post-content-inner p a,
.h-post-content-inner li a,
a.ek-link {
    color: #c23b00; /* Darkened orange for 4.5:1 text ratio over white */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
}

.h-post-content-inner p a:hover,
.h-post-content-inner li a:hover,
a.ek-link:hover {
    color: #8c2b00;
}

/* ── Accessibility: High contrast Blockquotes ──────────────── */
.h-post-content-inner blockquote.wp-block-quote,
.entry-content blockquote.wp-block-quote {
    color: #333333;
    border-left: 4px solid var(--c-brand-primary, #FF5100);
    padding: 1.4em 1.8em;
    background-color: #fcfcfc;
    border-radius: 4px;
    margin: 2em 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.h-post-content-inner blockquote.wp-block-quote p,
.h-post-content-inner blockquote.wp-block-quote em,
.h-post-content-inner blockquote.wp-block-quote strong {
    color: #222222; /* Maximum contrast for quotes */
    font-size: 1.05em;
    line-height: 1.6;
}

/* ── FAQ / Details Block (Preguntas Frecuentes) ──────────────── */
.h-post-content-inner details.wp-block-details,
.entry-content details.wp-block-details {
    background-color: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.h-post-content-inner details.wp-block-details[open],
.entry-content details.wp-block-details[open] {
    background-color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.h-post-content-inner details.wp-block-details summary,
.entry-content details.wp-block-details summary {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none; /* remove default arrow */
    position: relative;
    padding-right: 24px;
    outline: none;
    line-height: 1.4;
}

/* Custom icon for accordion (Plus / Minus) */
.h-post-content-inner details.wp-block-details summary::-webkit-details-marker,
.entry-content details.wp-block-details summary::-webkit-details-marker {
    display: none; /* Hide default webkit arrow */
}

.h-post-content-inner details.wp-block-details summary::after,
.entry-content details.wp-block-details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    color: var(--c-brand-primary, #FF5100);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.h-post-content-inner details.wp-block-details[open] summary::after,
.entry-content details.wp-block-details[open] summary::after {
    content: '−'; /* proper minus sign */
    transform: translateY(-50%) rotate(180deg);
}

/* Accordion content spacing */
.h-post-content-inner details.wp-block-details > :not(summary),
.entry-content details.wp-block-details > :not(summary) {
    margin-top: 14px;
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Article Tables — Premium Editorial ─────────────────── */
.h-post-content-inner table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 2em 0;
    display: block; /* Enables horizontal scrolling */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border: 1px solid #1a1a1a !important;
}

/* Force unified borders on all cells overriding WordPress generic borders */
.h-post-content-inner table th,
.entry-content table th,
.h-post-content-inner table td,
.entry-content table td {
    border: 1px solid #1a1a1a !important;
}

/* ─── Head ───────────────────────────────────────────────── */
.h-post-content-inner thead,
.entry-content thead {
    background-color: rgba(255, 81, 0, 0.1); /* Light orange per user request */
}

.h-post-content-inner thead th,
.entry-content thead th {
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

/* ─── Body ───────────────────────────────────────────────── */
.h-post-content-inner tbody tr,
.entry-content tbody tr {
    transition: background-color 0.15s ease;
}

/* Removed border-bottom none to keep uniform grid */

.h-post-content-inner tbody td,
.entry-content tbody td {
    padding: 11px 16px;
    vertical-align: top;
    color: #3a3a3a;
    font-size: 13.5px;
}

/* First column: anchor/label — bolded & slightly darker */
.h-post-content-inner tbody td:first-child,
.entry-content tbody td:first-child {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Alternating rows */
.h-post-content-inner tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Hover: brand-tinted row */
.h-post-content-inner tbody tr:hover,
.entry-content tbody tr:hover {
    background-color: #fff6f3;
}

.h-post-content-inner tbody tr:hover td:first-child,
.entry-content tbody tr:hover td:first-child {
    border-left-color: var(--c-brand-primary, #FF5100);
}

/* ─── Fallback (WP inserts <td> or <th> in first <tr> without thead) ── */
.h-post-content-inner table tr:first-child th,
.entry-content table tr:first-child th,
.h-post-content-inner table tr:first-child td,
.entry-content table tr:first-child td {
    background-color: rgba(255, 81, 0, 0.1);
    color: #1a1a1a !important;
    font-size: 11px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    white-space: nowrap;
}

/* Removed border-left: none exception to keep uniform grid */
/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
    .h-post-content-inner table,
    .entry-content table {
        /* Base rules already define display: block and overflow-x */
    }

    .h-post-content-inner tbody td,
    .entry-content tbody td {
        font-size: 12.5px;
        padding: 9px 12px;
    }
    .h-post-content-inner thead th,
    .entry-content thead th {
        font-size: 10px;
        padding: 10px 12px;
    }
}

/* 4. Sidebar Styles */
.h-single-sidebar {
    position: relative; /* Changed from sticky */
}

/* Standard Section Title with Orange Vertical Bar */
.h-section-title-standard {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #FF5100;
    text-transform: uppercase;
    margin: 70px 0 30px 0; /* Increased for better section separation */
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.h-section-title-standard::before {
    content: '';
    display: inline-block;
    width: 4px; /* Refined to 4px as requested */
    height: 1.25em; /* Adjusted height for better vertical alignment */
    background-color: #FF5100;
    flex-shrink: 0;
}

.h-sidebar-widget {
    margin-bottom: 70px;
    padding-bottom: 10px;
}

.h-sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--c-brand-primary);
    margin-bottom: 25px;
    position: relative;
    padding-left: 12px;
    border-left: 4px solid var(--c-brand-primary);
    letter-spacing: 1px;
}

/* 5. Footer Components inside Single */
.h-post-separator {
    border: none;
    border-top: 2px solid var(--c-border-light);
    margin: 60px 0 40px;
}

/* Share Section */
.h-share-section {
    margin-bottom: 40px;
}

.h-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.h-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.h-share-btn svg {
    fill: currentColor;
}

.h-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff !important;
}

.h-share-facebook { background-color: #1877F2; }
.h-share-twitter { background-color: #000000; }
.h-share-linkedin { background-color: #0A66C2; }
.h-share-whatsapp { background-color: #25D366; }

.h-section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* 6. Mobile Adjustments */
@media (max-width: 900px) {
    .h-single-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .h-post-hero {
        min-height: 400px;
        padding: 50px 0;
    }
    
    .h-post-hero-boxed {
        grid-template-columns: 1fr; 
        align-items: flex-start;
        gap: 20px;
    }

    .h-post-hero-right {
        align-items: flex-start;
        padding-bottom: 0;
    }
    
    .h-post-hero-title {
        font-size: 32px;
    }
    
    .h-single-layout {
        padding-top: 30px;
        padding-bottom: 60px;
    }
    
    .h-post-content-inner {
        font-size: 17px;
    }
}
/* --- TOC UX/UI Redesign --- */
.hatch-toc {
    background-color: #fcfcfc;
    border: 1px solid var(--c-border-light);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.hatch-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--c-brand-primary);
    padding-bottom: 12px;
    margin-bottom: 12px; /* Tighten space under header */
    position: relative;
    width: 100%;
}

h3.hatch-toc-title {
    font-size: 16px; /* Slightly smaller */
    font-weight: 800;
    text-transform: uppercase;
    color: var(--c-text-heading);
    margin: 0;
    padding-right: 140px; /* Moves padding to title so the border underneath spans full width */
    flex: 1 1 auto;
}

.hatch-toc-toggle {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    margin-top: -24px !important; /* Adjusted for top border space minus padding bottom */
    background-color: var(--c-bg-subtle) !important;
    border: 1px solid var(--c-border-medium) !important;
    color: #475569 !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
}

.hatch-toc-toggle:hover {
    background-color: var(--c-border-light) !important;
    color: #0f172a !important;
}

.hatch-toc-toggle[aria-expanded="false"] .hatch-toc-icon {
    transform: rotate(180deg);
}

.hatch-toc-icon {
    transition: transform 0.3s ease;
}

ul.hatch-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease-out;
}

/* Ensure this overrides .h-post-content-inner li specificity */
.h-post-content-inner ul.hatch-toc-list li.hatch-toc-item,
ul.hatch-toc-list li.hatch-toc-item {
    margin-bottom: 0; 
    line-height: 1.3;
}

/* Add margin before new H2 sections in TOC to visibly group H3 bullets */
ul.hatch-toc-list li.hatch-toc-level-2 {
    margin-top: 14px;
}
ul.hatch-toc-list li.hatch-toc-level-2:first-child {
    margin-top: 0;
}

ul.hatch-toc-list li.hatch-toc-item a {
    color: var(--c-text-body);
    text-decoration: none;
    font-size: 14px; /* Reduced from 15px */
    display: block; 
    padding: 3px 0; /* Reduced from 6px */
    transition: color 0.2s ease, transform 0.2s ease;
}

.hatch-toc-item a:hover {
    color: var(--c-brand-primary);
    transform: translateX(4px);
}

/* Identación limpia sin '&nbsp;' según el nivel H2, H3, H4 */
.hatch-toc-level-2 a {
    font-weight: 600;
}
.hatch-toc-level-3 a {
    padding-left: 16px;
    font-size: 14px;
    color: #4a5568;
}
.hatch-toc-level-3 a:before {
    content: "•";
    color: var(--c-border-medium);
    margin-right: 8px;
}
.hatch-toc-level-4 a {
    padding-left: 32px;
    font-size: 13px;
    color: #64748b;
}
.hatch-toc-level-4 a:before {
    content: "–";
    color: var(--c-border-light);
    margin-right: 8px;
}

/* Ocultar texto para screen readers unicamente */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   GLOBAL: PARTNERS SECTION (Above Footer)
   ========================================================================== */
.h-section-partners {
    background-color: #C7C7C7;
    height: 100px;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.h-partners-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.h-partners-label {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.h-partners-logos {
    display: flex;
    align-items: center;
    gap: 40px;
}

.h-partners-logos img {
    max-width: 150px;
    height: auto;
    filter: brightness(0.9);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.h-partners-logos a:hover img {
    filter: brightness(1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .h-section-partners {
        height: auto;
        padding: 20px 0;
    }
    .h-partners-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .h-partners-logos {
        gap: 30px;
        justify-content: center;
    }
    .h-partners-logos img {
        max-width: 120px;
    }
}
