/* ==========================================================================
   NEUROCLASS - CENTRO DE AYUDA (DESIGN SYSTEM & STYLES)
   ========================================================================== */

/* 0. OCULTAR BARRA DE TÍTULO TEMA GILLION EN CENTRO DE AYUDA */
body.post-type-archive-help_article .sh-titlebar,
body.tax-help_category .sh-titlebar,
body.single-help_article .sh-titlebar,
body.archive.post-type-archive-help_article .sh-titlebar {
    display: none !important;
}

/* 1. RESET & BASE NAMESPACING */
.nc-help-center,
.nc-help-center * {
    box-sizing: border-box;
}

.nc-help-center {
    font-family: 'Geomanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #000000;
    background-color: #FFFFFF;
    max-width: 1186px;
    margin: 0 auto;
    padding: 0;
    line-height: 1;
}

.nc-help-center a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.nc-help-center a:hover {
    color: #000000;
}

.nc-hc-divider {
    border: none;
    border-top: 1.5px solid #DCDCDC;
    margin: 0;
    width: 100%;
}

/* 2. BUSCADOR REUTILIZABLE */
.nc-hc-search-form {
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    height: 48px;
    background: #F0F0F0;
    border-radius: 10px;
    border: none;
    width: 100%;
    transition: box-shadow 0.2s ease;
}

.nc-hc-search-form:focus-within {
    box-shadow: 0 0 0 2px #1184DA;
}

.nc-hc-search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.nc-hc-search-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.nc-hc-search-input {
    border: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    background: transparent;
    font-family: 'Geomanist', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
    height: 100%;
}

.nc-hc-search-input::placeholder {
    color: #868686;
    font-style: normal !important;
}

/* 3. HOME PAGE - HERO */
.nc-hc-hero {
    padding: 48px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nc-hc-hero h1 {
    font-family: 'Geomanist', sans-serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 42px;
    margin: 0;
    color: #000000;
}

/* 4. HOME PAGE - CATEGORÍAS */
.nc-hc-categories {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nc-hc-categories h2 {
    font-family: 'Geomanist', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
    color: #000000;
}

.nc-hc-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
}

.nc-hc-cat-card {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-hc-cat-card h3 {
    font-family: 'Geomanist', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 26px;
    margin: 0;
}

.nc-hc-cat-card h3 a {
    text-decoration: underline;
    color: #000000;
}

.nc-hc-cat-card h3 a:hover {
    color: #1184DA;
}

.nc-hc-cat-card p {
    font-family: 'Geomanist', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    color: #000000;
}

/* 5. HOME PAGE - PREGUNTAS FRECUENTES (FAQS) */
.nc-hc-faqs {
    padding: 48px 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nc-hc-faqs h2 {
    font-family: 'Geomanist', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
    color: #000000;
}

.nc-hc-faqs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 53px;
    align-items: start;
}

.nc-hc-faq-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    text-decoration: none !important;
    color: inherit;
}

.nc-hc-faq-card:hover {
    transform: none !important;
}

.nc-hc-faq-card-img {
    width: 100%;
    aspect-ratio: 250 / 180;
    border-radius: 10px;
    border: none !important;
    overflow: hidden;
    background: transparent !important;
}

.nc-hc-faq-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nc-hc-faq-card h3 {
    font-family: 'Geomanist', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 22px;
    margin: 0;
    color: #000000;
}

.nc-hc-faq-card p {
    font-family: 'Geomanist', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #000000;
}

/* 6. HOME PAGE - NO ENCUENTRAS */
.nc-hc-not-found {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nc-hc-not-found h2 {
    font-family: 'Geomanist', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
    color: #000000;
}

.nc-hc-not-found-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 24px;
}

.nc-hc-not-found-text {
    font-family: 'Geomanist', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #000000;
    flex: 1;
    min-width: 280px;
}

.nc-hc-not-found .nc-hc-search-form {
    flex: 1;
    min-width: 280px;
    max-width: 592px;
}

.nc-hc-whatsapp-container {
    margin-top: 16px;
}

.nc-hc-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #FFFFFF !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Geomanist', sans-serif;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.nc-hc-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.nc-hc-whatsapp-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 7. TOP BAR & BREADCRUMBS (PÁGINAS INTERNAS) */
.nc-hc-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 64px 0;
    gap: 24px;
    min-height: 48px;
}

.nc-hc-topbar .nc-hc-search-form {
    width: 580px;
    max-width: 580px;
    flex-shrink: 0;
}

.nc-hc-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
}

.nc-hc-breadcrumbs a {
    color: #1184DA;
    text-decoration: none;
    cursor: pointer;
}

