/* ===== Conocimiento Page Styles ===== */

.conocimiento-page {
    font-family: 'Inter', sans-serif;
    color: var(--text-color, #333);
    background-color: #f8fafc;
}

/* --- Hero Section --- */
.conocimiento-hero {
    background-color: #0b1120;
    /* Dark blue/black */
    color: #fff;
    padding: 120px 5% 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.conocimiento-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 75% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.conocimiento-hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-tag {
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.text-blue {
    color: #3b82f6;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

/* Search Bar */
.hero-search-container {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 15px;
}

.search-icon {
    color: #94a3b8;
    margin-left: 15px;
    font-size: 1.2rem;
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    outline: none;
    color: #333;
    border-radius: 8px;
    background: transparent;
}

.hero-search-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-search-btn:hover {
    background: #1d4ed8;
}

.hero-popular-searches {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    color: #94a3b8;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.search-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
}

/* Hero Graphic */
.conocimiento-hero-graphic {
    position: relative;
    width: 45%;
    height: 400px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.center-glowing-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float-logo 4s ease-in-out infinite;
}

.glow-cube {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
}

@keyframes float-logo {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -55%) scale(1.05);
    }
}

.floating-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.floating-card i {
    font-size: 1.2rem;
    color: #3b82f6;
}

.doc-card {
    top: 10%;
    left: 0%;
    transform: rotate(-5deg);
    animation: float 5s ease-in-out infinite;
}

.art-card {
    top: 5%;
    right: 20%;
    transform: rotate(10deg);
    animation: float 6s ease-in-out infinite 0.5s;
}

.guia-card {
    top: 30%;
    right: 0%;
    transform: rotate(5deg);
    animation: float 5s ease-in-out infinite 1s;
}

.tut-card {
    bottom: 10%;
    right: 10%;
    transform: rotate(-10deg);
    animation: float 7s ease-in-out infinite 1.5s;
}

.glos-card {
    bottom: 15%;
    left: 5%;
    transform: rotate(15deg);
    animation: float 5s ease-in-out infinite 2s;
}

.faq-card {
    top: 40%;
    left: -10%;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite 2.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(var(--angle, 0deg));
    }

    50% {
        transform: translateY(-15px) rotate(var(--angle, 0deg));
    }
}

.hero-curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: #f8fafc;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.15);
    z-index: 3;
}

/* --- Layout --- */
.conocimiento-main-layout {
    padding: 40px 5% 80px;
    background-color: #f8fafc;
}

.conocimiento-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Sidebar --- */
.conocimiento-sidebar {
    position: relative;
}

.sidebar-card-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    min-height: 780px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header i {
    font-size: 1.5rem;
    color: #1e293b;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.sidebar-btn:hover {
    background: #f1f5f9;
}

.sidebar-btn.active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    margin-right: 15px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.sidebar-btn.active .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-weight: 600;
    font-size: 1rem;
}

.sidebar-btn.active .btn-title {
    color: #fff;
}

.sidebar-btn:not(.active) .btn-title {
    color: #1e293b;
}

.btn-desc {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chevron {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.sidebar-btn.active .chevron {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-help-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: auto;
    text-align: left;
}

.sidebar-help-card h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

.sidebar-help-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-secondary-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s;
}

.btn-secondary-blue:hover {
    background: #dbeafe;
}

/* --- Main Content Area --- */
.content-card-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
    min-height: 780px;
}

.content-header {
    margin-bottom: 40px;
}

.section-tag {
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.content-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.content-desc {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 800px;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.feature-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #3b82f6;
    border-radius: 50%;
    font-size: 1.2rem;
}

.feature-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px 0;
}

.feature-text p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Dynamic Grid */
.dynamic-results-container {
    margin-bottom: 0;
}

/* Vista genérica temporal (categorías sin diseño propio aún) */
.category-view-container {
    min-height: 500px;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-placeholder {
    color: #94a3b8;
    font-size: 1rem;
}

/* ===== Vista: Artículos (y base para las demás categorías) ===== */
.cat-view {
    display: none;
}

.cat-view-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cat-view-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
}

.cat-view-desc {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 480px;
    line-height: 1.5;
    margin: 0;
}

.cat-view-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 280px;
    color: #94a3b8;
    height: fit-content;
}

.cat-view-search input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    background: transparent;
}

.cat-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-pill {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.filter-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.filter-pill.filter-more {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-results-count {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
}

.cat-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.85rem;
}

.cat-sort-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-family: inherit;
    color: #1e293b;
    font-size: 0.85rem;
}

