/*
Theme Name: Noa Help Center
Theme URI: https://noa.team/
Author: Noa Team
Description: Tema personalizado estilo Intercom para Centro de Ayuda.
Version: 1.0
Text Domain: noa-help
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-primary);
    background-color: var(--bg-color, #f9f9f9);
    color: #333;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: 600;
    line-height: 1.3;
}

/* --- Header sobre fondo hero --- */
.site-header {
    position: relative;
    z-index: 10;
}

.noa-header-container,
.noa-hero-content,
.noa-collections-container,
.noa-container,
.noa-footer-content,
.noa-article-container,
.noa-container-breadcrumb,
.noa-article-container {
    max-width: 1040px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}
.noa-container-narrow {
    max-width: 1040px;
}
.noa-header-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-logo-link img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.noa-text-logo {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.noa-menu-list {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.noa-menu-list li a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.noa-menu-list li a:hover {
    opacity: 0.8;
}

/* --- Hero Content --- */
.noa-hero-content {
    width: 100%;
    margin: 0 auto;
}

.noa-hero-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
}


/* --- Grid de Colecciones --- */
.noa-collections-container {
    margin: -140px auto 60px auto;
    /* padding: 0 20px; */
    position: relative;
    z-index: 10;
}

.noa-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* --- Tarjetas de Colección --- */
.noa-collection-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 20px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.noa-collection-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--action-light);
}

.noa-collection-card:hover .noa-collection-title {
    color: var(--action-light);
}

.noa-collection-content-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.noa-collection-icon {
    flex-shrink: 0;
    color: var(--action-color);
}

.noa-collection-icon svg {
    width: 32px;
    height: 32px;
}

.noa-collection-info {
    flex: 1;
}

.noa-collection-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--action-color);
    transition: all 0.3s ease;
}

.noa-collection-meta {
    font-size: 14px;
    color: #6b7280;
}

/* --- Category Header --- */
.noa-category-header {
    background: white;
    padding: 40px 0;
    margin-top: 0;
}

.noa-breadcrumbs {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.noa-breadcrumbs a {
    color: var(--action-color);
    text-decoration: none;
}

.noa-breadcrumbs a:hover {
    color: var(--action-light);
    text-decoration: underline;
}

.noa-breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e0;
}

.noa-cat-main-icon {
    padding: 0 0 16px 0;
}

.noa-cat-main-title {
    font-size: 32px;
    margin: 0 0 12px 0;
    color: #1a202c;
    font-weight: 700;
}

.noa-cat-description {
    font-size: 18px;
    color: #4a5568;
    margin: 0;
}

/* ========== ESTILOS DE ARTÍCULOS ESTILO NOA ========== */

/* Contenedor de artículos cuando no hay subcategorías */
.noa-article-list-standalone {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 12px;
    margin-bottom: 20px;
}

/* Tarjeta de artículo individual */
.noa-article-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    border-radius: calc(var(--border-radius) - 4px);
}

.noa-article-title {
    font-size: 16px;
    font-weight: 400;
    color: #1a202c;
    margin: 0;
    transition: color 0.2s ease;
}

.noa-article-card:hover .noa-article-title {
    color: var(--action-light);
}

/* Flecha para artículos individuales */
.noa-article-card::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}

.noa-article-card:hover::after {
    transform: rotate(-90deg) translateX(2px);
}

/* Ocultar meta en artículos individuales */
.noa-article-card .noa-article-meta,
.noa-article-card .noa-avatar-small {
    display: none;
}

/* ========== ESTILOS DE SUBCATEGORÍAS ========== */

.noa-subcat-list {
    margin-top: 20px;
}

/* Tarjeta de subcategoría */
.noa-subcat-group {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    overflow: hidden;
}

/* Header de subcategoría */
.noa-subcat-title {
    padding: 12px 12px 24px;
    margin: 0;
}
.noa-subcat-title h2 {
    font-size: 22px;
    font-weight: 700;
}
.noa-subcat-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}
.noa-subcat-separator {
    border: none;
    border-top: 1px solid #e6e6e6;
     margin-bottom: 8px;
    margin-left: 12px;
    margin-right: 12px;        
}
.noa-subcat-title a:hover {
    color: var(--action-color);
}

