/* Layout principal */
.container {
    display: flex;
    min-height: calc(100vh - 60px - 80px);
    position: relative;
}

/* Sidebar izquierdo */
.sidebar {
    width: 380px;
    /* background: #fff;
    border-right: 1px solid #7dce2e; */
    overflow-y: auto;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065F46;
    margin-bottom: 0.5rem;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: #4a9a6a;
}

/* Buscador */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #7dce2e;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: #f0fdf4;
}

.search-input:focus {
    outline: none;
    border-color: #16A34A;
    background: #fff;
}

/* Categorías */
.category {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    cursor: pointer;
    user-select: none;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #065F46;
}

.category-icon {
    font-size: 0.8rem;
    color: #7dce2e;
    transition: transform 0.3s;
}

.category.collapsed .category-icon {
    transform: rotate(-90deg);
}

/* Preguntas */
/* Hace que los <a> se comporten como bloques */
.question-item {
    display: block;
    text-decoration: none;   /* Sin subrayado */
    color: inherit;          /* Usa el color original del texto */
}

/* Si tienes hover en los div, agrégalo aquí también */
.question-item:hover {
    cursor: pointer;
}

.questions-list {
    display: block;
    margin-left: 0.5rem;
}

.category.collapsed .questions-list {
    display: none;
}

.question-item {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.question-item:hover {
    background: rgba(125, 206, 46, 0.1);
    border-left-color: #7dce2e;
}

.question-item.active {
    background: rgba(22, 163, 74, 0.15);
    border-left-color: #16A34A;
}

.question-text {
    font-size: 0.9rem;
    color: #1a5f3f;
    font-weight: 500;
}

.question-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(125, 206, 46, 0.2);
    color: #065F46;
    font-size: 0.75rem;
    border-radius: 12px;
    margin-top: 0.25rem;
}

/* Panel derecho */
.content-panel {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    /*background: #fff; */
}

.content-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    color: #4a9a6a;
    text-align: center;
}

.content-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Contenido de respuesta */
.answer-content {
    max-width: 800px;
    margin: 0 auto;
}

.answer-header {
    margin-bottom: 2rem;
}

.answer-question {
    font-size: 1.75rem;
    font-weight: 700;
    color: #065F46;
    margin-bottom: 0.5rem;
}

.answer-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #4a9a6a;
}

/* Sección de diagnóstico */
.diagnosis-section {
    background: rgba(125, 206, 46, 0.1);
    border-left: 4px solid #7dce2e;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #065F46;
    margin-bottom: 1rem;
}

.diagnosis-list {
    list-style: none;
}

.diagnosis-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: #1a5f3f;
}

.diagnosis-list li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: #7dce2e;
    font-weight: bold;
}

/* Sección de respuesta precisa */
.answer-section {
    background: rgba(22, 163, 74, 0.1);
    border-left: 4px solid #16A34A;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

/* Sección de pasos de acción */
.action-section {
    background: rgba(74, 222, 128, 0.1);
    border-left: 4px solid #4ADE80;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.action-list {
    list-style: none;
}

.action-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid rgba(125, 206, 46, 0.3);
    position: relative;
    padding-left: 2.5rem;
    color: #1a5f3f;
}

.action-list li:before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    color: #16A34A;
    font-weight: bold;
}

/* Scrollbar personalizado */
.sidebar::-webkit-scrollbar,
.content-panel::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.content-panel::-webkit-scrollbar-track {
    background: #f0fdf4;
}

.sidebar::-webkit-scrollbar-thumb,
.content-panel::-webkit-scrollbar-thumb {
    background: #7dce2e;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.content-panel::-webkit-scrollbar-thumb:hover {
    background: #16A34A;
}

/* Footer NO sticky */
.footer {
    min-height: 80px;
    background: #065F46;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    color: #fff;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #7dce2e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #4ADE80;
}

.footer-right {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE STYLES – FULLSCREEN MENU (SLIDE LEFT) */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: block;
    }

    /* SIDEBAR FULLSCREEN */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;          
        height: 100vh;         
        background: #ffffff;
        overflow-y: auto;      
        z-index: 9999;         
        
        transform: translateX(-100%);
        transition: transform 0.35s ease;

        padding: 2rem 1.5rem;
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Overlay oscuro opcional */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(6, 95, 70, 0.4);
        z-index: 9998;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Ocultar cualquier top-menu viejo */
    .top-menu {
        display: none !important;
    }

    /* Ajustes del contenido */
    .content-panel {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {

    .answer-question {
        font-size: 1.25rem;
    }

    .content-empty-icon {
        font-size: 3rem;
    }

    .footer-link {
        font-size: 0.8rem;
    }

    .footer-right {
        font-size: 0.75rem;
    }
}




/* ==== HERO SECTION ==== */
.hero-section {
    background: #126a44;
    padding: 36px 40px;
    color: white;
}

.content-badge {
    display: inline-block;
    background: rgba(224, 242, 254, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    color: #e0f2fe;
}

.content-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: white;
}

.content-subtitle {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #e0f2fe;
}

.context-note {
    font-size: 15px;
    border-left: 3px solid #e0f2fe;
    padding-left: 16px;
    margin-top: 20px;
    color: #e0f2fe;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .hero-section {
        padding: 32px 24px;
    }

    .content-title {
        font-size: 28px;
    }

    .content-subtitle {
        font-size: 16px;
    }

    .context-note {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 24px 20px;
    }

    .content-title {
        font-size: 24px;
    }

    .content-subtitle {
        font-size: 15px;
    }

    .content-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}


/* ==== KEY INSIGHTS SECTION - TABS STYLE ==== */
.insights-section {
    padding: 32px 0px;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 20px;
}

.insights-tabs {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tabs-header {
    display: flex;
    background: #f8fafb;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.tab-btn:hover {
    background: #ffffff;
    color: #1f2937;
}

.tab-btn.active {
    background: #ffffff;
    border-bottom-color: #126a44;
    color: #126a44;
    font-weight: 600;
}

.tab-icon {
    font-size: 20px;
    line-height: 1;
}

.tab-title {
    font-size: 14px;
}

.tabs-content {
    padding: 24px 28px;
    min-height: 80px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .insights-section {
        padding: 24px 0;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: flex-start;
        padding: 14px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-bottom-color: transparent;
        border-left-color: #126a44;
    }

    .tabs-content {
        padding: 20px;
    }

    .tab-panel p {
        font-size: 14px;
    }
}



/* ==== CTA SECTION ==== */
.cta-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 32px 40px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cta-icon {
    font-size: 18px;
    line-height: 1;
}

.cta-primary {
    background: #126a44;
    color: white;
}

.cta-primary:hover {
    background: #0f5436;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 106, 68, 0.25);
}

.cta-secondary {
    background: white;
    color: #126a44;
    border: 2px solid #126a44;
}

.cta-secondary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .cta-section {
        padding: 24px 24px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        flex-direction: column;
        padding: 20px 20px;
        gap: 10px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .cta-icon {
        font-size: 16px;
    }
}
