.comandos-section {
    margin-top: 20px;
}

.comandos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.comando-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.comando-card:hover {
    border-color: rgba(185, 142, 255, 0.35); /* borde lila */
    background: var(--surface-hover);
}

.comando-header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.comando-title-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 130px;
}

.comando-prefix {
    color: var(--text-muted);
    font-weight: 700;
    font-family: monospace;
    font-size: 16px;
}

.comando-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.comando-short-desc {
    color: var(--text-muted);
    font-size: 14px;
    flex-grow: 1;
    margin-left: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 30px;
}

.comando-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 24px;
}

/* Estado activo del card */
.comando-card.active .comando-icon {
    transform: rotate(180deg);
}

.comando-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid transparent;
    transition: all 0.3s ease;
}

.comando-card.active .comando-body {
    max-height: 300px; /* Suficiente para el contenido */
    padding: 20px 24px;
    border-top-color: var(--surface-border);
}

.comando-desc {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 16px;
}

.comando-usage {
    font-size: 13.5px;
    color: var(--text-muted);
}

.comando-usage code {
    background: rgba(185, 142, 255, 0.12);
    color: var(--lilac);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    margin-left: 6px;
}

@media (max-width: 768px) {
    .comando-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comando-short-desc {
        margin-left: 0;
        font-size: 13px;
        white-space: normal;
        padding-right: 0;
    }
}