.nc-hc-breadcrumbs a:hover {
    text-decoration: none !important;
    color: #1184DA !important;
    cursor: pointer;
}

.nc-hc-breadcrumbs .nc-hc-breadcrumb-sep {
    color: #000000;
}

.nc-hc-breadcrumbs .nc-hc-breadcrumb-current {
    color: #000000;
    font-weight: 400 !important;
}

/* 8. LAYOUT SIDEBAR + CONTENIDO */
.nc-hc-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding-bottom: 48px;
}

.nc-hc-sidebar {
    width: 258px;
    min-width: 258px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-hc-sidebar-item {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    opacity: 1;
    padding: 0 1px;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    background: transparent;
}

.nc-hc-sidebar-item:not(.active):hover,
.nc-hc-sidebar-sub a:not(.active):hover,
.nc-hc-sidebar-articles a:not(.active):hover {
    background: transparent !important;
    opacity: 1 !important;
    color: #000000 !important;
    border-bottom: 2px solid #1184DA !important;
}

.nc-hc-sidebar-item.active,
.nc-hc-sidebar-sub a.active,
.nc-hc-sidebar-articles a.active {
    background: #DCDCDC !important;
    border-radius: 0px !important;
    padding: 6px 1px !important;
    opacity: 1 !important;
    color: #000000 !important;
    border-bottom: none !important;
}

.nc-hc-sidebar-sub {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nc-hc-sidebar-sub a {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    opacity: 1;
    text-decoration: none !important;
    display: block;
    padding: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.nc-hc-sidebar-articles {
    padding-left: 0;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.nc-hc-sidebar-articles a {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    opacity: 1;
    text-decoration: none !important;
    display: block;
    padding: 4px 0;
    line-height: 1.3;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

/* 9. CONTENIDO DE CATEGORÍA */
.nc-hc-category-content {
    flex: 1;
    min-width: 0;
}

.nc-hc-category-content > h2 {
    font-family: 'Geomanist', sans-serif;
    font-size: 32px;
    font-weight: 450;
    line-height: 32px;
    margin: 0 0 12px 0;
    color: #000000;
}

.nc-hc-category-desc {
    font-family: 'Geomanist', sans-serif;
    font-size: 16px;
    font-weight: 300 !important;
    line-height: 1.4;
    margin: 0 0 24px 0;
    color: #000000;
}

.nc-hc-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
}

.nc-hc-subcat-section {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nc-hc-subcat-section h3 {
    font-family: 'Geomanist', sans-serif;
    font-size: 26px;
    font-weight: 450;
    line-height: 26px;
    margin: 0;
    color: #000000;
}

.nc-hc-subcat-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-hc-subcat-articles a {
    font-family: 'Geomanist', sans-serif;
    font-size: 18px;
    font-weight: 400 !important;
    color: #000000;
    text-decoration: none !important;
    line-height: 1.3;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.nc-hc-subcat-articles a:hover {
    color: #000000 !important;
    text-decoration: none !important;
    border-bottom: 2px solid #1184DA !important;
}

/* 10. CONTENIDO DE ARTÍCULO */
.nc-hc-article-content {
    flex: 1;
    min-width: 0;
}

.nc-hc-article-content h1 {
    font-family: 'Geomanist', sans-serif;
    font-size: 26px;
    font-weight: 450;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: #000000;
}

.nc-hc-article-body {
    font-family: 'Geomanist', sans-serif;
    font-size: 16px;
    font-weight: 450;
    line-height: 1.6;
    color: #000000;
}

.nc-hc-article-body p {
    margin: 0 0 16px 0;
}

.nc-hc-article-body h2 {
    font-size: 22px;
    font-weight: 450;
    line-height: 1.3;
    margin: 24px 0 12px 0;
}

.nc-hc-article-body h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    margin: 20px 0 10px 0;
}

.nc-hc-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* 13. RESULTADOS DE BÚSQUEDA */
.nc-hc-search-results {
    padding: 24px 0;
}

.nc-hc-search-results h2 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 24px 0;
}

.nc-hc-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nc-hc-search-result-item {
    padding-bottom: 24px;
    border-bottom: 1px solid #DCDCDC;
}

.nc-hc-search-result-item h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.nc-hc-search-result-item h3 a {
    color: #1184DA;
    text-decoration: none;
}

.nc-hc-search-result-item h3 a:hover {
    text-decoration: underline;
}

.nc-hc-search-result-item p {
    font-size: 16px;
    color: #555555;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.nc-hc-search-result-category {
    font-size: 13px;
    color: #868686;
    font-weight: 400;
}

.nc-hc-no-results {
    font-size: 18px;
    color: #868686;
    padding: 40px 0;
    text-align: center;
}

/* 14. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .nc-help-center {
        padding: 0 32px;
    }
    .nc-hc-topbar .nc-hc-search-form {
        width: 400px;
    }
    .nc-hc-layout {
        gap: 32px;
    }
    .nc-hc-faqs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .nc-hc-sidebar {
        width: 220px;
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .nc-help-center {
        padding: 0 24px;
    }
    .nc-hc-hero h1 {
        font-size: 32px;
        line-height: 32px;
    }
    .nc-hc-categories h2,
    .nc-hc-faqs h2,
    .nc-hc-not-found h2 {
        font-size: 26px;
        line-height: 26px;
    }
    .nc-hc-categories-grid {
        grid-template-columns: 1fr;
    }
    .nc-hc-faqs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .nc-hc-layout {
        flex-direction: column;
    }
    .nc-hc-sidebar {
        width: 100%;
        min-width: 100%;
        order: -1;
        border-bottom: 1.5px solid #DCDCDC;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .nc-hc-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .nc-hc-topbar .nc-hc-search-form {
        width: 100%;
        max-width: 100%;
    }
    .nc-hc-subcategories-grid {
        grid-template-columns: 1fr;
    }
    .nc-hc-not-found-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .nc-hc-not-found .nc-hc-search-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nc-help-center {
        padding: 0 16px;
    }
    .nc-hc-hero h1 {
        font-size: 28px;
        line-height: 28px;
    }
    .nc-hc-faqs-grid {
        grid-template-columns: 1fr;
    }
    .nc-hc-faq-card {
        max-width: 100%;
    }
    .nc-hc-cat-card h3 {
        font-size: 22px;
    }
    .nc-hc-cat-card p {
        font-size: 16px;
    }
    .nc-hc-category-content > h2 {
        font-size: 26px;
    }
    .nc-hc-subcat-section h3 {
        font-size: 22px;
    }
}

/* ==========================================================================
   15. AJUSTES FINALES Y OVERRIDES
   ========================================================================== */

/* Ocultar barra de título nativa del tema Gillion en el Centro de Ayuda */
body.post-type-archive-help_article .sh-titlebar,
body.tax-help_category .sh-titlebar,
body.single-help_article .sh-titlebar,
body.archive.post-type-archive-help_article .sh-titlebar {
    display: none !important;
}

/* Hero padding-top 48px */
.nc-help-center .nc-hc-hero {
    padding-top: 48px !important;
}

/* Buscador: sin bordes, sin margen inferior, sin padding-left y placeholder recto */
.nc-help-center .nc-hc-search-input {
    border: none !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.nc-help-center .nc-hc-search-input::placeholder {
    color: #868686;
    font-style: normal !important;
}

/* Desactivar elevación al hacer hover en tarjetas de FAQ */
.nc-help-center .nc-hc-faq-card:hover {
    transform: none !important;
}

.nc-help-center .nc-hc-faqs {
    padding: 48px 0 32px 0 !important;
}

.nc-help-center .nc-hc-not-found {
    padding: 60px 0 !important;
}

.nc-help-center .nc-hc-category-desc {
    font-weight: 300 !important;
}

.nc-help-center .nc-hc-subcat-articles a {
    font-weight: 400 !important;
}

.nc-help-center .nc-hc-sidebar-item.active,
.nc-help-center .nc-hc-sidebar-sub a.active,
.nc-help-center .nc-hc-sidebar-articles a.active {
    background: #DCDCDC !important;
    padding: 6px 1px !important;
    border-radius: 0px !important;
    border-bottom: none !important;
    color: #000000 !important;
}

.nc-help-center .nc-hc-sidebar-item:not(.active):hover,
.nc-help-center .nc-hc-sidebar-sub a:not(.active):hover,
.nc-help-center .nc-hc-sidebar-articles a:not(.active):hover {
    background: transparent !important;
    border-bottom: 2px solid #1184DA !important;
    color: #000000 !important;
}

.nc-help-center .nc-hc-breadcrumbs a {
    color: #1184DA !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.nc-help-center .nc-hc-breadcrumbs a:hover {
    color: #1184DA !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.nc-help-center .nc-hc-breadcrumbs .nc-hc-breadcrumb-current {
    font-weight: 400 !important;
}

/* Padding de resguardo para pantallas menores a 1220px */
@media (max-width: 1220px) {
    .nc-help-center {
        padding: 0 24px !important;
    }
}

/* Ajustes de margen/padding en móviles */
@media (max-width: 768px) {
    .nc-help-center {
        padding: 0 !important;
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .nc-help-center .nc-hc-topbar {
        padding: 24px 0 !important;
    }
}