/* Metadata de subcategoría */
.noa-subcat-meta {
    padding: 0 20px 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.noa-subcat-meta .noa-meta-text {
    font-size: 13px;
    color: #6b7280;
}

/* Lista de artículos dentro de subcategoría */
.noa-article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

/* Artículo dentro de subcategoría */
.noa-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.noa-article-item:last-child {
    border-bottom: none;
}

.noa-article-item:hover {
    background: rgba(142, 198, 65, 0.08);
}

.noa-article-item svg {
    display: none;
}

.noa-article-item span {
    font-size: 16px;
    font-weight: 400;
    color: #1a202c;
    transition: color 0.2s ease;
}

.noa-article-item:hover span {
    color: var(--action-color);
}

/* Flecha para artículos dentro de subcategoría */
.noa-article-item::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238ec641'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}

.noa-article-item:hover::after {
    transform: rotate(-90deg) translateX(2px);
}

/* --- Meta con punto separador --- */
.noa-meta-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
}

.noa-meta-dot {
    width: 4px;
    height: 4px;
    flex-shrink: 0;
    color: #cbd5e0;
}

/* --- Footer --- */
.noa-footer-content {
    margin: 0 auto;
    padding: 48px 20px;
    text-align: center;
}

.footer-logo .custom-logo-link img {
    max-height: 40px;
    filter: brightness(0) invert(1);
}

.noa-footer-nav {
    margin: 24px 0;
}

.noa-footer-menu-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.noa-footer-menu-list li a {
    color: #929BA5;
    text-decoration: none;
    font-size: 14px;
}

.noa-footer-menu-list li a:hover {
    color: #929BA5;
}

.footer-info p {
    font-size: 14px;
    margin: 0;
}

.site-footer {
    color: #929BA5;
    flex-shrink: 0;
}

/* --- Utility Containers --- */
.noa-container {
    margin: 0 auto;
    padding: 0 40px;
}
/* --- Footer siempre abajo --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.noa-site-content {
    flex: 1 0 auto;
}

.noa-hero-wrapper {
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {

    .noa-header-container,
    .noa-hero-content,
    .noa-collections-container,
    .noa-container,
    .noa-footer-content,
    .noa-article-container,
    .noa-container-breadcrumb,
    .noa-article-container {

        padding-left: 20px;
        padding-right: 20px;
    }    

    .noa-collections-container {
        margin: -60px auto 60px auto;
    }    
    .noa-hero-title {
        font-size: 28px;
    }
    
    .noa-collections-grid {
        grid-template-columns: 1fr;
    }
    
    .noa-header-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .noa-menu-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        background-color: white;
    }
    
    .noa-footer-menu-list {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .noa-cat-main-title {
        font-size: 24px;
    }
    
    .noa-container {
        padding: 0 20px;
    }
    
    .noa-subcat-title {
        font-size: 16px;
        padding: 16px 16px 8px 16px;
    }
    
    .noa-subcat-meta {
        padding: 0 16px 12px 16px;
    }
    
    .noa-article-item {
        padding: 10px 16px;
    }
    
    .noa-article-item span,
    .noa-article-title {
        font-size: 14px;
    }
    
    .noa-article-card {
        padding: 10px 16px;
    }
}




/* ========== ESTILOS DE ARTÍCULO SINGLE ========== */

/* Layout del artículo */
/* .noa-article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px;
    display: flex;
    gap: 48px;
} */

/* Sidebar con TOC */
.noa-article-sidebar {
    width: 236px;
    flex-shrink: 0;
}

.noa-sticky-toc {
    position: sticky;
    top: 30px;
}

/* Tabla de Contenidos */
/* Estilos mejorados para el TOC activo */
.noa-toc-link {
    transition: all 0.2s ease;
    cursor: pointer;
}

.noa-toc-link.active {
    color: var(--action-color);
    border-left-color: var(--action-color);
    font-weight: 600;
}

/* Para subítems del TOC */
.noa-toc-link-sub.active {
    padding-left: 12px;
}

/* Animación suave para el scroll */
html {
    scroll-behavior: smooth;
}

/* Asegurar que los headings tengan espacio para el scroll */
.noa-entry-content h2,
.noa-entry-content h3,
.noa-entry-content h4 {
    scroll-margin-top: 100px;
}

/* Estilos para el TOC en escritorio */
.noa-sticky-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    overflow-x: hidden;
}

.noa-sticky-toc::-webkit-scrollbar {
    width: 4px;
}

.noa-sticky-toc::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.noa-sticky-toc::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.noa-sticky-toc::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Mejorar el hover del TOC */
.noa-toc-link:hover {
    color: var(--action-color);
}

