/* -- CONTENT CARD DEL ARTÍCULO */

.topic-card-highlight {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 20px;
    margin-bottom: 50px;
}

.topic-info {
    padding-right: 10px;
}

.topic-tag {
    color: var(--acc2); 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.meta-info {
    font-size: 14px;
    color: rgba(0,0,0,0.5);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.summary {
    font-size: 16px;
    color: rgba(0,0,0,0.7);
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--acc1); 
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.objectives {
    font-size: 16px;
    color: var(--texto);
    margin-bottom: 15px;
}

.code-ref {
    font-size: 12px;
    color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
}

.code-ref i {
    margin-right: 4px; 
    color: rgba(0, 0, 0, 0.6);
    font-size: 13px;
}

.image-placeholder {
    background-color: var(--sec); 
    border: 2px solid var(--acc2); 
    border-radius: 12px;
    height: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 600;
    color: rgba(0,0,0,0.3);
}


.stats-footer {
    grid-column: 1 / -1; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px 30px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}


.stats-footer .btn.dom-bg {
    display: inline-block; 
    width: auto;         
    flex-shrink: 0;      
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 20px;
    border-right: 5px solid rgba(0,0,0,0.1); 
}

.stat-item:last-of-type {
    border-right: none;
    padding-right: 0;
}

.stat-item .icon {
    font-size: 24px;
    line-height: 1;
}

.stat-text {
    font-size: 12px;
    color: var(--text);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--texto);
}


/* --- CONTENIDOS DEL ARTÍCULO --- */

.subtopic-section {
    max-width: 800px; 
    margin: 0 auto;
}

.section-heading {
    font-size: 26px;
    margin: 30px 0 20px;
    font-weight: 800;
    color: var(--texto);
}

.subtopic-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.subtopic-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.2s, box-shadow 0.2s;
    border-left: 5px solid transparent;
}

.subtopic-item:hover {
    background-color: rgba(0, 254, 131, 0.05); 
    border-left: 5px solid var(--dom); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.number {
    font-size: 28px;
    font-weight: 800;
    color: var(--acc2); 
    margin-right: 20px;
}

.text {
    font-size: 17px;
    font-weight: 600;
    color: var(--texto);
}

/* -- BOTONES */

.large-button {
    padding: 15px 30px;
    font-size: 16px;
    width: fit-content;
    margin: 0 auto; 
    display: block;
    display: flex; 
    align-items: center;
    justify-content: center;
    color: var(--texto);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.large-button i {
    margin-left: 10px;
    color: inherit;
    transform: translateY(1px);
    transition: color 0.3s ease, transform 0.3s ease;
}

.large-button:hover {
    background-color: var(--acc1);
    color: #fff;
}

.large-button:hover i {
    color: inherit;
    transform: translateX(3px) translateY(1px);
}


.subtopic-item {
    overflow: hidden; 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 0; 
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    border-left: 5px solid transparent;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 25px; 
    transition: background-color 0.2s, border-left 0.2s, margin-left 0.2s, padding-left 0.2s;
}


.expand-icon {
    margin-left: auto; 
    transition: transform 0.3s ease; 
}

.expand-icon i {
    font-size: 12px;
    color: var(--acc1); 
    font-weight: 900;
    text-shadow: 
        0.5px 0 0 currentColor,
        -0.5px 0 0 currentColor,
        0 0.5px 0 currentColor,
        0 -0.5px 0 currentColor;
    vertical-align: middle; 
}

.expand-icon:hover {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0; 
    transition: max-height 0.4s ease-in-out;
    width: 100%;
}

.accordion-content p {
    padding: 0 25px 20px 65px; 
    font-size: 15px;
    color: rgba(0,0,0,0.75);
    line-height: 1.5;
}

/* -- ACORDEÓN ACTIVO */

.accordion-toggle:checked ~ .accordion-header {
    background-color: rgba(0, 254, 131, 0.05); 
    border-left: 5px solid var(--dom); 
    margin-left: -5px; 
    padding-left: 30px; 
}

.accordion-toggle:checked ~ .accordion-header .expand-icon {
    transform: rotate(90deg); 
}

.accordion-toggle:checked ~ .accordion-content {
    max-height: 500px;
}

.subtopic-item:hover > .accordion-header:not(.accordion-toggle:checked ~ .accordion-header) {
    background-color: rgba(0, 254, 131, 0.03); 
    border-left: 5px solid var(--dom); 
    margin-left: -5px;
    padding-left: 30px;
}

.stat-item img {
    width: 35px; 
    height: 35px;
    align-items: left;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}


.stat-item > div {
    display: flex;
    flex-direction: column;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.stats-footer .btn.dom-bg {
    display: inline-block;
    width: auto;
    flex-shrink: 0;
    color: var(--texto);
}

.btn.dom-bg:hover {
    background-color: var(--acc1); 
    color: #fff;
}


.btn.dom-bg i {
    margin-left: 8px; 
    color: var(--texto);
    transform: translateY(1px);
    transition: color 0.3s ease, transform 0.3s ease;
}

.btn.dom-bg:hover i {
    color: #fff;
    transform: translateX(3px) translateY(1px); 
}

.large-button {
    padding: 15px 30px;
    font-size: 16px;
    width: fit-content;
    margin: 0 auto;
    display: block;
    color: var(--texto); 
}

/* --- RESPONSIVE --- */

@media (max-width: 900px) {

    .topic-card-highlight {
        grid-template-columns: 1fr;
    }

    .topic-info {
        padding-right: 0;
    }

    .image-placeholder {
        min-height: 180px;
    }

    .stats-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 15px;
    }

    .stat-item {
        border-right: none;
        padding-right: 0;
        flex-direction: column;
        text-align: flex-start;
        width: 30%; 
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 32px;
    }
    
    .summary, .objectives {
        font-size: 15px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .large-button {
        width: 100%;
    }
}

.stats-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 30px; 
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px 30px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.stats-footer .btn.dom-bg {
    display: inline-block;
    width: auto;
    flex-shrink: 0;    
    margin-left: auto; 
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 5px; 
    padding-right: 15px;
    border-right: 5px solid rgba(0,0,0,0.1);
}

.stat-item:last-of-type {
    border-right: none;
    padding-right: 0;
}