.cat-view-toggle {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle-btn {
    border: none;
    background: #fff;
    padding: 7px 10px;
    color: #94a3b8;
    cursor: pointer;
}

.view-toggle-btn.active {
    background: #2563eb;
    color: #fff;
}

.article-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.article-card-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
}

.article-card-body {
    padding: 18px;
}

.article-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-card-body h3 {
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.35;
}

.article-card-body p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 15px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.article-card-meta .save-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Colores por categoría */
.bg-ia {
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
}

.bg-automatizacion {
    background: linear-gradient(135deg, #052e1a, #16a34a);
}

.bg-tutorial {
    background: linear-gradient(135deg, #1e0f2e, #7e22ce);
}

.bg-cloud {
    background: linear-gradient(135deg, #0c1e3e, #2563eb);
}

.bg-ciberseguridad {
    background: linear-gradient(135deg, #2e0f0f, #dc2626);
}

.bg-crm {
    background: linear-gradient(135deg, #2e1a05, #ea580c);
}

.tag-ia {
    color: #6366f1;
}

.tag-automatizacion {
    color: #16a34a;
}

.tag-tutorial {
    color: #9333ea;
}

.tag-cloud {
    color: #2563eb;
}

.tag-ciberseguridad {
    color: #dc2626;
}

.tag-crm {
    color: #ea580c;
}

.bg-desarrollo {
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
}

.bg-devops {
    background: linear-gradient(135deg, #2e1065, #7c3aed);
}

.bg-basedatos {
    background: linear-gradient(135deg, #1e1b4b, #6d28d9);
}

.bg-integraciones {
    background: linear-gradient(135deg, #2e1065, #7c3aed);
}

.tag-desarrollo {
    color: #4f46e5;
}

.tag-devops {
    color: #7c3aed;
}

.tag-basedatos {
    color: #6d28d9;
}

.tag-integraciones {
    color: #7c3aed;
}

/* ===== Vista: Academia ===== */
.academia-stats-row {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 150px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-icon.si-orange {
    background: #ffedd5;
    color: #ea580c;
}

.stat-icon.si-blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon.si-lightblue {
    background: #e0f2fe;
    color: #0284c7;
}

.stat-text h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0;
}

.stat-text p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

.article-card-img {
    position: relative;
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ea580c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.card-save-float {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}

.cbg-automatizacion {
    background: linear-gradient(135deg, #1e1b4b, #4338ca);
}

.cbg-desarrollo {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.cbg-ia {
    background: linear-gradient(135deg, #2e1065, #7c3aed);
}

.cbg-cloud {
    background: linear-gradient(135deg, #0c1e3e, #2563eb);
}

.cbg-datos {
    background: linear-gradient(135deg, #1e1b1b, #451a03);
}

.ctag-automatizacion {
    color: #ea580c;
}

.ctag-desarrollo {
    color: #4f46e5;
}

.ctag-ia {
    color: #9333ea;
}

.ctag-cloud {
    color: #2563eb;
}

.ctag-datos {
    color: #ea580c;
}

/* Acento naranja para esta vista (pills, toggle y paginación) */
#view-academia .filter-pill.active,
#view-academia .view-toggle-btn.active,
#view-academia .page-btn.active {
    background: #ea580c;
    border-color: #ea580c;
}

/* ===== Vista: Glosario ===== */
.stat-icon.si-teal {
    background: #ccfbf1;
    color: #0d9488;
}

.alpha-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.alpha-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.alpha-btn.active {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
    width: auto;
    padding: 0 16px;
}

.glossary-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.glossary-terms-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.term-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.term-card > div:last-child {
    margin-top: auto !important;
}

.term-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.term-title {
    font-size: 1rem;
    color: #0d9488;
    margin: 0 0 8px;
}

.term-def {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px;
}

.term-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.term-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-top: 3px;
}

.glossary-alpha-nav {
    width: 70px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 560px;
    overflow-y: auto;
}

.alpha-jump {
    border: none;
    background: none;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.alpha-jump.active {
    background: #ccfbf1;
    color: #0d9488;
}

/* Acento verde-azulado para esta vista */
#view-glosario .view-toggle-btn.active,
#view-glosario .page-btn.active {
    background: #0d9488;
    border-color: #0d9488;
}

.cat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    font-size: 0.85rem;
}

.page-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.page-dots {
    color: #94a3b8;
    padding: 0 4px;
}

/* ===== Vista: Guías ===== */
.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.guide-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.guide-icon-box {
    width: 100%;
    height: 210px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 15px;
}

.gtag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.guide-card h3 {
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.35;
}

.guide-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 15px;
}

.guide-meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.guide-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.guide-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #2563eb;
}

.guide-card-footer .save-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Colores de icono/etiqueta por categoría */
.gbg-automatizacion {
    background: #dcfce7;
    color: #16a34a;
}

.gbg-crm {
    background: #dbeafe;
    color: #2563eb;
}

.gbg-cloud {
    background: #ede9fe;
    color: #7c3aed;
}

.gbg-whatsapp {
    background: #ffedd5;
    color: #ea580c;
}

.gbg-seguridad {
    background: #ccfbf1;
    color: #0d9488;
}

.gbg-analisis {
    background: #dbeafe;
    color: #2563eb;
}

.gtag-automatizacion {
    color: #16a34a;
}

.gtag-crm {
    color: #2563eb;
}

.gtag-cloud {
    color: #7c3aed;
}

.gtag-whatsapp {
    color: #16a34a;
}

.gtag-seguridad {
    color: #0d9488;
}

.gtag-analisis {
    color: #2563eb;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-row h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.view-all-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all-link:hover {
    text-decoration: underline;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
}

/* Featured Card */
.card-featured {
    background: #0f172a;
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-bg-graphic {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 300px;
    height: 300px;
    background: url('../img/conocimiento/cube-bg.png') no-repeat center center / contain;
    opacity: 0.5;
    /* Si no hay imagen, simulamos con CSS */
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.4) 0%, transparent 60%);
}

.featured-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.card-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.card-desc {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Normal Cards List */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-normal {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.card-normal:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.norm-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-bg-art {
    background: #eff6ff;
    color: #3b82f6;
}

.icon-bg-guia {
    background: #f0fdf4;
    color: #22c55e;
}

.icon-bg-tut {
    background: #fef2f2;
    color: #ef4444;
}

.icon-bg-doc {
    background: #fdf4ff;
    color: #d946ef;
}

.icon-bg-faq {
    background: #fffbeb;
    color: #f59e0b;
}

.icon-bg-glos {
    background: #f3f4f6;
    color: #6b7280;
}

.norm-content {
    flex: 1;
}

.norm-tag {
    font-size: 0.7rem;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.norm-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.norm-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.save-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.save-btn:hover {
    color: #3b82f6;
}

/* Loader */
.knowledge-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: #64748b;
    font-size: 1.1rem;
}

/* Bottom grids */
.content-bottom-grids {
    max-width: 1400px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.latest-content-list {
    display: flex;
    flex-direction: column;
    min-height: 270px;
}

.list-section,
.tags-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    min-height: 400px;
}

.latest-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    gap: 15px;
}

.latest-item:last-child {
    border-bottom: none;
}

.tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    width: 120px;
}

.tag-art {
    background: #eff6ff;
    color: #2563eb;
}

.tag-tut {
    background: #f0fdfa;
    color: #0d9488;
}

.tag-guia {
    background: #fdf4ff;
    color: #c026d3;
}

.tag-doc {
    background: #f8fafc;
    color: #475569;
}

.item-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-time {
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: nowrap;
}

.popular-tags-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    min-height: 270px;
    overflow-y: auto;
}

.pop-tag {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 30px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.pop-tag:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* --- Newsletter Section --- */
.newsletter-section {
    background: #f8fafc;
    padding: 40px 5% 80px;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #eff6ff;
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.news-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.news-text {
    flex: 1;
}

.news-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.news-text p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.5;
}

.news-form {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 450px;
}

.news-form input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    outline: none;
    border-radius: 8px;
}

.btn-primary-blue {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-blue:hover {
    background: #1d4ed8;
}

/* Responsive */
@media (max-width: 1200px) {
    .conocimiento-container {
        grid-template-columns: 250px 1fr;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .card-featured {
        min-height: 300px;
    }
}

@media (max-width: 992px) {
    .conocimiento-hero {
        flex-direction: column;
        padding-top: 100px;
    }

    .conocimiento-hero-graphic {
        width: 100%;
        margin-top: 50px;
    }

    .conocimiento-container {
        grid-template-columns: 1fr;
    }

    .conocimiento-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .features-row {
        grid-template-columns: 1fr;
    }

    .content-bottom-grids {
        grid-template-columns: 1fr;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .news-form {
        width: 100%;
    }
}

/* ==========================================================================
   MODAL DE DETALLE (6 VISTAS)
   ========================================================================== */
.detalle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detalle-overlay.active {
    opacity: 1;
    visibility: visible;
}

.detalle-modal {
    background: #fff;
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: row;
}

.detalle-overlay.active .detalle-modal {
    transform: translateY(0) scale(1);
}

/* Header Fijo del Modal */
.detalle-header-fixed {
    background: #fff;
    padding: 14px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid #e2e8f0;
}

.detalle-breadcrumb {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    padding-bottom: 16px;
}

.detalle-close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.detalle-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Columna derecha: agrupa header + cuerpo + pie; ya no cruza el sidebar */
.detalle-right-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Cuerpo con scroll */
.detalle-body-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 24px 36px 50px;
}

/* Columna Principal */
.detalle-main-col {
    flex: 1;
    min-width: 0;
}

.detalle-hero-section {
    margin-bottom: 40px;
    text-align: center;
}

.detalle-tag {
    display: inline-block;
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.detalle-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 25px;
}

.detalle-main-desc {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

.detalle-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    margin-bottom: 30px;
}

.dm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

.dm-item i {
    font-size: 1.1rem;
}

.dm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dm-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.dm-actions button {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dm-actions button:hover {
    color: #0f172a;
}

/* Inyecciones Especiales (Imágenes, Videos, Progreso) */
.detalle-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

.dt-video-container {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
}

.dt-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.dt-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.dt-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.dt-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 0.9rem;
}

.dt-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.dt-progress-fill {
    width: 30%;
    height: 100%;
    background: #2563eb;
    border-radius: 2px;
}


/* Cajas Especiales (Info, Tips) */
.dt-info-box,
.dt-tip-box,
.dt-objetivo-box {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.dt-info-purple {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    color: #4c1d95;
}

.dt-tip-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    gap: 15px;
    color: #166534;
}

.dt-tip-box i {
    font-size: 1.5rem;
    color: #22c55e;
}

.dt-objetivo-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}


/* Checklist de la Guía */
.dt-checklist {
    margin-bottom: 30px;
}

.dt-check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.05rem;
    color: #475569;
}

.dt-check-item.dt-checked {
    color: #1e293b;
    font-weight: 500;
}

.dt-check-item.dt-checked i {
    color: #10b981;
}

.dt-check-item i {
    font-size: 1.2rem;
    color: #cbd5e1;
}


/* Contenido HTML general (Wysiwyg) */
.detalle-content-html h2 {
    font-size: 1.6rem;
    margin: 40px 0 15px;
    color: #0f172a;
    font-weight: 700;
}

.detalle-content-html p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

.detalle-content-html ul {
    padding-left: 20px;
    margin-bottom: 25px;
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: left;
}

/* Botones Navegación inferior */
.dt-vista-indicador {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3b82f6;
    background: #eff6ff;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* Botones Navegación inferior */
.dt-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.dt-btn-outline {
    padding: 12px 24px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
}

.dt-btn-outline:hover {
    background: #f8fafc;
}

.dt-btn-primary {
    padding: 12px 24px;
    border: none;
    background: #16a34a;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: 0.2s;
}

.dt-btn-primary:hover {
    background: #15803d;
}

.dt-btn-primary-purple {
    padding: 12px 24px;
    border: none;
    background: #7c3aed;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: 0.2s;
}

.dt-btn-primary-purple:hover {
    background: #6d28d9;
}

.dt-btn-dark {
    padding: 12px 24px;
    border: none;
    background: #0f172a;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.dt-btn-dark:hover {
    background: #1e293b;
}

/* Feedback Row Minimalista */
.detalle-feedback-row {
    flex-shrink: 0;
    padding: 20px 60px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.df-left,
.df-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.df-btn,
.df-btn-icon {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}

.df-btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.df-btn:hover,
.df-btn-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* Right Sidebar (TOC, Relacionados) */
.detalle-sidebar-col {
    width: 240px;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid #e2e8f0;
    background: #fff;
}

/* Tamaño fijo: la 1ra sección ocupa 2/3 del alto del sidebar, la 2da 1/3 */
.detalle-sidebar-col > .ds-card:nth-child(1) {
    flex: 2 1 0;
    min-height: 0;
    overflow-y: auto;
}

.detalle-sidebar-col > .ds-card:nth-child(2) {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.ds-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.ds-card-grey {
    background: #f8fafc;
}

.ds-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

/* Listas TOC */
.ds-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-toc li {
    margin-bottom: 7px;
}

.ds-toc a {
    text-decoration: none;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.35;
    transition: color 0.2s;
}

.ds-toc a:hover {
    color: #2563eb;
}

.ds-toc li.activo a {
    color: #2563eb;
    font-weight: 600;
}

/* Relacionados / Descargas */
.ds-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-rel-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.ds-rel-icon {
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    color: #3b82f6;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ds-rel-text strong {
    display: block;
    font-size: 0.78rem;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.25;
}

.ds-rel-text span {
    font-size: 0.68rem;
    color: #64748b;
}

.ds-download .ds-rel-icon {
    background: #fdf2f8;
    color: #db2777;
}

/* Pasos */
.ds-pasos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-pasos li {
    padding: 12px 15px;
    color: #64748b;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
}

.ds-pasos li.activo {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
}

.ds-pasos-purple li.activo {
    background: #faf5ff;
    color: #7c3aed;
}

.ds-lecciones li {
    padding: 10px;
}

.ds-lecciones li.activo {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Glosario Especial */
.dt-glos-ejemplo h4,
.dt-se-usa-en h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.dt-code-block {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 30px;
    overflow-x: auto;
}

.dt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dt-chip {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.dt-chip-white {
    background: #fff;
    border: 1px solid #e2e8f0;
}

/* Curso Especial */
.ds-radial-progress {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#7c3aed var(--prog), #f1f5f9 0deg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
}

.ds-prog-val {
    background: #fff;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
}

.dt-curso-stats {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.dc-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid #e2e8f0;
    min-width: 140px;
}

.dc-stat:last-child {
    border-right: none;
}

.dc-stat i {
    font-size: 1.5rem;
    color: #64748b;
}

.dt-curso-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.dt-ctab {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.2s;
}

.dt-ctab.activo,
.dt-ctab:hover {
    background: #f1f5f9;
    color: #7c3aed;
}

.dt-curso-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.dt-cb-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-weight: 500;
    color: #334155;
}

.dt-cert-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dt-cert-box a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

/* FAQ CTA bottom */
.dt-faq-bottom-cta {
    text-align: center;
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    margin-top: 30px;
}

.dt-faq-bottom-cta h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.dt-faq-bottom-cta button {
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .detalle-modal {
        flex-direction: column;
    }

    .detalle-sidebar-col {
        width: 100%;
        height: auto;
        max-height: 240px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        order: 2;
    }

    .detalle-right-col {
        order: 1;
    }
}

.ds-progress-badge {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.ds-progress-badge span {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

.faq-layout { display: flex; gap: 24px; align-items: flex-start; }
.faq-sidebar-col { width: 260px; flex-shrink: 0; }
.faq-sidebar-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.faq-sidebar-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.faq-sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.faq-sidebar-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; color: #475569; cursor: pointer; }
.faq-sidebar-item span { flex: 1; }
.faq-sidebar-item em { font-style: normal; font-size: 0.75rem; color: #94a3b8; background: #f1f5f9; padding: 2px 8px; border-radius: 10px; }
.faq-sidebar-item:hover { background: #f8fafc; }
.faq-sidebar-item.active { background: #2563eb; color: #fff; }
.faq-sidebar-item.active em { background: rgba(255,255,255,0.2); color: #fff; }
.faq-results-col { flex: 1; min-width: 0; }
.faq-accordion { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-acc-item { border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; }
.faq-acc-q { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 600; color: #0f172a; }
.faq-acc-chevron { margin-left: auto; transition: transform 0.2s ease; color: #94a3b8; }
.faq-acc-a { display: none; padding: 0 18px 18px 46px; color: #475569; font-size: 0.9rem; line-height: 1.6; }
.faq-acc-item.open { border-color: #2563eb; background: #eff6ff; }
.faq-acc-item.open .faq-acc-q { color: #2563eb; }
.faq-acc-item.open .faq-acc-a { display: block; }

/* ===== Panel: Necesitas iniciar sesión (Academia) ===== */
.login-requerido-modal {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    padding: 40px 32px 32px;
    position: relative;
    text-align: center;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.detalle-overlay.active .login-requerido-modal {
    transform: translateY(0) scale(1);
}

.login-requerido-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.login-requerido-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.login-requerido-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.login-requerido-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 26px;
}

.login-requerido-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-requerido-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.login-requerido-btn-primary {
    background: #2563eb;
    color: #fff;
}

.login-requerido-btn-primary:hover {
    background: #1d4ed8;
}

.login-requerido-btn-secondary {
    background: #f1f5f9;
    color: #334155;
}

.login-requerido-btn-secondary:hover {
    background: #e2e8f0;
}