/* Estilos responsivos mejorados */
@media (max-width: 992px) {
    .noa-article-sidebar {
        display: none;
    }
    .noa-entry-content .noa-toc {
        display: block !important;
    }    
    .noa-sticky-toc {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    
    .noa-toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .noa-toc-item {
        margin-bottom: 0;
    }
    
    .noa-toc-link {
        border-left: none;
        padding: 8px 16px;
        background: #f9fafb;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        font-size: 13px;
        font-weight: 500;
    }
    
    .noa-toc-link.active {
        color: white;
        border-color: var(--action-color);
        transform: none;
    }
    
    .noa-toc-link:hover {
        transform: none;
    }
    
    .noa-toc-sublist {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-left: 0 !important;
    }
}

/* Contenido principal */
.noa-entry-content {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #1a202c;
}

.noa-entry-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    padding-top: 20px;
    color: #1a202c;
}

.noa-entry-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.noa-entry-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #2d3748;
}

/* .noa-entry-content p {
    margin-bottom: 20px;
} */

.noa-entry-content ul, 
.noa-entry-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.noa-entry-content a {
    color: var(--action-color);
    text-decoration: underline;
}

.noa-entry-content a:hover {
    color: var(--action-light);
}

/* Header del artículo */

.noa-entry-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1a202c;
    line-height: 1.2;
}

.noa-entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.noa-entry-meta .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a202c;
}

.updated-date {
    font-size: 12px;
    color: #6b7280;
}

/* Feedback */
.noa-entry-footer {
    padding: 32px;
    background: #f2f2f2;
    border-radius: var(--border-radius);
    /* border-top: 1px solid #e5e7eb; */
}

.noa-feedback {
    text-align: center;
}

.noa-feedback p {
    font-size: 16px;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 16px;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-feedback {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-feedback:hover {
    background: #f9fafb;
    border-color: var(--action-light);
}


/* ========== ESTILOS DE ARTÍCULO SINGLE ACTUALIZADOS ========== */

/* Layout principal del artículo */
.noa-article-layout {
    background: white;
}

/* Wrapper del breadcrumb - Separado */
.noa-breadcrumb-wrapper {
    background: white;
    padding: 40px 0 20px 0;
}

.noa-container-breadcrumb {
    margin: 0 auto;
    padding: 0 40px;
}

/* Estilos del breadcrumb */
.noa-breadcrumbs {
    font-size: 14px;
    color: #6b7280;
}

.noa-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.noa-breadcrumbs a:hover {
    color: var(--action-color);
}

.noa-breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e0;
}

/* Contenedor con dos columnas */
.noa-article-container {
    margin: 0 auto;
    /* padding: 60px 40px; */
    display: flex;
    gap: 80px;
    background: white;
    position: relative;
}

/* Columna izquierda - Contenido principal */
.noa-entry-main {
    flex: 1;
    min-width: 0;
    max-width: 720px;
}

/* Header del artículo dentro de la columna izquierda */

.noa-entry-content .noa-toc {
    display: none;
}
.noa-entry-meta {
        margin-bottom: 35px;
}
.noa-entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.noa-entry-meta .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}

.updated-date {
    font-size: 13px;
    color: #6b7280;
}

/* Contenido principal */
.noa-entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #1a202c;
}

.noa-entry-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 48px 0 20px 0;
    padding-top: 20px;
    color: #1a202c;
    scroll-margin-top: 100px;
}

.noa-entry-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.noa-entry-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 16px 0;
    color: #2d3748;
    scroll-margin-top: 100px;
}

.noa-entry-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 12px 0;
    color: #2d3748;
    scroll-margin-top: 100px;
}
.noa-entry-content h2 {
    font-size: 20px;
    margin: 0 0 15px;
    font-weight: 600;
    line-height: 26px;
}
/* .noa-entry-content p {
    margin-bottom: 24px;
} */

.noa-entry-content hr,
.noa-entry-main hr {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: #e6e6e6;
    border: none;
    margin: 1em 0;
}
.noa-entry-content ul, 
.noa-entry-content ol {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-left: 16px;
}

.noa-entry-content li {
    margin-left: 15px;
    line-height: 1.53;
}

.noa-entry-content a {
    color: var(--action-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.noa-entry-content a:hover {
    border-bottom-color: var(--action-color);
}

.noa-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.noa-entry-content blockquote {
    border-left: 4px solid var(--action-color);
    padding-left: 20px;
    margin: 24px 0;
    color: #4a5568;
    font-style: italic;
}

.noa-entry-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Columna derecha - Sidebar con TOC */
.noa-article-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: relative;
}

.noa-sticky-toc {
    position: sticky;
    top: 100px;
}

/* Tabla de Contenidos */
.noa-toc {
    background: transparent;
    padding: 0;
}

.noa-toc-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.noa-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #f2f2f2;
}

.noa-toc-item {
    margin-bottom: 12px;
    margin-left: -2px;
}

.noa-toc-link {
    font-size: 14px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    line-height: 1.4;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.noa-toc-link:hover {
    color: var(--action-color);
}

/* Estilo activo para la sección actual */
.noa-toc-link.active {
    color: var(--action-color);
    border-left-color: var(--action-color);
    font-weight: 500;
}

/* Subítems del TOC */
.noa-toc-list ul {
    list-style: none;
    margin: 8px 0 0 16px;
    padding: 0;
}

.noa-toc-list ul .noa-toc-link {
    font-size: 13px;
    padding-left: 12px;
}


.noa-feedback {
    text-align: center;
}

.noa-feedback p {
    font-size: 16px;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 20px;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-feedback {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-feedback:hover {
    background: #f9fafb;
    border-color: var(--action-light);
    transform: translateY(-1px);
}

/* Artículos relacionados - Fuera del contenedor de dos columnas */
.noa-related-articles {
    /* background: #f9fafb; */
    /* border-top: 1px solid #e5e7eb; */
    padding: 20px 0;
    margin-top: 0;
}

.noa-container-narrow {
    /* max-width: 800px; */
    margin: 0 auto;
    /* padding: 0 20px; */
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 32px 0;
}

.related-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item span {
    font-size: 16px;
    color: #1a202c;
    transition: color 0.2s ease;
}

.related-item:hover span {
    color: var(--action-color);
}

.related-arrow {
    width: 18px;
    height: 18px;
    color: var(--action-color);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.related-item:hover .related-arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
    .noa-container-breadcrumb {
        padding: 0 20px;
    }
    
    .noa-article-container {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }
    
    .noa-entry-main {
        max-width: 100%;
    }
    
    .noa-article-sidebar {
        width: 100%;
        order: -1;
    }
    
    .noa-sticky-toc {
        position: static;
    }
    
    .noa-toc {
        background: #f9fafb;
        padding: 20px;
        /* border-radius: var(--border-radius); */
        /* border: 1px solid #e5e7eb; */
    }
    
    .noa-toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .noa-toc-item {
        margin-bottom: 0;
    }
    
    .noa-toc-link {
        border-left: none;
        padding: 6px 12px;
        background: white;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        font-size: 13px;
    }
    
    .noa-toc-link.active {
        color: white;
        border-color: var(--action-color);
    }
    
    .noa-toc-list ul {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .noa-entry-title {
        font-size: 36px;
    }
    
    .noa-entry-content {
        font-size: 16px;
    }
    
    .noa-entry-content h2 {
        font-size: 28px;
    }
    
    .noa-entry-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .noa-breadcrumb-wrapper {
        padding: 16px 0;
    }
    
    .noa-article-container {
        padding: 30px 20px;
    }
    
    .noa-entry-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .noa-container-narrow {
        padding: 0 20px;
    }
    
    .noa-entry-meta .avatar {
        width: 40px;
        height: 40px;
    }
}
/* ========== TOC DROPDOWN MÓVIL ========== */
/* Este archivo contiene los estilos específicos para el dropdown móvil */

/* Contenedor principal del dropdown */
.noa-toc-dropdown {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
    display: none; /* Oculto por defecto, se muestra solo en móvil */
}

/* Botón del dropdown */
.noa-toc-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius, 12px);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    text-align: left;
}

.noa-toc-dropdown-btn:hover {
    background: #fff;
    /* border-color: var(--action-light, #8ec641); */
    color: var(--action-light);
}

.noa-toc-dropdown-title {
    flex: 1;
}
/* Cuando está activo, cambiar el border radius del botón */
.noa-toc-dropdown.active .noa-toc-dropdown-btn {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.noa-toc-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.noa-toc-dropdown.active .noa-toc-dropdown-icon {
    transform: rotate(180deg);
}

/* Contenido del dropdown (inicialmente oculto) */
.noa-toc-dropdown-content {
    display: none;
    position: relative; /* Cambiado de absolute a relative */
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 var(--border-radius, 12px) var(--border-radius, 12px);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

/* Cuando el dropdown está activo, mostrar el contenido */
.noa-toc-dropdown.active .noa-toc-dropdown-content {
    display: block;
}
/* Ajustar el borde superior del contenido cuando está activo */
.noa-toc-dropdown.active .noa-toc-dropdown-content {
    border-top: none;
}
/* Lista del TOC */
.noa-toc-dropdown-list {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}
.noa-toc-dropdown-list li {
    margin: 0 !important;
    padding: 0 !important;
}
.noa-toc-dropdown-item {
    margin: 0;
    padding: 0;
}

.noa-toc-dropdown-link {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.noa-toc-dropdown-link:hover {
    color: var(--action-light);
}

/* Enlace activo (sección actual) */
.noa-toc-dropdown-link.active {
    color: var(--action-light);
    font-weight: 500;
}

/* Subítems (h3) */
.noa-toc-dropdown-item-sub .noa-toc-dropdown-link {
    padding-left: 32px;
    font-size: 13px;
}

/* Scrollbar personalizada */
.noa-toc-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.noa-toc-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.noa-toc-dropdown-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.noa-toc-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mostrar el dropdown solo en móvil */
@media (max-width: 992px) {
    .noa-toc-dropdown {
        display: block;
    }
    
    /* Ocultar el TOC sticky en móvil si existe */
    .noa-article-sidebar .noa-toc,
    .noa-sticky-toc {
        display: none;
    }
}

/* En pantallas grandes, ocultar el dropdown */
@media (min-width: 993px) {
    .noa-toc-dropdown {
        display: none !important;
    }
}

/* ========== MENÚ HAMBURGUESA ========== */

/* Botón hamburguesa - oculto en escritorio */
.noa-hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 1002; /* Aumentado para que esté por encima de todo */
    position: relative;
}

.noa-hamburger-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s ease;
}

/* Color del ícono según el modo del hero */
.full-hero .noa-hamburger-btn svg {
    fill: white;
}

.compact-hero .noa-hamburger-btn svg {
    fill: var(--action-color, #0f4d22);
}

.noa-hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Animación del ícono cuando el menú está abierto */
.noa-hamburger-btn.active svg {
    transform: rotate(90deg);
}

/* Menú de navegación en escritorio */
.noa-header-nav {
    display: flex;
    align-items: center;
}

.noa-menu-list {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.noa-menu-list li a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Estilos para móvil */
@media (max-width: 768px) {
    .noa-header-container {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        position: relative;
    }
    
    .noa-logo-area {
        flex-shrink: 0;
    }
    
    /* Mostrar botón hamburguesa */
    .noa-hamburger-btn {
        display: block;
    }
    
    /* Menú oculto por defecto en móvil */
    .noa-header-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        background: white;
        border-radius: var(--border-radius, 12px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    /* Menú visible cuando está activo */
    .noa-header-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .noa-menu-list {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        width: 100%;
    }
    
    .noa-menu-list li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .noa-menu-list li:last-child {
        border-bottom: none;
    }
    
    .noa-menu-list li a {
        display: block;
        padding: 14px 20px;
        font-size: 16px;
        color: #334155 !important;
        white-space: normal;
        transition: all 0.2s ease;
    }
    
    .noa-menu-list li a:hover {
        background: #f8fafc;
        color: var(--action-light, #8ec641) !important;
        padding-left: 24px;
    }
    
    /* Ajustar colores en modo compacto para móvil */
    .compact-hero .noa-header-nav .noa-menu-list li a {
        color: #334155 !important;
    }
    
    .full-hero .noa-header-nav {
        background: white;
    }
    
    .full-hero .noa-header-nav .noa-menu-list li a {
        color: #334155 !important;
    }
    
    .full-hero .noa-header-nav .noa-menu-list li a:hover {
        color: var(--action-light, #8ec641) !important;
    }
    
    /* Ajuste para cuando el hero es compacto y el menú está abierto */
    .compact-hero .noa-header-nav {
        top: calc(100% + 8px);
    }
}

/* Ajuste para tablets medianas (entre 769px y 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .noa-hamburger-btn {
        display: block;
    }
    
    .noa-header-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        background: white;
        border-radius: var(--border-radius, 12px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .noa-header-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .noa-menu-list {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }
    
    .noa-menu-list li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .noa-menu-list li:last-child {
        border-bottom: none;
    }
    
    .noa-menu-list li a {
        display: block;
        padding: 14px 20px;
        color: #334155 !important;
    }
    
    .noa-menu-list li a:hover {
        background: #f8fafc;
        color: var(--action-light, #8ec641) !important;
        padding-left: 24px;
    }
    
    .full-hero .noa-header-nav .noa-menu-list li a,
    .compact-hero .noa-header-nav .noa-menu-list li a {
        color: #334155 !important;
    }
}

/* Mejora de animación para el menú móvil */
@media (max-width: 992px) {
    .noa-header-nav {
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        transform-origin: top center;
    }
    
    .noa-header-nav.active {
        transform: translateY(0) scale(1);
    }
    
    /* Overlay opcional para cuando el menú está abierto */
    .noa-header-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}